octocode-subagent
Skill947 starsChanged 3 months agoMITView on GitHub
Use when spawning workers or offloading work: Task/subagents, specialist handoffs, A2A peers, sealed packets, coordinate/synthesize, challenge techniques (rubber-duck, interview, mimic-flow, red-team, blind review, consensus), or local Ollama one-shots to save tokens. Measuring keep/discard KPIs → octocode-graph-eval.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- octocode-brainstormingSkill
- octocode-chrome-devtoolsSkill
- octocode-documentationSkill
- octocode-graph-evalSkill
- octocode-mannequinSkill
- octocode-prompt-optimizerSkill
- octocode-researchSkill
- octocode-rfc-generatorSkill
- octocode-roastSkill
- octocode-scrapingSkill
- octocode-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
27 rules. About 0 are common, 2 are distinctive, and 25 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
25
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Treat worker output as claims.
- Distinctive: line 21
Stop when solo work finishes, two High options need a winner, three angles add nothing, a user/auth gate is pending, or no live workers …
- Very specific: line 24
When deciding solo, batch, specialist, or clean worker, load references/spawn-gate.md — delegation must earn its coordination cost.
- Very specific: line 25
When splitting work, load references/decompose.md.
- Very specific: line 26
Before spawning, load references/packets.md.
- Very specific: line 27
When selecting host model/thinking effort, load references/model-routing.md — smallest capable configured model.
- Very specific: line 28
When waiting, steering, messaging, or stopping workers, load references/coordinate.md.
- Very specific: line 29
When parallel writers share mutable state, load references/workspace.md.
- Very specific: line 30
When workers stall, fail, or conflict, load references/recovery.md.
- Very specific: line 31
When grounding orchestration guidance in sources, load references/references.md.
- Very specific: line 32
When improving this skill, prefer octocode-graph-eval.
- Very specific: line 35
When quality risk needs a second mind, load references/techniques.md first — it names which technique below earns the spawn.
- Very specific: line 36
When a plan needs cheap assumption surfacing without new research, load references/rubber-duck.md.
- Very specific: line 37
When a worker must follow a borrowed playbook without borrowed chat, load references/mimic-flow.md.
- Very specific: line 38
When a critic must judge the artifact and not the author’s story, load references/blind-review.md.
- Very specific: line 41
When saving tokens with local Ollama (summarize/extract/…), load references/local-ollama.md — not a Task/A2A spawn path.
- Very specific: line 42
When running that offload loop end to end, load references/workflow.md — health GATE, ROUTE, RUN shards, VERIFY, REPORT what was offloaded.
- Very specific: line 43
When unsure whether offload beats solo, load references/decision-matrix.md.
- Very specific: line 44
When selecting Ollama tags, load references/model-selection.md.
- Very specific: line 45
When writing the sealed packet, load references/packet-contract.md.
- Very specific: line 46
When inventorying models or debugging CLI behavior, load references/ollama-cli.md.
- Very specific: line 47
Before integrating any worker output, load references/verify-gate.md — pass, one tighter packet, one cascade, or solo.
- Very specific: line 48
When the question is RAM kits, catalog, or MCP/tools capability rather than routing, load references/ollama-local-models.md — pull commands …
- Very specific: line 51
Use octocode-research for worker evidence.
- Very specific: line 52
Use octocode-rfc-generator before changing a multi-agent architecture.
- Very specific: line 55
Run scripts/ollama-health.sh at GATE, then again with --model "$OLLAMA_WORKER_MODEL" after ROUTE — daemon or tag missing means stay solo.
- Very specific: line 56
Run scripts/ollama-worker.sh once per sealed packet or shard at RUN — --job, --input, --schema, --out, --keepalive.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Octocode Subagent
Host-agnostic delegation: cloud/host workers or local Ollama offload.
Flows: GATE → DECOMPOSE → ROUTE → PACKET → SPAWN → COORDINATE → SYNTHESIZE → CLEANUP (tool-using) · GATE → ROUTE → RUN → VERIFY → REPORT (Ollama — references/local-ollama.md).
Lobby rules
- Spawn only when delegation changes speed, expertise, isolation, or context quality; otherwise keep work in the parent. Default is solo; earn spawn cost first.
- One bounded objective per worker; no nested spawning unless the host explicitly allows it.
- Workers inherit no parent chat: every packet carries goal, scope, context, authority, constraints, evidence needs, and return shape.
- Treat worker output as claims; re-check load-bearing anchors (Ollama: always VERIFY).
- Barrier before synthesize — wait/list every live worker (or stop+remove); merge conflicts first; then answer.
- Parent owns the user, synthesis, and mutations unless a packet explicitly transfers write ownership.
- Pick the smallest capable configured model; declare file ownership before parallel writes.
- Challenge techniques use fresh context; agreement is not proof.
- Local Ollama is tool-less one-shot/map-reduce only — never a tool-using agent loop. Stop when solo work finishes, two High options need a winner, three angles add nothing, a user/auth gate is pending, or no live workers remain.
Smart routes — load only what the current step needs
- When deciding solo, batch, specialist, or clean worker, load
references/spawn-gate.md— delegation must earn its coordination cost. - When splitting work, load
references/decompose.md; when choosing supervisor, pipeline, handoff, or swarm loadreferences/patterns.md— create a dependency-aware topology. - Before spawning, load
references/packets.md; when delegating technical research loadreferences/octocode.md— make worker context and tool routing self-contained. - When selecting host model/thinking effort, load
references/model-routing.md— smallest capable configured model. - When waiting, steering, messaging, or stopping workers, load
references/coordinate.md; for independent remote peers loadreferences/a2a.md. - When parallel writers share mutable state, load
references/workspace.md. - When workers stall, fail, or conflict, load
references/recovery.md; before final output loadreferences/synthesize.mdandreferences/output.md; at CLEANUP stop and remove every worker and release shared state perreferences/coordinate.md. - When grounding orchestration guidance in sources, load
references/references.md. - When improving this skill, prefer
octocode-graph-eval; otherwise loadreferences/improve-loop.md.
Challenge routes — fresh context per critic; agreement is not proof
- When quality risk needs a second mind, load
references/techniques.mdfirst — it names which technique below earns the spawn. - When a plan needs cheap assumption surfacing without new research, load
references/rubber-duck.md; when another agent’s claims need claim-by-claim falsification, loadreferences/interview.md. - When a worker must follow a borrowed playbook without borrowed chat, load
references/mimic-flow.md; when a design looks too clean to ship, loadreferences/red-team.md. - When a critic must judge the artifact and not the author’s story, load
references/blind-review.md; when one solve stays ambiguous and independent retries can cut noise, loadreferences/consensus.md.
Local Ollama routes — tool-less one-shot / map-reduce offload only
- When saving tokens with local Ollama (summarize/extract/…), load
references/local-ollama.md— not a Task/A2A spawn path. - When running that offload loop end to end, load
references/workflow.md— health GATE, ROUTE, RUN shards, VERIFY, REPORT what was offloaded. - When unsure whether offload beats solo, load
references/decision-matrix.md; when the surface is unclear (research, article, code, translate, images), loadreferences/usage-matrix.md. - When selecting Ollama tags, load
references/model-selection.md; when an installed family needs special flags or two families tie, loadreferences/family-playbooks.md. - When writing the sealed packet, load
references/packet-contract.md; for the example JSON schemas it references, loadreferences/packet-schemas.md. - When inventorying models or debugging CLI behavior, load
references/ollama-cli.md; forollama runflags, non-interactive patterns, and HTTP equivalents loadreferences/ollama-cli-run.md; for script invoke and serving knobs loadreferences/ollama-invoke.md. - Before integrating any worker output, load
references/verify-gate.md— pass, one tighter packet, one cascade, or solo; never silent-accept. - When the question is RAM kits, catalog, or MCP/tools capability rather than routing, load
references/ollama-local-models.md— pull commands per RAM inreferences/ollama-local-models-kits.md, capability rows inreferences/ollama-local-models-matrix.md, cloud/heavy tags plus a sample inventory inreferences/ollama-local-models-heavy.md, evidence and links inreferences/ollama-local-models-sources.md.
Related routes
- Use
octocode-researchfor worker evidence;octocode-graph-evalto judge worker quality (subagent measurement cookbooks live there). - Use
octocode-rfc-generatorbefore changing a multi-agent architecture;octocode-prompt-optimizerfor packet contracts;octocode-skillswhen changing this folder.
Scripts
- Run
scripts/ollama-health.shat GATE, then again with--model "$OLLAMA_WORKER_MODEL"after ROUTE — daemon or tag missing means stay solo. - Run
scripts/ollama-worker.shonce per sealed packet or shard at RUN —--job,--input,--schema,--out,--keepalive.
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.

