harness-orchestration
Skill1 starsChanged 2 months agoMITView on GitHub
Route a software-development task to the cheapest step that can carry it, while protecting the main Claude context. Use when you cannot name the files a change touches, or when something other than this session will execute it: isolated reconnaissance, durable decisions, a self-contained spec, bounded Claude implementation, and independent verification. A change whose files you can already name is made directly, without any of it.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- loktar00/agent-skillstheir own version, first seen Aug 26, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- loktar00/agent-skills★ 10same name
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 repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- harness-fixture-smoke-testSkill
- harness-release-bumpSkill
- harness-sessionSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 8 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Can you name the files this change touches?: If not, you need reconnaissance.
- Distinctive: line 17
Will something other than this session execute it?: If not, you do not need a spec.
- Distinctive: line 25
Read the files you named.
- Distinctive: line 27
Run the smallest check that would fail if you got it wrong.
- Distinctive: line 30
No report, no decision, no spec, no delegate, no reviewer.
- Very specific: line 38
Read only the .ai/ artifacts that bear on the decision.
- Very specific: line 41
Write .ai/specs/current-task.md only when a delegate will execute it.
- Distinctive: line 54
Write one accepted decision set and bounded specs.
- Distinctive: line 56
Never start concurrent write lanes without worktree isolation and explicit ownership.
- Distinctive: line 77
Ask for one when any of these holds, and skip it otherwise:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Orchestrated Development
The main Claude session owns ambiguity resolution, architecture, synthesis, specification, integration, and the final gate.
Route before acting
Escalation buys isolation, not quality. Every step outward costs a round trip, a cold context, and an artifact somebody has to read later. Spend it on risk you can name, never on a feeling that the task deserves ceremony.
Two questions decide the route, and both are answerable in seconds:
- Can you name the files this change touches? If not, you need reconnaissance.
- Will something other than this session execute it? If not, you do not need a spec.
Route on the answers. When they disagree with your instinct, follow the answers.
Direct
You can name the files, and you will make the change here. Most real work lands here: a bug fix, a bounded feature, a refactor inside known files, a dependency bump, a missing test.
- Read the files you named.
- Make the change.
- Run the smallest check that would fail if you got it wrong.
- Report the diff and the result.
No report, no decision, no spec, no delegate, no reviewer. Write a durable artifact only when the task uncovered something a later session would otherwise rediscover.
Escalate mid-task when the change reaches past the files you named, or the codebase contradicts what you assumed going in. That is the signal. Growing unease is not.
Standard
Reconnaissance or delegation is genuinely required: you could not name the files, the change spans surfaces whose existing patterns you have not read, or a delegate will execute it.
- Read only the
.ai/artifacts that bear on the decision. - Dispatch
harness-codebase-researcherwith the Agent tool when raw exploration would pollute the main context. Send it a question, not a directory. If one search of your own would answer it, run that search instead. - Synthesize the evidence here.
- Write
.ai/specs/current-task.mdonly when a delegate will execute it. A spec for work you will do yourself is a transcript of what you already know. - Execute the bounded spec in Claude or delegate it to a narrow Claude implementation subagent.
- Inspect the actual diff and verify each acceptance criterion against observable behavior.
Record a report or decision when the finding outlives the task. A conclusion you reached and acted on in the same session is already in the diff.
Complex
Architecture, broad migration, cross-domain state, a high-risk path, or genuinely independent implementation surfaces.
- Split reconnaissance by question, not by arbitrary file count.
- Dispatch the read-only investigations together in one message so they run concurrently, and collect the reports as they land.
- Resolve conflicts and trade-offs here.
- Write one accepted decision set and bounded specs.
- Fleet is not installed. Keep execution sequential unless the harness is deliberately upgraded.
- Never start concurrent write lanes without worktree isolation and explicit ownership; upgrade the harness first when that machinery is not installed.
- Integrate through one orchestrator and run one full integration gate.
Dispatch
Two mechanisms exist and they are not interchangeable. Picking the expensive one for a cheap job is the single most common way this harness gets slow.
The Agent tool is the default. It runs a subagent in an isolated context, in the same process, and returns the conclusion straight into this conversation. No copy-paste, no return channel to poll, nothing left running afterwards. Reconnaissance, review, and verification all belong here - that is nearly every dispatch this harness makes.
Independent agents go out in one message, not one after another. Three questions dispatched together cost one wait; dispatched in sequence they cost three. Split by question, never by file count, and give each one a question rather than a directory.
A separate CLI session is for what the Agent tool structurally cannot do: a lane that needs its own worktree, that must outlive this session, or that genuinely writes concurrently with another lane. It costs a cold start, a filesystem return channel, and a sweep afterwards to catch orphans. Pay that only for those properties, never for isolation alone - the Agent tool already provides isolation.
When scripts/ai-harness/harness_session.py is absent, this tier installs no session runtime and the Agent tool is the only dispatch available. When it is present, /session drives it; read-only tiers can be run directly with --exec, while a writing tier prints its command for the operator to run.
Independent review
Dispatch harness-code-reviewer with the Agent tool for an independent, read-only pass.
An independent pass replaces your own verification; it does not follow it. Two sequential reviews of one diff find what one finds, at twice the cost.
Ask for one when any of these holds, and skip it otherwise:
- the change touches a path listed under Sensitive areas in
AGENTS.md, - the same author wrote both a behavior and the test that proves it,
- the diff grew large enough that you stopped reading it closely,
- a delegate reported completion and you hold no direct evidence of it.
Artifact semantics
- Report: evidence about what exists.
- Decision: accepted durable choice.
- Spec: self-contained execution contract.
- Run ledger: temporary coordination state.
- Backlog: resumable unfinished state.
An artifact nobody will open again is cost without benefit. Do not paste raw logs or full file dumps into durable artifacts.
Specification gate
Reached only when something other than this session will execute the work. A delegate that cannot see the original conversation must be able to execute from the spec alone. Include:
- goal and current context,
- explicit behavior,
- OWNS and MUST-NOT-TOUCH scope,
- constraints and relevant decisions,
- observable acceptance criteria,
- exact verification commands,
- completion report format.
Verification
A delegate's completion message is a claim, not proof. Inspect the actual diff and run exact commands from AGENTS.md and the spec. When the same delegate wrote both behavior and tests, add an independent acceptance probe for important behavior.
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.

