agentleFS
noahljungbergnoahljungberg/switchboard/AGENTS.md

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.

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
  1. Very specific:

    Read this file, then find the component in docs/design/index.md and read its doc.

    line 36
  2. Very specific:

    Run npm run check. CI runs the same command on every push and pull request.

    line 39
  3. Very specific:

    Update the design doc, docs/QUALITY.md or known-issues.md only if durable knowledge changed.

    line 40

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

NeedRead
What it is and how to run itREADME.md
The principles behind the design (P1–P8)docs/design-principles.md
The specdocs/plan.md
Code shape, layers, where each trust rule livesARCHITECTURE.md
Local patterns to copyCONVENTIONS.md
Component contracts (read before editing a file)docs/design/index.md
What to trust, what's thindocs/QUALITY.md, docs/plans/known-issues.md
Running it (Slack app, tokens, systemd)docs/runbook.md
The ops agent's system promptprompts/ops.md
Reporting a vulnerabilitySECURITY.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

  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. Run npm run check. CI runs the same command on every push and pull request.
  4. Update the design doc, docs/QUALITY.md or known-issues.md only 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

  1. 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.
  2. No secrets in the repo, ever: tokens, keys, real Slack ids, internal hostnames. Secrets come from the environment; examples use obviously fake values.
  3. Models are configured. The ops engine's model id comes from config, and the engines and check:arch refuse any other (P8). Set the model explicitly; don't add a second one for a gate or classifier.
  4. 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.
  5. PRs target main. Say what you ran and what it printed.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.