octocode-subagent

octocode-subagent is a skill for Claude Code, Codex from bgauryy/octocode. It costs 80 tokens per session (1,402 once invoked), scanned A, original, MIT.

A guide for assigning coding work to other agents or to local Ollama models, then checking and combining their results.

In plain words
What is it for?
Use it to split bounded tasks, route work to specialists, coordinate workers, review claims, and synthesize a final result.
Why use it?
It helps decide when delegation is worthwhile and keeps each worker's task, evidence, permissions, and output clear.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it to split bounded tasks, route work to specialists, coordinate workers, review claims, and synthesize a final result.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bgauryy/octocode/octocode-subagent
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bgauryy/octocode --skill octocode-subagent
Clone the repo
git clone --depth 1 https://github.com/bgauryy/octocode

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for octocode-subagent

README.md
[![agentmods](https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-subagent/github.svg)](https://agentmods.dev/skills/bgauryy/octocode/octocode-subagent)
Your own site
<a href="https://agentmods.dev/skills/bgauryy/octocode/octocode-subagent"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-subagent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for octocode-subagent

Your own site · 80×15
<a href="https://agentmods.dev/skills/bgauryy/octocode/octocode-subagent"><img src="https://agentmods.dev/badge/skills/bgauryy/octocode/octocode-subagent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,402 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00080 $0.01402
Opus 5 $0.00040 $0.00701
Sonnet 5 $0.00016 $0.00280
Haiku 4.5 $0.00008 $0.00140

Measured 11d ago against content hash aedc4bc5be37, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

octocode-subagent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/ollama-health.sh, scripts/ollama-worker.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/octocode-subagent/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

  1. Spawn only when delegation changes speed, expertise, isolation, or context quality; otherwise keep work in the parent. Default is solo; earn spawn cost first.
  2. One bounded objective per worker; no nested spawning unless the host explicitly allows it.
  3. Workers inherit no parent chat: every packet carries goal, scope, context, authority, constraints, evidence needs, and return shape.
  4. Treat worker output as claims; re-check load-bearing anchors (Ollama: always VERIFY).
  5. Barrier before synthesize — wait/list every live worker (or stop+remove); merge conflicts first; then answer.
  6. Parent owns the user, synthesis, and mutations unless a packet explicitly transfers write ownership.
  7. Pick the smallest capable configured model; declare file ownership before parallel writes.
  8. Challenge techniques use fresh context; agreement is not proof.
  9. 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 load references/patterns.md — create a dependency-aware topology.
  • Before spawning, load references/packets.md; when delegating technical research load references/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 load references/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 load references/synthesize.md and references/output.md; at CLEANUP stop and remove every worker and release shared state per references/coordinate.md.
  • When grounding orchestration guidance in sources, load references/references.md.
  • When improving this skill, prefer octocode-graph-eval; otherwise load references/improve-loop.md.

Read the full file on GitHub · 57 lines

Files

What ships with it

41 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 57 lines · 80 tokens per session scan A aedc4bc5be37

Subscribe to this mod's changes

octocode-subagent is a skill published in the GitHub repository bgauryy/octocode (932 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 1,402 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.