onboard-harness
Skill1 starsChanged 6 months agoMITView on GitHub
Use when adding a new agentic coding harness to this comparison repo — clone its source, reconstruct its loop as a validated JSON spec, write its profile, and wire it into the matrices. Covers the full source-to-spec pipeline.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
Read the source and locate, with a real file:line for each:
- Distinctive: line 43
If the real loop doesn't fit the node-kind vocabulary, extend the schema and note the deviation — do not force the loop into the wrong …
- Very specific: line 47
Write site/src/data/loops/<harness>.json.
- Very specific: line 58
Create docs/harnesses/<harness>.md following the shape of the existing profiles (read one first — e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Onboard a Harness
Add a new harness so it appears in the visualizer and the docs. The work is source analysis → one validated loop spec → one profile doc → matrix updates. The loop spec is the single source of truth — the visualizer and docs both read it, so it cannot drift.
Announce at start: "Using onboard-harness to add <harness> to the comparison."
The contract you must satisfy
site/src/data/loops/<harness>.jsonvalidates againstsite/src/data/loops/schema.json.- It defines all four shared scenarios —
edit-file,denied-tool,multi-tool,plain-answer— by id. Parity is enforced:validate-loops.mjsfails the build if any harness is missing one. cd site && npm run buildexits 0 (validate + tsc + vite).
Everything else (appearing in Compare / Single / Sequence views) happens automatically — site/src/data.ts auto-discovers every loops/*.json via import.meta.glob. You never edit a component to register a harness. (The Wire and Hooks views are Claude-Code-only by design; ignore them.)
Step 1 — Obtain the source
External repos clone into the gitignored sources/ dir, shallow:
git clone --depth 1 <repo-url> sources/<harness>
git -C sources/<harness> rev-parse HEAD # record this SHARecord the exact SHA + version in docs/methodology.md alongside the others.
Claude Code is special. It is a leaked/recovered snapshot, not a live repo. Its refs are file-level only (no line numbers), and every claim is framed as "based on Claude Code
<version>Leak and speculation." The three live repos keep reproduciblepath:linerefs pinned to the recorded SHA. Do not mix these conventions.
Step 2 — Find the loop
Read the source and locate, with a real file:line for each:
- Loop entrypoint — where the turn/agent loop runs (often an async generator, a
while, or a delegatedAgent.run). - Model call — where it streams/calls the LLM.
- Tool dispatch — where a
tool_use/ function call is turned into an execution. - Permission/approval gate — where (or whether) the user can allow/deny a tool. Some harnesses have none — that is a finding, not a gap to invent.
- Stop/continue decision — what makes the loop iterate vs. end the turn (
stop_reason, etc.).
If the real loop doesn't fit the node-kind vocabulary, extend the schema and note the deviation — do not force the loop into the wrong shape. A structural surprise is worth surfacing.
Step 3 — Author the loop spec
Write site/src/data/loops/<harness>.json. Shape (authority is schema.json — read it, don't trust this sketch):
- Top-level:
harness,displayName,language,repo,version,loopStyle. nodes[]: each{ id, label, kind, sourceRef?, note? }.kindis the fixed vocabulary:input | llm | tool | approval | execute | decision | terminal. The colors/animation in the visualizer key offkind, so use it honestly.edges[]:{ from, to, on?, label? }—onis the branch condition (e.g.tool_use,end_turn,allow,deny).scenarios[]: each{ id, title, steps: [...nodeIds], note? }. Must include the four shared ids.stepsis the ordered node walk the player animates.
sourceRef ties a node to real code — this is the rigor that separates the real loop from the marketed one. Live repos: path:line. Claude Code: file-level, leak-framed.
Step 4 — Write the profile
Create docs/harnesses/<harness>.md following the shape of the existing profiles (read one first — e.g. docs/harnesses/opencode.md). Cover: type, repo/language/runtime, loop architecture, tool-call protocol, permission model, user-interaction model, context/memory, providers, UI, extensibility/MCP, limitations, sources.
Step 5 — Update the cross-cutting layer
README.md— add a row to the four-harness table (it becomes five+).docs/comparison.md— extend each matrix with the new column.CHANGELOG.md— add a line under[Unreleased].- Any deep-dive in
docs/(loops, tool-handling, user-interaction, language) where the new harness changes the comparison.
Step 6 — Verify (evidence, not vibes)
cd site && npm run buildConfirm in the output:
✓ <harness>.json — N nodes, M edges, 4 scenarios✓ scenario-id parity across <N> harnesses: [...]— the new harness is included.- tsc + vite build succeed.
Then spot-check 2–3 sourceRefs by opening the cited file:line in sources/<harness>/ and confirming it is actually the loop/dispatch/approval site claimed. Run npm run dev and watch the new harness step through edit-file and denied-tool in the Compare view.
Anti-patterns
- Inventing an approval gate a harness doesn't have. Model what's there; absence is a result.
- Editing a component to register the harness. Glob discovery does it; if it's not showing up, the JSON failed validation or lacks a
harnessfield. - Line numbers on Claude Code refs. File-level + leak framing only.
- Skipping the sourceRef spot-check. Unverified refs are the one thing that quietly rots this repo's credibility.
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.

