/orchestrate:retirefrom orchestrate
Remove a finished lane's worktree through Orca, only once it is merged, clean and idle. Use when a lane's work has landed and its worktree is just taking disk, or at a programme's exit condition. Refuses on anything still working, still holding an open PR, or still showing a live agent.
Ships in orchestrate. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh retire <programme> <lane>
Three guards, all refusals, each recorded as a refuse event:
| guard | refuses when |
|---|---|
retire-busy | the lane's status is not idle or done |
retire-unknown-branch | no branch is recorded, so nothing can say its work landed |
retire-unknown-state | the PR state could not be read, so the answer is unknown rather than clear |
retire-unmerged | its branch still has an open PR |
retire-live | its screen still shows a live agent and it is not marked done |
Removal goes through Orca. Nothing is deleted from the filesystem directly, no process is killed, and there is no force.
owed is zero for that lane. Retiring a lane that was never told its
PR merged loses the notice permanently.lanes.jsonl is filled. An empty one is refused
outright rather than waved through.It is telling you the lane is not finished. Ask the lane to wind up its work and go idle, then retire it at the next tick. Do not work around the guard by removing the worktree by hand: a lane with uncommitted work loses it, and that has happened.
Disk pressure is not a reason to retire early. Ask the owning lane to clean, and never delete under it.
What SKILL.md sets; muted values are Claude Code's defaults
10 skills in this plugin
/adoptIndex the agent lanes that already exist into a programme's lanes.jsonl, reading each terminal to classify it and its context use. Use when taking charge of lanes started by hand, when starting a programme from running work, or as the re-verify pass after a host restart or before any send. Dry-run first, confirm once, then write./discoverList the Orca environments, hosts, worktrees and terminals a programme could use, and say which environments are unreachable. Use before adopting or spawning lanes, when a host may have restarted, when "what is running where" is unclear, or when a remote environment looks down. Asks Orca only, never ssh./handoverGenerate HANDOVER.md from a programme's index files and release the owner lock so another session, on any harness, can pick the programme up. Use when credits or context are running out, when asked to stop, when a session is ending, or before switching the orchestrator to a different agent or machine.Other plugins' skills for the same job
npx claudepluginhub stevengonsalvez/ainb-toolkit --plugin orchestrate