Repository navigation
feat: every task through /dispatch, and the plugin carries it - #37
Merged
Merged
Conversation
…checkout With the parallel-agents module, the main checkout's session now takes every task and hands it to a new session in a worktree of its own (decision 0020, amending 0008 and 0015). The project's worktree.conf picks the route, not the task: Claude Code's worktree (a task chip in the desktop app, or a claude --worktree command) when the worktrees need nothing from the scripts; the scripts' worktree, with a prompt to paste, when they need a port, setup or start commands, or a base branch other than the default. The developer can pick the other route for one task. A chip is never used for the scripts' worktree: it always creates a worktree of its own, without the env file, port, or setup, even when given another folder — a finding from another project's 2026-09-22 test, recorded in the decision. The session-context hook gives the dispatcher the instruction and its project's route; protect-hub's message points at /dispatch. Docs, the scenario, and the tests follow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/dispatch was the one framework skill a packaged project still committed: it ships in the parallel-agents module, and decision 0016 keeps modules committed — a rule written for the scripts, templates, and configuration a project owns. The skill is generic machinery, so the plugin now carries it as /aplyca-adf:dispatch (decision 0020, amending 0016). scripts/build-aplyca-adf.sh copies every module's skills into the plugin, from the module, which stays their one source; a committed install doesn't change. The skill stops in a project without the module. /adopt leaves it out of a packaged project, and /upgrade deletes a packaged project's committed copy when it's unchanged since the baseline. The plugin's hooks and skills now name /aplyca-adf:dispatch. The static checks hold the plugin to carrying it, and check-packaged.sh checks a packaged project commits no copy on a release whose plugin has it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mauricios
marked this pull request as ready for review
October 6, 2026 13:30
mauricios
added a commit
that referenced
this pull request
Oct 6, 2026
A minor release for teams with the parallel-agents module (#37, decision 0020): the main checkout's session takes every task and hands it to a new session in a worktree of its own, by the route the project's worktree.conf gives, and the plugin carries /dispatch. Unreleased becomes v1.3.0, with the upgrade from v1.2.x. Decision 0017 gets a dated clarification: "has to act" means something stops working until the team acts. A migration /aplyca-adf:upgrade carries out, or a changed rule in an opt-in module, is minor — as v1.2.0 and v1.3.0 shipped. plugin.json 1.3.0; both READMEs name the release. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
With the
parallel-agentsmodule, the session in the main checkout now takes every task and hands it to a new session in a worktree of its own. The plugin also carries/dispatch, so a packaged project no longer commits it. Decision 0020 amends 0008, 0015, and 0016.What changed and why
1. Every task goes through
/dispatch(6fc4cff)Before, decision 0015 left the route to the developer. A task that needed nothing from the scripts started in a session the developer opened with the worktree option, and
/dispatchhandled only the scripts' route. A team using the module asked for one way in instead. Every requirement goes to the main checkout's session, which hands it to a new session, and that session runs the whole process.worktree.conf:claude --worktree <slug> "<prompt>"command in a terminal.--no-start), plus a prompt the developer pastes into a session opened on it./dispatch <task> chip). The dispatcher never does.WorktreeCreatehook isn't told the folder or the task, and doesn't run when the app reuses a worktree. The decision,/dispatch, andPARALLEL-AGENTS.mdrecord why./dispatchand names the project's route.protect-hub.sh's message points at/dispatch.PARALLEL-AGENTS.md,MODULE.md, the scenario,ONBOARDING.md,SKILLS-REFERENCE.md, andREADME.mdfollow.2. The plugin carries
/dispatch(dfd6768)/dispatchwas the one framework skill a packaged project still committed, only because it ships in a module.scripts/build-aplyca-adf.shnow copies every module's skills into the plugin. The module stays the single source, so a committed install doesn't change./aplyca-adf:adoptleaves the skill out of a packaged project./aplyca-adf:upgradedeletes a packaged project's copy when it's unchanged since the baseline./aplyca-adf:dispatch.Upgrade impact
The CHANGELOG has the details.
/dispatchskill and, in a committed project,session-context.sh,protect-hub.sh,.claude/hooks/README.md, and/spec-workflow.docs/PARALLEL-AGENTS.md, whose roles and routes sections changed. § Shared services stays..claude/skills/dispatch/./aplyca-adf:upgradedoes it.Release: this changes a workflow rule for module projects and has a migration step for packaged ones. Decision 0017 reads that as MAJOR, though v1.2.0 shipped an
/upgrade-handled migration as MINOR. That's your call when we release.How to verify
./evals/run-evals.shscripts/build-aplyca-adf.shleaves no drift./aplyca-adf:dispatch <a docs task>should offer a task chip. WithPORT_SLOTSset, it should create the sibling worktree and give a prompt to paste.What I verified
/dispatch;claude -p --worktree probe-one --model haiku "<prompt>"(Claude Code 2.1.286, a throwaway repo): the session ran in.claude/worktrees/probe-one, on branchworktree-probe-one, with the prompt. The interactive form parses the same way.check-packaged.sh's new check, run on throwaway projects:/dispatchon a release whose plugin has it.skills/dispatchwith its copy-selection step (Step 0), and.generatedlists it.What I couldn't verify
.worktreeinclude. The docs say every worktree the desktop app creates does, but checking a chip needs a click in the desktop app. It's the first thing to check on a real project./dispatch. The chip hand-off only exists in the desktop app.🤖 Generated with Claude Code