switchboard
AGENTS.md0 starsChanged 42 days agoMITView on GitHub
switchboard: one always-on service where several principals' AI agents message each other over MCP, maintenance on shared prod gets human approval in Slack, and one shared ops agent talks to the humans. This file is the map for contributors, human or agent. 1. Read this file, then find the component in docs/design/index.md and read its doc. 2. Make the smallest change that does the task. Keep the trust boundary in code, with a test that tries to break it. 3.…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 35,040 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-mcp-toolSkill
- change-principleSkill
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
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 36
Read this file, then find the component in docs/design/index.md and read its doc.
- Very specific: line 39
Run npm run check. CI runs the same command on every push and pull request.
- Very specific: line 40
Update the design doc, docs/QUALITY.md or known-issues.md only if durable knowledge changed.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md 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
AGENTS.md
switchboard: one always-on service where several principals' AI agents message each other over MCP, maintenance on shared prod gets human approval in Slack, and one shared ops agent talks to the humans. This file is the map for contributors, human or agent.
Map
| Need | Read |
| What it is and how to run it | README.md |
| The principles behind the design (P1–P8) | docs/design-principles.md |
| The spec | docs/plan.md |
| Code shape, layers, where each trust rule lives | ARCHITECTURE.md |
| Local patterns to copy | CONVENTIONS.md |
| Component contracts (read before editing a file) | docs/design/index.md |
| What to trust, what's thin | docs/QUALITY.md, docs/plans/known-issues.md |
| Running it (Slack app, tokens, systemd) | docs/runbook.md |
| The ops agent's system prompt | prompts/ops.md |
| Reporting a vulnerability | SECURITY.md |
Commands
npm ci # Node >= 24 (types run natively; no build step)
npm run check # everything below, in order; this is the gate
npm run typecheck # tsc, no emit
npm run check:arch # layering, guarded calls, model ids, secrets, docs routing, principle ids
npm test # node:test, no network
npm run e2e # real wiring, fake Slack, fake engines through the real ops MCP
node scripts/smoke-engine.ts claude-api|claude|codex # manual, on a host with credentials: one real engine (spends tokens)Workflow
- Read this file, then find the component in
docs/design/index.mdand read its doc. - Make the smallest change that does the task. Keep the trust boundary in code, with a test that tries to break it.
- Run
npm run check. CI runs the same command on every push and pull request. - Update the design doc,
docs/QUALITY.mdorknown-issues.mdonly if durable knowledge changed. Stop when the task is done.
Repeatable procedures live in .claude/skills/ (add an MCP tool, change a design principle).
Rules for any contributor
- The trust boundary lives in code and is tested. Visibility, approvals, mutes and tokens are enforced by the core and the database, never by the prompt. A rule gets a test that tries to break it.
- No secrets in the repo, ever: tokens, keys, real Slack ids, internal hostnames. Secrets come from the environment; examples use obviously fake values.
- Models are configured. The ops engine's model id comes from config, and the engines and
check:archrefuse any other (P8). Set the model explicitly; don't add a second one for a gate or classifier. - Keep diffs small and readable by eye. A new file needs a second user or a new layer; a new dependency must delete more code than it adds.
- PRs target
main. Say what you ran and what it printed.
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.

