Borrowing it
Nothing to install: this file belongs to ZaxbyHub/opencode-swarm. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ZaxbyHub/opencode-swarm/main/AGENTS.mdgit clone --depth 1 https://github.com/ZaxbyHub/opencode-swarmWrote 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.
[](https://agentmods.dev/instructions/zaxbyhub/opencode-swarm/agents-md)<a href="https://agentmods.dev/instructions/zaxbyhub/opencode-swarm/agents-md"><img src="https://agentmods.dev/badge/instructions/zaxbyhub/opencode-swarm/agents-md/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.
<a href="https://agentmods.dev/instructions/zaxbyhub/opencode-swarm/agents-md"><img src="https://agentmods.dev/badge/instructions/zaxbyhub/opencode-swarm/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.08102 | $0.08102 |
| Opus 5.5 | $0.03241 | $0.03241 |
| Sonnet 5.5 | $0.01620 | $0.01620 |
| Haiku 4.5 | $0.00810 | $0.00810 |
Grade A, and why
opencode-swarm AGENTS.md scanned grade A with 1 finding 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 10d ago.
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.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- Windows is first-class. Handle `.cmd` extensions for npm/bun binaries, PATH differences, and the fact that `child_process.spawn('bin', ...)` does not behave identically to `cmd.exe`. How it starts
The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Engineering contract for opencode-swarm
This file is the root engineering contract for opencode-swarm. It applies to every contributor — human, Claude Code, OpenCode agent, or other automated tool. Read it fully before making any code change. It is intentionally short and operational; the long-form rationale and historical failure map live in
docs/engineering-invariants.md.
Required reading order
| When you are about to do… | Read these (in order) |
|---|---|
| Any code change | AGENTS.md (this file) → docs/engineering-invariants.md (skim, deep-dive on touched invariants) |
| Write or modify any test file | this file → .opencode/skills/writing-tests/SKILL.md (or .claude/skills/writing-tests/SKILL.md for Claude) |
| Commit / push / open a PR | this file → .claude/skills/commit-pr/SKILL.md |
| Trace, investigate, root-cause, fix, or resolve an issue or bug | this file → .opencode/skills/issue-tracer/SKILL.md (or .claude/skills/issue-tracer/SKILL.md for Claude) |
Change Epic Mode (src/epic/**, an Epic seam in a shared file, or the epic config block) |
this file → src/epic/README.md (Epic maintainer guide: invariants, seams, tests, recipes) |
| Swarm-mode Claude work | this file → CLAUDE.md → .claude/session/swarm-mode.md (when present) |
| Architecture / plugin init / subprocess / tool-registration / plan-durability / .swarm storage / runtime-portability change | this file → docs/engineering-invariants.md → .opencode/skills/engineering-conventions/SKILL.md (or .claude/skills/engineering-conventions/SKILL.md) |
AGENTS.md and docs/engineering-invariants.md together are the single source of truth for repository invariants. When CLAUDE.md, contributing.md, TESTING.md, or any skill conflicts with this file, this file wins; that skill or doc is out of date and must be reconciled.
Repository-history cache reuse
- Before creating or rebuilding any repository-derived cache or index, agents must first search the current worktree and known sibling/source repository locations for an existing compatible artifact.
- Before initializing, rebuilding, or performing a full sync of a ZaxbyGraph issue/PR database, search the current worktree and known sibling/source repository locations for an existing cache first.
- Validate any discovered cache against the requested repository and inspect its sync metadata before reuse. When it is compatible, reuse it in place if writable or copy it into the current worktree and run only an incremental sync.
- Build a new cache from scratch only when no compatible, usable cache exists. Record that discovery result before starting the rebuild so agents do not repeat avoidable GitHub API work or consume rate limits unnecessarily.
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.
- 10d ago Changed · +35 tokens per session a157e17536c9
- 23d ago Changed · +71 tokens per session 06c533502346
- 1mo ago Changed · +1 lines · +95 tokens per session 09e3d91ea609
- 1mo ago Changed · +1 lines · +412 tokens per session 5ebcaf0240ba
- 1mo ago Changed · +40 tokens per session 20c587092eb4
- 1mo ago Changed · +7 lines · +161 tokens per session 65c9a89963ae
- 1mo ago Changed · +58 tokens per session d3de7baf067e
- 1mo ago Changed · +1 lines · +80 tokens per session b00417b65bc1
- 2mo ago Changed · +376 tokens per session b0bd88aebaa2
- 2mo ago First seen · 172 lines · 6,774 tokens per session scan A eb8a66b3a845
opencode-swarm AGENTS.md is an instructions file published in the GitHub repository ZaxbyHub/opencode-swarm (518 stars, last pushed today), licensed MIT. It adds 8,102 tokens to every session, about $0.0324 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
opencode-swarm AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| opencode-swarm AGENTS.mdZaxbyHub/opencode-swarm | Instructions file | 518 | today | MIT | A | 8,102 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |