Problem#
The /agent directive prefix was too generic and clashed with unrelated strings (e.g. /agent-core-artefacts URLs). A more specific prefix /agentsde is needed, along with two new PR-scoped directives: discuss and fix-this.
Task / Link#
Closes #534
Changes#
- Regex update:
hasAgentDirective(),extractDirectiveFromBody(), andextractDirectiveValue()now match/agentsde(primary) and/agent(legacy fallback) via(?:sde)?pattern - PR review comments:
handlePullRequestReviewComment()now accepts/agentsdedirectives without requiring an@mention - New directives:
discussandfix-thisadded toALLOWED_DIRECTIVES,VALID_DIRECTIVES, confirmation messages, and routing (discuss→reply_to_pr_comment,fix-this→address_review) - Feedback strings: All hardcoded
/agent <directive>strings updated to/agentsde <directive>acrossdirective.service.tsandphase-router.service.ts - Docs:
AGENTS.md,plan-and-propose/SKILL.md, andinternal-adaptercomments updated to reference/agentsde
Notes#
/agentremains fully supported as a backward-compatible legacy prefix — no breaking changesfix-thisuses a hyphenated form (not two words) consistent withskip-quality-gate— single-token parsing- E2E test updates (in
agent-core-e2e) are out of scope for this PR per the plan assumptions
Testing#
- Unit tests added for
/agentsdedetection, backward-compat/agent, PR review comment directive without@mention,discuss/fix-thishandlers, and new routing inresolvePhase() npm run test— 834 tests passnpm run lint— zero warnings