orchestrate
Skill2 starsChanged 2 months agoMITView on GitHub
Work through a repository's GitHub issues unattended in parallel lanes, driving workers in the host harness, Claude Code, Codex, or OMP, in herdr panes and git worktrees to verify specs, triage bugs, implement, refactor, and merge each issue, and report lessons for the operator.
- Reads credentials
72 other projects use a version of this.
Adopted by
Most recently taken up by
- Significant-Gravitas/AutoGPTtheir own version, first seen Nov 18, 2026
- morodomi/dev-crewtheir own version, first seen Oct 5, 2026
- kentcdodds/kcd-skillstheir own version, first seen Oct 1, 2026
- hcaiano/skillstheir own version, first seen Sep 30, 2026
- AsiaOstrich/universal-dev-standardstheir own version, first seen Sep 30, 2026
- rohitg00/pro-workflowtheir own version, first seen Sep 29, 2026
Used with
Projects with it also use discover, checkpoint and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
anombyte93Skilldiscover
Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.
Also in 4 projects that use this
genomewalkerSkillcheckpoint
Save a checkpoint of task status, decisions, active files, and next steps
Also in 5 projects that use this
qtzx06Skilleval
Evaluate trained YOLO model accuracy with mAP metrics and per-class error analysis. Identifies failure cases for targeted improvement. Use after training.
Also in 3 projects that use this
sahinSkillexecute
Also in 3 projects that use this
paulo-yamagishiSkillevolve
Auto-maintain Claude Code config files as your codebase evolves
Also in 3 projects that use this
BlockSkillplan
Draft a TDD, PRD, or lightweight plan in the conversation without committing it.
Also in 8 projects that use this
Other versions72 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 72
- Significant-Gravitas/AutoGPT★ 188ksame name
- rohitg00/pro-workflow★ 2.9ksame name
- boshu2/agentops★ 447same name
- varun29ankuS/shodh-memory★ 300same name
- provencher/codex-skills★ 271same name
- sd0xdev/sd0x-harness★ 191same name
- josipjelic/orchestrated-project-template★ 95same name
- grainulation/grainulator★ 86same name
- AsiaOstrich/universal-dev-standards★ 76same name
- tranhieutt/software_development_department★ 72same name
62 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ask-supermattSkill
- codebase-designSkill
- code-reviewSkill
- commitSkill
- dependency-vettingSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- fix-findingsSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- ideateSkill
- implementSkill
- implement-specSkill
- improve-architectureSkill
- improve-file-structureSkill
- improve-testsSkill
- jurySkill
- prototypeSkill
- prSkill
- qaSkill
- refactorSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- setup-supermatt-skillsSkill
- ship-prSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- what-would-you-doSkill
- writing-for-agentsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 8 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 64 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Run test "${HERDR_ENV:-}" = 1.
- Very specific: line 28
Run herdr --skill and follow its rules.
- Very specific: line 29
Read docs/agents/issue-tracker.md and docs/agents/triage-labels.md.
- Distinctive: line 55
When every lane is idle or parked, stop (see Stop conditions).
- Very specific: line 86
Restart the worker: stop it and confirm its harness process has exited, then start it.
- Very specific: line 109
Run git -C WT log --oneline origin/DEFAULT..HEAD.
- Very specific: line 133
If git -C WT status --porcelain prints anything, prompt /commit (--wait) and wait for the worker.
- Distinctive: line 146
Read its last 60 lines. Find the PR URL and whether it merged.
- Very specific: line 151
If issue N is still open, run gh issue close N --comment "Merged in <PR URL>.".
- Distinctive: line 152
Stop the worker and confirm its harness process has exited.
- Distinctive: line 154
Remove the clean worktree and release the ship slot.
- Distinctive: line 155
Create a detached worktree for the read-only retrospective.
- Distinctive: line 162
Stop the worker and confirm its harness process has exited.
- Very specific: line 167
Run gh issue list --state all --search "created:>=RUN_START" --json number,title and add each issue not yet in the friction log as filed #M …
- Very specific: line 176
No lane is parked: title PROJECT done, body <count> issues merged, <count> filed.
- Distinctive: line 191
Never remove a worktree the run did not create.
- Distinctive: line 192
Run unattended. Never hand a question or dialog to the user.
- Very specific: line 193
If a --wait returns timeout or agent_prompt_stalled, read the pane before you do anything, since the prompt may have landed.
“Common” is measured: kept by at least 6 in 10 of the 64 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
orchestrate
You are the orchestrator. You do not write code. You pick issues, drive workers in the same harness that runs you, and check their results. The work runs in LANES parallel lanes: each lane is a herdr pane beside yours and a git worktree of its own, and works one issue at a time. A spec whose tickets are all closed comes first: one worker session V checks the whole spec against the code (see SPEC.md). Bugs come next, then the other tickets. Each ticket runs through up to four worker sessions, each with a fresh context:
- T:
/triage #N, only for a bug that is not triaged yet, to make it ready for an agent. - A:
/implement #N, which QAs, reviews, and fixes its own work, then any fixes it left. - B:
/refactor, then/ship-prto merge. - C:
/retroover A and B, reporting candidates for the operator without applying them.
Repeat until a stop condition is met. Never ask the user anything, through a question tool or otherwise: answer every question and dialog as below.
Setup
- Run
test "${HERDR_ENV:-}" = 1. If it fails, say you are not inside herdr and stop. Check the host's execution restrictions before the first Herdr, GitHub, or Git write call. This run needs access to the local Herdr socket, GitHub, and the checkout's Git metadata. Use the host's permission mechanism for access outside its sandbox, retaining any approval already granted. Confirm socket access withherdr agent listand GitHub access with the default-branch query in step 6. Stop if required access is denied or unavailable; report the exact blocked operation. - PROJECT is the repo folder name (
basename "$(git rev-parse --show-toplevel)") made into a valid herdr agent name: lowercase it, change each character outsidea-z,0-9,_and-to-, drop leading characters that are not letters, and keep at most 20 characters. Choose K as the lowest positive number unused by livePROJECT-orch-KorPROJECT-work-K-Lagents and by any registered or existing.claude/worktrees/orch-K-Lpath. Checkherdr agent list,git worktree list --porcelain, and the worktree directory before naming this run. Retained lanes reserve their K until separately cleaned up. Now, before any check that can stop, runherdr agent rename "$HERDR_PANE_ID" PROJECT-orch-Kandherdr pane report-metadata "$HERDR_PANE_ID" --source orchestrate --display-agent orchestrator. - Set KIND from the harness running this skill:
codexfor Codex,claudefor Claude Code, orompfor OMP. Use the current session's harness identity first. When unavailable, readherdr agent get "$HERDR_PANE_ID".result.agent.agent; accept onlyclaude,codex, oromp. If that does not identify it,CLAUDE_CODE_CHILD_SESSION=1identifies Claude Code, and any ofCODEX_SANDBOX,CODEX_SESSION_ID, orCODEX_THREAD_IDidentifies Codex.CLAUDECODEalone is insufficient because IDE terminals can inherit it;OMP_PROFILE,OMPCODE, and model/provider names do not identify the host. If the harness is unknown orcommand -v "$KIND"fails, say so and stop. Every worker and restart uses KIND; a failed launch parks its lane instead of switching harnesses. For OMP, requireompinherdr agent start --helpand an enabled OMP integration inherdr integration status. Report an unsupported installation or missing integration and stop without upgrading or installing it. For Claude Code, SESSION_ROOT is$CLAUDE_CONFIG_DIR/projects/, or~/.claude/projects/when unset. For Codex, it is$CODEX_HOME/sessions/, or~/.codex/sessions/when unset. OMP uses the integration's resolved transcript paths, not SESSION_ROOT: profile, XDG, and session-directory overrides can relocate storage. Send skills using the notation below. - Run
herdr --skilland follow its rules. Parse every ID from JSON output. Never close a tab or pane you did not create. - Read
docs/agents/issue-tracker.mdanddocs/agents/triage-labels.md. If either is missing, or the tracker is not GitHub, say so and stop. READY, BUG, and TRIAGE are the label strings thattriage-labels.mdmaps to the ready-for-agent, bug, and needs-triage roles. - Your working directory is the repo's main checkout. It stays on DEFAULT for the whole run; the workers work in the lanes' worktrees. DEFAULT is the output of
gh repo view --json defaultBranchRef --jq .defaultBranchRef.name. Rungit switch DEFAULT && git -c pull.rebase=false pull --ff-only. The command-local setting keeps a user's rebase default out of this fast-forward operation. The tree must be clean. If it is not, stop. Ifgit check-ignore -q .claude/worktrees/xfails, append the line.claude/worktrees/to.git/info/exclude, so the worktrees stay out ofgit status. - LANES is the number in the arguments, or 1 when there is none. RUN_START is
date -u +%Y-%m-%dT%H:%M:%SZ. RUN isbunwhencommand -v bunfinds it, elsenode. RunRUN <this skill's directory>/scripts/next-issue.mjs READY BUG TRIAGEand print the queue it lists, so the operator sees what will run. - Open the lanes (see Lanes).
Skill notation
Every /name skill reference below and in the linked procedures is notation: translate it before sending a worker prompt. Claude Code uses /supermatt:name when this skill comes from the installed Claude plugin, or /name when linked into its skill directory. A bare /code-review from that plugin would run Claude Code's bundled review instead of this one. Codex always uses $name, including from its plugin: $implement #N, $qa, $retro. OMP uses /skill:<name>: /skill:implement #N, /skill:qa origin/DEFAULT #N, /skill:code-review, /skill:commit, /skill:retro .... Preserve all arguments. Shell-quote prompts and substituted paths and values; quote Codex prompts so $name reaches the worker literally, for example herdr agent prompt WORKER '$implement #123' --wait. Native commands such as /exit keep their spelling in all three harnesses.
For OMP, require skill commands enabled and the SuperMatt skills discoverable by the worker (existing ~/.agents/skills discovery is supported). If a required skill is missing or resolves to a different same-named skill, park with that specific missing/conflicting skill; do not try a bare slash command.
Lanes
Lane L, from 1 to LANES, has a pane, a worker agent named PROJECT-work-K-L, and a worktree at <repo root>/.claude/worktrees/orch-K-L, inside the repo so Claude Code's folder trust carries over. Codex and OMP use the same worktree location. Below, PANE, WORKER, and WT are the current lane's, and every git command about the lane's work runs as git -C WT. IN_FLIGHT is the set of issues the lanes hold, parked lanes included.
- Open the lanes once, at setup, as shell panes stacked in one column right of yours, with equal heights. Lane 1:
herdr pane split "$HERDR_PANE_ID" --direction right --no-focus --cwd "$PWD". Lane L above 1:herdr pane split <lane L-1's pane> --direction down --ratio R --no-focus --cwd "$PWD", where R is 1/(LANES-L+2), the share lane L-1 keeps. Save each.result.pane.pane_id. The panes stay for the whole run. - Create the worktree on branch B:
git fetch origin && git worktree add -b B WT origin/DEFAULT, orgit worktree add --detach WT origin/DEFAULTwith no branch. Leave.env*files uncopied by default. Have the worker try the repository's checks and local preview without credentials. Supply environment values only when a required operation reports that it needs them and existing user authorization permits access. Preserve user restrictions on reading, copying, linking, or loading environment files; if a required value cannot be supplied within those restrictions, park the lane with the exact requirement. - Remove the worktree: stop any live worker and confirm its harness process has exited, so its hooks no longer need WT. If WT exists,
git worktree remove WT, and if branch B is still local,git branch -D B. A worker that has not exited or a worktree with changes parks the lane. - Park the lane: stop driving it, ignore its later notifications, and leave its pane, worker, and worktree as they are. Its issue stays in IN_FLIGHT. If it holds the ship slot, release it. Send the notification (see On stop) with the title
PROJECT lane L needs youand the reason as its body, and add the reason to the friction log. The other lanes go on.
Run the lanes
Each lane runs the Loop on its own issue. Start by running Pick the issue for lanes 1 to LANES in order, so lane 1 takes the first issue in the queue. Then act on whichever lane's background wait notifies you, take that lane through its next steps up to its next wait, and wait again.
- A lane whose Pick finds nothing goes idle. Whenever an issue closes or a lane goes back to Pick, run Pick for every idle lane too: a closed issue can unblock others.
- The ship slot: one lane at a time runs from Sync to the end of Close out, so no other merge lands between a branch's sync and its own merge. A lane that reaches Sync while another holds the slot waits for it.
- When every lane is idle or parked, stop (see Stop conditions).
Worker
Claude Code sessions use these models and efforts:
| Session | Phases | Model | Effort |
| V | verify | opus | xhigh |
| T | triage | opus | high |
| A | implement, the QA and review restarts in step 3, fix | sonnet | high |
| B | refactor, ship | opus | high |
| C | retro | opus | high |
Codex and OMP sessions share these models and efforts (Codex reasoning effort, OMP thinking):
| Session | Phases | Model | Effort |
| V | verify | gpt-6-astra | high |
| T | triage | gpt-6-astra | high |
| A | implement, QA restart in step 3 | gpt-6.1-sol | medium |
| A | review restart in step 3, fix | gpt-6-astra | high |
| B | refactor, ship | gpt-6-astra | high |
| C | retro | gpt-6-astra | high |
Select the row for the phase being started on every launch and restart. In Codex and OMP, defer the review inside /implement to the fresh review worker in step 3, so it runs on Astra. If findings reach step 4 from a Sol worker, restart on the fix row before prompting /fix-findings; include each finding's full text, prior reports and their checked commits, and the issue reference, since the fresh session has no record of them.
For OMP, resolve OMP_WORKER_CONFIG to the absolute path of omp-worker.yml beside this skill, not relative to WT. This read-only launch overlay disables configured auto-resume without changing user/project settings. A missing or invalid overlay is a launch failure: park the lane. --no-prewalk prevents an automatic model handoff from overriding the phase model. Retain normal skill/extension discovery and permission controls; add no auto-approval flags or resume/continue options. OMP's -c means continue, not Codex configuration.
- Start the worker:
herdr pane run PANE "cd WT"with WT shell-quoted inside the command, then start the selected harness: forclaude,herdr agent start WORKER --kind claude --pane PANE -- --model MODEL --effort EFFORT; forcodex,herdr agent start WORKER --kind codex --pane PANE -- --model MODEL -c model_reasoning_effort=EFFORT; foromp,herdr agent start "$WORKER" --kind omp --pane "$PANE" -- --model "$MODEL" --thinking "$EFFORT" --no-prewalk --config "$OMP_WORKER_CONFIG", with MODEL and EFFORT from the current phase row. Shell-quote every substituted path and value in all recipes. Then runherdr pane report-metadata PANE --source orchestrate --display-agent "worker L". The shell can still be starting, or the last worker still exiting: ifagent startreturnsagent_pane_busyor says the name is in use, runsleep 3and start it again, up to five times. If it returnsagent_not_ready, a startup dialog such as folder trust holds the worker: answer it (see Answer a dialog). - Stop the worker: read
herdr agent get WORKER.result.agent.agent_session. Whenkindispath, retain its absolutevaluedirectly in SESSIONS (the issue's worker evidence for retro); never prepend SESSION_ROOT or append.jsonl. Retain any previously known path even if this final metadata read omits it. For Claude/Codex IDs, retain the value and its transcript path under SESSION_ROOT when found. Capture evidence beforeherdr agent prompt WORKER "/exit"; this native OMP command is not/skill:exit. The pane stays. Transcripts stay at their recorded paths when WT is removed. - Restart the worker: stop it and confirm its harness process has exited, then start it. Use a fresh launch, not
/restart. - Show phase P: at the start of each phase below, set the lane's phase to
#N Pand runherdr tab rename "$HERDR_TAB_ID" "<each busy lane's phase, joined by ' | '>". - Wait for the worker: run every
herdr agent prompt ... --waitas a background command, so the other lanes go on meanwhile. When it returns, runherdr agent wait WORKER --until idle --until done --until blockedin the background and let it notify you. The wait can returndonebetween two turns while sub-agents are still running, so then runsleep 15andherdr agent get WORKER: if it isworking, wait for the worker again. If the worker isblocked, answer the dialog (see Answer a dialog) and wait for the worker again. - Read the worker's reply: check its current state with
herdr agent get WORKER. Useherdr agent read WORKER --source visible --lines <n>while it is working, blocked, or unknown; use--source recent-unwrappedfor history only after it settles at idle or done. Capturing alternate-screen history can require scrolling, which Herdr refuses while a worker is active. If a history read returnsagent_not_idlebecause the state changed, read with--source visibleand continue; this read-mode mismatch is recoverable and does not park the lane. After an OMP worker's first completed turn, validate.result.agent.agent_session: requirekind = "path"and an absolutevalue, and retain that filename in SESSIONS. A missing/non-path native reference parks the lane with the exact evidence gap; never substitute another session's transcript. Session creation is lazy, so do not require a file before the first turn. If the pane does not show the reply (for example, it is scrolled up with a "new message" marker), read the transcript. Apathreference is the filename itself. Otherwise locate Claude/Codex IDs under SESSION_ROOT: Claude Code uses<session>.jsonl; Codex rollout filenames include the session ID and live in dated subdirectories. For OMP, take the last assistant text from JSONL entries withtype: "message"andmessage.role: "assistant", joining only text content blocks. Skip thinking/tool-call blocks and non-message records, including the physical title record. If no matching readable transcript is available, ask the idle worker to write its last reply to a temporary file and return the path, then read that file.
Answers
When a worker is blocked, or has an open question (QUESTION is not NONE, or it ended its turn on a question), read ANSWER.md: its Answer a dialog and Answer a question are the procedures the steps below name, and its Safe actions decide what you may approve.
Loop
1. Pick the issue
If the operator asked you to pause, the lane goes idle. Otherwise run RUN <this skill's directory>/scripts/next-issue.mjs READY BUG TRIAGE in the main checkout. It lists the open, unassigned issues to work on, with an open blocker (native, or a Blocked by: line) dropped: specs whose tickets are all closed, then bugs, then the rest, lowest number first. Each line is number<TAB>title<TAB>spec|ready|triage. Specs and TRIAGE bugs count only when the repo's own team filed them.
Take the first line whose number is not in IN_FLIGHT. If there is none, the lane goes idle. Add N to IN_FLIGHT and say which issue you picked, as lane L: #N title. Empty SESSIONS. Create the worktree: with no branch for a spec; otherwise on branch fix/N-<slug> for an issue labelled BUG and feat/N-<slug> for any other, where slug is the title in lowercase kebab case, at most 40 characters. If its last column is spec, verify it: read SPEC.md. If it is triage, triage it first: read TRIAGE.md.
2. Implement (session A)
- Show phase
implement. Start the worker. herdr agent prompt WORKER "/implement #N" --waitwith no--timeout, then wait for the worker. For Codex and OMP, append to the translated prompt:Complete implementation and QA, then stop before code-review. The orchestrator will run code-review and fix its findings in a fresh session.This can take a long time.- Run
git -C WT log --oneline origin/DEFAULT..HEAD. If it is empty, ask the five-line question from step 3. If QUESTION is not NONE, answer it, wait for the worker, and run this check again. Otherwise read the pane, report what the worker said, and park the lane.
3. Check the worker
Keep the latest QA and review reports with their checked commits in the lane's state; request them from the worker if its handoff gives only verdicts. A fresh worker's NONE means that session has no result; it does not erase an earlier result or its open findings. Before reusing one, inspect changes since its checked commit: retain unaffected QA evidence and review dispositions, and pass the prior reports and intervening diff to any follow-up. Review is current only when the intervening diff is empty or a completed follow-up covers it. Missing reports or changes that invalidate coverage require verification. Ask the worker, do not guess from scrollback:
herdr agent prompt WORKER "Reply with exactly five lines and nothing else. Line 1: BUSY=<yes if a background task or sub-agent you started is still running, else no>. Line 2: QA=<the verdict line of the last QA pass in this session, or NONE if none ran>. Line 3: REVIEW=<the verdict line of the code-review you ran in this session, or NONE if you did not run it>. Line 4: UNFIXED=<the code, or file:line if it has no code, of each verified finding and each QA fail that is still open: not fixed, and not settled by an answer to your question, or NONE>. Line 5: QUESTION=<a question you asked the user in this session that has no answer yet, or NONE>." --wait
herdr agent read WORKER --source recent-unwrapped --lines 40- BUSY=yes: run
sleep 60in the background, then ask again. If BUSY is still yes after 30 minutes, park the lane. - QUESTION is not NONE: answer it (see Answer a question).
- QA=NONE with no reusable lane result: run
git -C WT log --format=%s origin/DEFAULT..HEAD. If every subject has the typerefactor, the branch changes nothing a user can see: QA isskipped, refactor only. Otherwise show phaseqa, restart the worker, prompt it with/qa origin/DEFAULT #N(--wait, no timeout), and wait for the worker. Ask it the same five-line question. - REVIEW=NONE with no reusable lane result: show phase
review, restart the worker, prompt it with/code-review(--wait, no timeout), and wait for the worker. Ask it the same five-line question.
4. Fix findings
If UNFIXED is not NONE, show phase fix, prompt the current worker with /fix-findings <the UNFIXED value> (--wait), the prior reports and their checked commits, and instructions to use implement's follow-up verification. Wait for the worker. Then ask the five-line question again, and answer any open question. A finding that /fix-findings settled with no edit, because the option it applied (its own recommendation, or what the issue asks for) keeps the code as it is, counts as fixed. If UNFIXED still names a finding that is open, park the lane. Then prompt /commit (--wait) and wait for the worker, so the tree is clean for session B.
5. Refactor (session B)
- Show phase
refactor. Restart the worker. - Prompt
/refactor the changes on this branch since origin/DEFAULT(--wait, no timeout) and wait for the worker. Its questions and plan approval go through Answer a dialog and Answer a question. - If
git -C WT status --porcelainprints anything, prompt/commit(--wait) and wait for the worker.
6. Sync
Other lanes may have merged since this branch started. Wait for the ship slot (see Run the lanes), then bring the branch onto the current DEFAULT. The branch is not pushed yet, so a rebase rewrites nothing shared.
- Show phase
sync. Rungit -C WT fetch origin && git -C WT rebase origin/DEFAULT. If it rebased clean, go to Ship. - It stopped on conflicts: add
#N rebase conflicts in <files>to the friction log, prompt the current worker with/resolving-merge-conflicts(--wait, no timeout), and wait for the worker. The rebase is done whengit -C WT statusno longer reports a rebase in progress andgit -C WT status --porcelainprints nothing. If it is not, park the lane. - The resolved code is code that no QA pass ran: prompt
/qa origin/DEFAULT #N(--wait, no timeout), wait for the worker, and ask the five-line question from step 3. If its QA line has a fail, park the lane. That QA line replaces the one from step 3 in Ship.
7. Ship
- Show phase
ship. Prompt the current worker with/ship-pr QA of this branch stands: <the QA line from Sync, or else from step 3>(--wait, no timeout), then wait for the worker. Session B holds no record of the QA pass of session A and otherwise runs it again. - Read its last 60 lines. Find the PR URL and whether it merged.
- Confirm with
gh pr view <url> --json state,mergedAt. If the state is not MERGED (red CI, refused push, anything else), park the lane with the reason. Do not retry and do not fix.
8. Close out
- If issue N is still open, run
gh issue close N --comment "Merged in <PR URL>.". A closed issue unblocks the issues that wait on it. - Stop the worker and confirm its harness process has exited.
- In the main checkout:
git -c pull.rebase=false pull --ff-only. The tree must be clean. - Remove the clean worktree and release the ship slot.
- Create a detached worktree for the read-only retrospective.
9. Retro (session C)
- Show phase
retro. Start the worker. - Prompt
/retro the sessions <SESSIONS>. Report candidates only. Leave this repository and external sources unchanged; do not apply candidates, create checks, file issues, or publish a lessons PR.(--wait, no timeout). For OMP, pass the recorded absolute transcript paths. For Claude/Codex, use resolved paths when recorded, otherwise includewith transcripts under <SESSION_ROOT>with the actual root. Wait for the worker. - Record each surviving candidate in the friction log with its source and proposed fix. LESSONS is
noneor<count> candidates reported. Applying candidates is separate work for an explicit user request, not another step in this loop. - Stop the worker and confirm its harness process has exited. Confirm
git -C WT status --porcelainis empty. Unexpected changes park the lane for inspection; do not commit or discard them. Remove the clean worktree and go to Report.
10. Report
- Drop N from IN_FLIGHT.
- Run
gh issue list --state all --search "created:>=RUN_START" --json number,titleand add each issue not yet in the friction log asfiled #M title. Workers file bugs they find outside their issue; the next pick takes them first. - Report one line:
lane L: #N -> <PR URL>, merged, QA <verdict>, review <verdict>, lessons <LESSONS>. - Go back to Pick the issue.
Operator
- Pause: the operator can type into your pane while you work. A request to pause or stop means every busy lane finishes its current issue through Report and no lane picks a new one; then stop. A request to stop now means stop at once.
- Friction log: keep a running list across issues, each entry with its lane and issue: each dialog and question you answered (phase, what you chose), each
--waitthat returnedtimeoutoragent_prompt_stalled, each restart of the worker outside Refactor and Retro, each rebase conflict, each parked lane and its reason, each reported retro candidate, each triage outcome other than READY, and each issue filed during the run. Print it when you stop; it is the operator's input for tuning this skill. On stop: send one macOS notification, then print the reason and the friction log, including reported retrospective candidates. The operator is notified only here and when a lane parks: when the run is finished, or when it needs them.
- No lane is parked: title
PROJECT done, body<count> issues merged, <count> filed. - A lane is parked, or Setup failed: title
PROJECT needs you, body the reason, or each parked lane with its issue and reason.
Pass the text as arguments, so quotes in a reason cannot break the script:
osascript -e 'on run argv' -e 'display notification (item 2 of argv) with title (item 1 of argv) sound name "Glass"' -e 'end run' "TITLE" "BODY".- No lane is parked: title
Stop conditions
Park the lane when: triage left a bug untriaged, a spec found gaps on its second verification, /implement made no commits, a question stays open after three answer rounds, a dialog stays open after two answers, the worker asks to run an unsafe action, findings stay unfixed after /fix-findings, a rebase stays unfinished after /resolving-merge-conflicts or its QA fails, the issue PR does not merge, the read-only retrospective changes files, a worktree with changes refuses removal, or a herdr, gh, or git command about the lane fails.
Stop the run when every lane is idle or parked: the queue has nothing left that no lane holds, or the operator paused. Stop it at once when a Setup step fails or a herdr command about the run itself fails. On stop, close the panes of idle lanes, and leave the panes and worktrees of parked lanes open, so the operator can inspect them.
Rules
- One issue per lane, so at most LANES in flight. A lane starts its next issue after its issue is merged and its retrospective candidates are reported.
- One lane at a time holds the ship slot.
- Never remove a worktree the run did not create.
- Run unattended. Never hand a question or dialog to the user; answer it as above.
- If a
--waitreturnstimeoutoragent_prompt_stalled, read the pane before you do anything, since the prompt may have landed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

