Agent Swarm is a self-hosted operating system for coordinating AI agents as a company-wide workforce. A lead agent assigns work to workers running in isolated containers, while shared memory, tools, schedules, workflows, and review gates preserve and manage that work. The catalogue entries provide agents, commands, skills, hooks, and other extensions for operating the system.
Borrowing it
Nothing to install: this file belongs to desplega-ai/agent-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/desplega-ai/agent-swarm/main/CLAUDE.mdgit clone --depth 1 https://github.com/desplega-ai/agent-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/desplega-ai/agent-swarm/claude-md)<a href="https://agentmods.dev/instructions/desplega-ai/agent-swarm/claude-md"><img src="https://agentmods.dev/badge/instructions/desplega-ai/agent-swarm/claude-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/desplega-ai/agent-swarm/claude-md"><img src="https://agentmods.dev/badge/instructions/desplega-ai/agent-swarm/claude-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.06151 | $0.06151 |
| Opus 5.5 | $0.02460 | $0.02460 |
| Sonnet 5.5 | $0.01230 | $0.01230 |
| Haiku 4.5 | $0.00615 | $0.00615 |
Grade A, and why
agent-swarm CLAUDE.md 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 3d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Swarm
Multi-agent orchestration for Claude Code, Codex, Gemini CLI. Bun + TypeScript, bun:sqlite (WAL), Biome, Ink CLI.
Setup: CONTRIBUTING.md. Server: bun run start:http.
Architecture invariants
- The API server (
src/http.ts,src/server.ts,src/tools/,src/http/) is the sole owner of the database (SQLite, or Postgres whenDATABASE_URLis set; runbooks/postgres.md). Worker-side code (src/commands/,src/hooks/,src/providers/,src/prompts/,src/cli.tsx,src/claude.ts) NEVER importssrc/be/dborbun:sqlite: it calls the API over HTTP with the swarm API key and theX-Agent-IDheader. CI:scripts/check-db-boundary.sh. - Read the swarm API key with
getApiKey()fromsrc/utils/api-key.ts(precedenceAGENT_SWARM_API_KEY>API_KEY), NEVER fromprocess.env. CI:scripts/check-api-key-boundary.sh. - System prompt and task prompt text goes through the prompt-template registry in
src/prompts/. To add a prompt section, add or update a registered template and resolve it from the call site, instead of concatenating strings in runners, hooks or providers. - Use Bun, not Node, npm, pnpm or vite:
Bun.serve()for HTTP/WebSocket,bun:sqlitefor SQLite (API server only),Bun.file()for file I/O,Bun.$for shell. Bun loads.envby itself.
Pull requests
Every PR, from anyone, fills .github/pull_request_template.md: keep its **Why:**, **Risk:** and **Urgency:** lines and its ## headings. gh pr create --body and --fill skip the template, so write the body to a file, check it, then pass the file:
bun scripts/check-pr-body.ts --title "<conventional title>" --body-file /tmp/pr-body.md
gh pr create --title "<conventional title>" --body-file /tmp/pr-body.md
A red PR Body check blocks the merge. Editing the description re-runs it, with no push. Section rules: the "writing a pull request description" block below.
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.
- 3d ago Changed · +1 lines · +10 tokens per session 00706ab282f8
- 7d ago Changed · +37 tokens per session 397dcc830599
- 10d ago Changed · +77 tokens per session a2227108fdc0
- 13d ago Changed · -234 lines · -5,438 tokens per session 75e859cb47f3
- 16d ago Changed · +2 lines · +109 tokens per session 9be8b3bb819c
- 17d ago Changed · +9 tokens per session dfa3e43cc061
- 21d ago Changed · +67 tokens per session 15dae789f8e9
- 22d ago Changed · +1 lines · +331 tokens per session 739fdcfd89eb
- 25d ago Changed · +8 lines · +144 tokens per session 1dea3d1b7441
- 27d ago First seen · 442 lines · 10,805 tokens per session scan A a37661a86d7b
agent-swarm CLAUDE.md is an instructions file published in the GitHub repository desplega-ai/agent-swarm (1,160 stars, last pushed today), licensed MIT. It adds 6,151 tokens to every session, about $0.0246 per session on Opus 5.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.
agent-swarm CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-swarm CLAUDE.mddesplega-ai/agent-swarm | Instructions file | 1.2k | today | MIT | A | 6,151 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 9,887 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 144k | today | MIT | A | 7,230 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 5,685 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 150k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 196k | today | MIT | A | 3,303 | GitHub Copilot |
| deno copilot-instructions.mddenoland/deno | Instructions file | 109k | yesterday | MIT | A | 3,077 | GitHub Copilot |