feat(agents): add dispatch-implement wrapper skill for Claude Code (#210) - #214
Merged
Conversation
) Dispatches one subagent per ticket to run /implement unmodified: parses #ticket refs, judges file/scope overlap pairwise (parallel only when every pair is confirmed non-overlapping, sequential otherwise), and picks a model per ticket subject to the implement-stage pin. Parallel children get isolation: "worktree" so two /implement runs never race one shared .git/index while committing. Codex CLI (#211) and Pi (#212) dispatch are not wired yet; the skill stops and reports there. implement/SKILL.md is unchanged.
Parallel children commit to their own isolated worktree branches, so add an explicit integrate step: cherry-pick each child's commits onto the invoking branch in ticket order, run fast checks once, remove the worktrees, and stop on a conflict rather than resolving silently. Also treat haiku like fable in the override rules — both fail the implement-stage Opus-or-Sonnet pin.
…sing edge cases (#210)
) Parallel dispatch's isolated-worktree + cherry-pick integration path has no real usage behind it yet. Force sequential regardless of the overlap judgment until #213 confirms the base flow (parsing, model pick, single dispatch, /implement completing inside a child) against real usage.
This was referenced Aug 25, 2026
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
Adds
ai-agents/skills/dispatch-implement/SKILL.md, a thin wrapper skill that dispatchesone subagent per ticket to run
/implementunmodified, for Claude Code.#ticketreferences from the invocation.confirmed non-overlapping, otherwise sequential (conservative by default).
Fable/Haiku), honoring an explicit override where one is given.
Agenttool (subagent_type: general-purpose, so/implement's own/tdd//code-review//spec-review//codex-reviewcalls still work), withisolation: "worktree"on parallel children to avoid a shared.git/indexrace.branch in ticket order, running fast checks once over the result, then cleaning up child
worktrees and branches. Stops on a cherry-pick conflict rather than resolving it silently.
ai-agents/SKILL-OWNERSHIP.md, Claude Code only for now;Codex CLI (feat(agents): dispatch-implement — Codex CLI dispatch #211) and Pi (feat(agents): dispatch-implement — Pi dispatch #212) dispatch are tracked separately and stop-and-report until
wired.
overlap judgment, until chore(agents): confirm dispatch-implement parallel dispatch after trial week #213 confirms the base flow against real usage and lifts the
gate.
implement/SKILL.mditself is untouched (verified via diff), perdocs/adr/implement-stays-minimal-dispatch-in-wrapper-skill.md.Why
Per #207 /
.agents/specs/dispatch-implement.md: the user regularly hands off tickets bytyping "dispatch subagent(s) to
/implement#123" by hand. This automates that habitwithout folding dispatch logic into
/implementitself, which the linked ADR rejects asbreaking its minimal upstream shape.
Verification
git --no-pager diff main...HEAD -- ai-agents/skills/implement/SKILL.mdreturns empty,confirming
/implementis byte-unchanged.a follow-up commit (cherry-pick range/abort mechanics, concrete overlap rules, parsing
edge-case guards, explicit fast-checks-only tradeoff, child-branch cleanup).
sequential-only gate.
Closes #210.