/orchestrate:handoverfrom orchestrate
Generate 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.
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 handover <programme> "<reason>"
Writes HANDOVER.md in the programme dir, records a handover event with the
reason, and releases the lock last.
The ownership token is spent by this. The programme is left deliberately
unclaimed, and the next orchestrator claims a fresh token through
orchestrate:takeover, which is recorded. A tick will not quietly pick a
handed-over programme back up.
It is built from lanes.jsonl, events.jsonl, hosts.jsonl and reviews/:
lanes and their states, PR ownership, owed notices, reviews on disk, the last
twenty decisions and steers, host pressure, and one next action. A brief written
by hand goes stale the moment the next tick runs; this one cannot.
Do not add prose to it. Anything the next orchestrator must know permanently
belongs in ORCHESTRATION.md, which every tick reads. Anything about one
decision belongs in a decision event, so a later tick can see what was told to
whom.
owed to zero. A lane left awaiting a verdict on a merged PR is the
single most expensive thing to hand over.orchestrate:takeover <programme>.No code reads handover.credit_threshold_pct. Nothing checks your usage, and
no tick will run handover for you. If your harness does not expose the
orchestrator's own usage number, that key does nothing at all.
Where the harness does expose it: watch it yourself, and run this verb before
you run out rather than after. A session that runs out mid-loop is recovered by
orchestrate:takeover, not prevented.
Taking over on a different machine needs that directory copied there first, or the same machine used. Say which you did.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub stevengonsalvez/ainb-toolkit --plugin orchestrate10 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./loopArm the repeating tick engine for whichever harness is running, with a cadence, stop conditions and a STOP file. Use after a tick to keep a programme moving unattended, when a loop has stalled and needs re-arming, or to stop one. Claude Code arms its native loop; Codex, agy and anything else use the bundled tmux driver./preflightReport host capacity for a programme: disk free per host, how many lanes each carries, and which metrics rung answered. Use before placing a new lane or when a host looks full. The full metrics ladder, scoring and placement refusals are cut 2; this ships the probe rung and the recorded floors only./retireRemove 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./spawnStart a new agent lane on a chosen host with a worktree, an agent and a goal, then index it. Placement scoring is cut 2; this describes the manual path that produces the same indexed result, so no lane is ever started without being recorded.