Propose comment-triggered agents ("tag an agent") — tracking #159 - #160
Open
k5s-bot[bot] wants to merge 1 commit into
Open
Propose comment-triggered agents ("tag an agent") — tracking #159#160k5s-bot[bot] wants to merge 1 commit into
k5s-bot[bot] wants to merge 1 commit into
Conversation
Comments are currently a hard no-op (parseGithubEvent ignores issue_comment.created) and IntegrationRoute.match has no mention/command selector, so there is no way to trigger or address a specific agent from a comment. Add a proposal doc framing the problem and options (slash-command route, @mention->Agent resolver, reaction-based bot mention, session-page baseline) with a recommendation and cross-cutting safety concerns. Tracking: #159 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Cp7xF4sPhZ59pTUg72Kg9j
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Files the ticket asked for: a way to trigger agents via comments and to
"tag" a specific agent from a comment. Creates tracking issue #159 and adds
a grounded proposal doc (
docs/proposals/comment-triggered-agents.md).This PR adds documentation only — no behavior change. It exists so the
proposal is reviewable in-repo alongside the issue; the actual implementation
should follow once a direction is chosen on #159.
Why it doesn't work today (grounded in the code)
parseGithubEvent(apps/integration-gateway/src/webhooks/github.ts) onlymakes
issues.labeled/pull_request.labeledactionable;issue_comment.created→{ kind: "ignored" }. Commenting never runs anagent (documented in
docs/integrations-gateway.md).IntegrationRoute.spec.matchkeys on{ source, event, action, labelName }only (
crd-integration-route-registry.ts, ADR 0024) — nomention/commandselector and no
@handle → Agentresolution, so a comment can't address aspecific agent.
the bot" for this), so
@mention-style tagging needs real design.Proposed solutions (see the doc for full tradeoffs)
/agent <name> …) → extendIntegrationRoute.matchwithevent: "issue_comment"— reuses the existingdeterministic CRD dispatch.
@mentionhandle →Agentresolver (annotation/metadata.name);composes with A.
Plus cross-cutting concerns: loop prevention (
senderIsBotdrop + requiredprefix), identity gating (reuse
identityResolver.resolve), comment-id dedupe,and fast 202 ack.
Closes #159 is intentionally not used — the issue tracks the implementation;
this PR only lands the proposal.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Cp7xF4sPhZ59pTUg72Kg9j