/orchestrate:adoptfrom orchestrate
Index 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.
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.
# propose, write nothing
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh adopt <programme> --dry-run \
--environment local --environment <remote>
# write the rows once the table looks right
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh adopt <programme> \
--environment local --environment <remote>
# also index the lanes it reported as UNINDEXED
${CLAUDE_PLUGIN_ROOT}/scripts/orchestrate.sh adopt <programme> --include-new
Needs a programme dir and the ownership token. Create the dir with
orchestrate.sh init <programme> --trunk <branch> --repo <checkout>, edit
programme.yaml (autonomy and repo must both be set deliberately, never
left to a default), then claim it with orchestrate:takeover, which prints the
token once. A dry run needs no token; writing does.
Columns: lane, env, worktree, agent, handle, status, ctx.
A dry run writes nothing at all: no event, no index rewrite, no terminal, not even a re-resolved handle. It reports what it would do and stops.
working, idle, asking, dead, unknown from the screen
patterns in agents.yaml, and reads its context use from the status line.done, retired and needs-rebind are decisions, not screen states, so a row
already carrying one is left alone.branch, goal, exclusive and title are
yours and are never blanked by a re-verify pass: the retirement guard reads
branch, so wiping it would quietly disarm the wall that stops a worktree
being removed under open work.UNINDEXED row. A lane
started by hand and never registered is the failure this verb exists to
prevent, so discovery runs every time, not only on an empty index. Those rows
are written only with --include-new.| thing | what to do |
|---|---|
a lane reads unknown | read it: orchestrate.sh read <programme> <lane> 40. The screen pattern in agents.yaml is probably wrong for this agent. Fix the pattern, not the code |
ctx is blank | that agent kind has no verified context pattern yet. See ${CLAUDE_PLUGIN_ROOT}/references/agents-yaml.md |
| a lane's agent kind is wrong | edit the agent field in lanes.jsonl; it decides how the lane is resumed and compacted |
a lane is dead | orchestrate:tick restarts it with that kind's resume command |
a lane reads needs-rebind | its worktree holds several terminals and none is uniquely titled for it. Set title in lanes.jsonl to that terminal's title, then adopt again. Nothing is sent to a lane in this state |
an UNINDEXED row appears | decide whether it is a lane. If it is, name it and adopt with --include-new, then fill its branch and goal |
Fill branch, goal, exclusive and title in lanes.jsonl by hand after
adopting: adopt cannot know them, they survive every later adopt, and the
retirement guard refuses outright when branch is unknown. title is what
binds a lane to its own terminal when a worktree holds more than one.
Fill attribution_patterns and scrub.deny in programme.yaml with the tool
and vendor names this programme must never publish, anchored as the template
shows. The shipped defaults match one trailer shape and nothing else, so until
you set them a report naming a vendor in prose scrubs clean and posts.
Every policy key, and which of them are walls:
${CLAUDE_PLUGIN_ROOT}/references/programme-yaml.md.
orchestrate:tick once, then arm orchestrate:loop.
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
/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./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.