One local source for the MCP servers, tools, and memory your AI coding agents share, synced into each tool's native config with a review gate and a receipt for every change. No daemon, no lock-in.
Brigade
Your agents run loops. Brigade keeps the receipts.
Local control plane for multi-agent coding: share MCP, tools, and memory; remember across sessions; prove runs with file receipts; improve only from real exit codes. Optional stations (GraphTrail, MiseLedger, Agent Pantry) plug into that loop. Diff before every write. No daemon, no lock-in.
Website · Docs · Install · Cookbook
Install
pipx install brigade-cli
pipx ensurepath # then open a new shell so brigade is on PATH
brigade operator quickstart --target ./my-repo --harnesses codex
brigade operator doctor --target ./my-repo --profile local-operator
That wires memory, handoffs, a local MCP catalog, the work loop, and guardrails into one repo for one harness, then prints ready. Default footprint is small: AGENTS.md, SAFETY_RULES.md, a handoff template, and .brigade/ state. Add --dry-run to preview; --full for the whole kit. Nothing leaves your machine.
operator doctor: ~/my-repo
profile: local-operator
ready: yes
blocking_issues: 0
next: brigade daily plan --target .
brigade operator quickstart then operator doctor. Install first, deepen later.
Workspace / multi-harness (OpenClaw, Hermes, more agents):
brigade operator quickstart --target ~/agent-workspace \
--depth workspace --harnesses openclaw,hermes --owner openclaw
New here? QUICKSTART.md and docs/first-10-minutes.md. Homegrown setup already? brigade operator adopt plan. Point an agent at this repo; AGENTS.md tells it what to do and where to stop. Content guard is built in (brigade scrub); set CONTENTGUARD_DIR only for an external checkout.
What it does
| | Job | What you get | |---|---|---| | Share | One catalog of MCP servers, tools, and skills | Merged into each harness's native config after a dry-run diff | | Remember | Handoffs between sessions and agents | Linted notes, shared memory, slim bootstrap instead of silo bloat | | Prove | Verify and run through Brigade | File receipts: command, real exit code, what changed | | Improve | Promote or roll back what worked | Skills and cards only rank up on those exit codes, never on model self-score |
verify run --capture → receipt + skill score → rank / reconcile promote only on real exits. Not model self-score.
Self-improving means the fleet gets better from measured work, not from the model grading itself. Brigade is a CLI, not an MCP server and not a hosted memory product. Plain files when you run a command.
Stations: how the fleet plugs in
Hub marks (circular + hairline). Each links to its brigade.tools/… page.
Brigade is the hub. Optional tools stay in their own repos; brigade add <station> installs them, and status / doctor health-check what is present. Core works with zero sidecars.
| | Station | Install | Plugs into | Role | |---|---|---|---|---| | | GraphTrail |
brigade add search | Prove | Code graph; brigade run prepends a context pack when a graph exists | | | MiseLedger |
brigade add evidence | Prove / Remember | Evidence ledger; export briefs into the next work context | | | Agent Pantry |
brigade add pantry | Share | Encrypted browser-session / secret sync across machines | | | Content Guard | built in (
guard / scrub) | Share / Remember | Secrets and PII scan before publish (docs) | | | Skills / Skillet | built-in on init | Improve | Portable skills; reconcile promotes or rolls them back | |
| Token Glace |
brigade add tokens | Prove | Compact noisy tool output before it burns context |
brigade add pantry && brigade add evidence && brigade add search
brigade add tokens
brigade status --target .
Station pages: GraphTrail · MiseLedger · Agent Pantry · Content Guard · Skillet · Token Glace. Full matrix: Sidecars.
One MCP catalog, synced into every tool
Every agent tool reads its MCP servers from a different file in a different shape. The same servers wired across Claude Code, Cursor, Codex, VS Code, OpenCode, and Antigravity means hand-editing six configs and keeping them in sync forever. Brigade keeps one canonical catalog and merges it into each tool's native config for you.
brigade mcp init # scaffold .brigade/mcp.json
brigade mcp add --name github --command npx \
--args "-y @modelcontextprotocol/server-github" \
--env GITHUBAUTHENV=ref:BRIGADEGITHUBAUTH_ENV
brigade mcp sync # dry-run: show the diff for every tool
brigade mcp sync --write # merge into each tool's config
Run brigade mcp sync and you get the per-tool plan, server by server, before a single file changes. Two servers in the catalog, projected across the harnesses wired in this repo:
brigade mcp sync (dry-run): ~/my-repo
claude github missing -> create
claude sentry missing -> create
cursor github missing -> create
cursor sentry missing -> create
codex github missing -> create
codex sentry missing -> create
vscode github missing -> create
vscode sentry missing -> create
opencode github missing -> create
opencode sentry missing -> create
One catalog (.brigade/mcp.json), six native targets. If you are evaluating options first, read the focused comparison page: sync MCP servers across coding agents.
| Tool | File it writes | |---|---| | Claude Code | .mcp.json | | Cursor | .cursor/mcp.json | | Codex CLI | .codex/config.toml (merged surgically, other tables preserved) | | Grok CLI | .grok/config.toml (same TOML shape as Codex; ~/.grok/config.toml via --user-scope) | | VS Code | .vscode/mcp.json (secrets become inputs[]) | | OpenCode | opencode.json | | Antigravity | ~/.gemini/config/mcp_config.json (user-scoped, --user-scope) |
It is dry-run by default and never runs from doctor or brief. It merges by server key, so servers you added by hand are never touched, and ones you edited are left alone unless you pass --force. Secrets are written as ${VAR} references (or VS Code ${input:VAR}), never inlined. Ownership is tracked in a gitignored sidecar, so re-syncing on a fresh clone does not spuriously conflict. Full behavior in docs/mcp-sync.md.
Tools and skills get the same treatment: brigade tools sync projects one reviewed catalog into each harness's native format.
brigade mcprequires brigade 0.13.0 or newer (pipx upgrade brigade-cli).
Shared memory, with a guard in front
Writer harnesses leave handoff notes as they work. Brigade lints, guards, and classifies each one, then files the safe, targeted notes into durable memory on its own. A memory owner (OpenClaw, Hermes, or just you) only steps in for the ambiguous few. Every consequential action is logged to a plain file you can grep, diff, and prune.
- agents write handoff notes into their own local inboxes
- Brigade lints and classifies each one before it can become memory
- safe, targeted notes file themselves into durable memory automatically
- only the ambiguous or risky few wait for your review
- future sessions start with better context, and the paper trail shows what happened
flowchart LR
WRITERS["writer harnesses<br/>Codex · Claude Code · OpenCode · ..."]
BRIGADE["Brigade<br/>lint · guard · classify · receipts"]
OWNER["memory owner<br/>OpenClaw / Hermes / you"]
MEM["durable memory<br/>MEMORY.md index · memory cards"]
REVIEW["review inbox<br/>ambiguous · risky"]
WRITERS -- handoff notes --> BRIGADE --> OWNER OWNER -- safe targeted, auto-filed --> MEM OWNER -. ambiguous or risky .-> REVIEW MEM -. context .-> WRITERS
classDef brigade fill:#2563eb,stroke:#1d4ed8,color:#fff; classDef memory fill:#ecfdf5,stroke:#059669,color:#064e3b; classDef gate fill:#fff7ed,stroke:#ea580c,color:#7c2d12; class BRIGADE brigade; class OWNER,MEM memory; class REVIEW gate;
Memory has two layers: knowledge cards under memory/cards/ hold the detail, and MEMORY.md stays a slim one-line-per-card index that loads every session. brigade memory care scan flags stale, contradictory, or undersourced cards for review instead of letting them rot. Brigade never edits canonical memory itself; the owner does the writing. It all runs on the machine you control: laptop, workstation, or VPS.
Verified learning
Filing notes is the first loop. The second loop earns trust. Brigade can promote a learned skill on its own, but only when a real signal proves it helped, and it rolls one back the moment a signal says it broke. The model never grades its own work.
Your daily loop. brigade init wires a brigade-work skill into each harness so your agent runs this without being told, but it is three commands by hand:
brigade work brief --target . # 1. what's pending (+ whether the loop is being fed)
brigade work verify run --target . --command "pytest -q" --capture <skill-or-card> # 2. verify + capture in one step
3. write a Memory Handoff for anything durable, then let the ratchet run on its own
Skip this and Brigade is installed-but-dormant: the brief is empty and outcome rank says "ranking: none". brigade work brief reports the loop's own health, so you can see at a glance whether verify runs are piling up while the ledger stays empty.
brigade outcome capturerecords the result of a verify run (a real exit code, not an opinion) against the skill that produced it.brigade outcome scoreranks each skill by a Wilson lower bound, so something that passed twice never outranks something vetted across twenty runs.brigade outcome reconcileis the gate. Dry-run by default; with--applyit installs a skill that earned it across your harnesses, or rolls a regressed one back to its last good version.brigade outcome explainprints the full signal trail behind any decision: which run produced each result, the threshold it crossed, and the reversible action taken.
memory/outcome/, tracked in git and readable without Brigade. Schedule brigade outcome reconcile in your own cron to run it hands-off; Brigade still installs no daemon.
Sidecars
Brigade is the hub. Most stations wire an optional standalone tool, installed with brigade add <station> and health-checked by brigade status and brigade doctor. Each external tool is its own repo, independently installable, with no library coupling back into Brigade.
Use brigade profiles list to see built-in station bundles and brigade stations list to see which stations are selected by the default repo profile before installing any sidecar tools. brigade stations list --json also shows each managed tool's machine surfaces: doctor JSON, markdown briefs, summary JSON, and verify commands where the tool supports them.
Fresh repo installs use the repo profile: core, skills, memory, guard, security, tokens, evidence, and search are selected up front. brigade init wires the built-in skills immediately, including brigade-work and ultra-work-scout, so new Codex users can run the Brigade work loop and broad Scout scoping from the start. External sidecars stay in their own repos and install only when you run brigade add <station>.
External station repos can publish the same contract in a local station.json. Point brigade add at that repo to inspect its install command and surfaces without editing Brigade source:
brigade add ../agentpantry # inspect station.json
brigade add ../agentpantry --install # run the manifest install command
| brigade add | Tool | What it does | |---|---|---| | skills | built-in Scout skills; optional Skillet roster | wires brigade-work and ultra-work-scout on init; use skills add escoffier-labs/skillet after installing the sidecar CLI for the full roster | | guard | embedded content guard, with an optional external checkout override | scans handoffs and content for secrets and PII before anything leaves the machine | | tokens | token-glace | tracks token spend across your harnesses and compacts noisy output | | memory | bootstrap-doctor (optional); memory maintenance is built in | brigade memory status|lint|compact plus memory-care for card freshness | | pantry | agentpantry (Go sidecar) | plans and health-checks sealed browser-session sync; never starts source/sink | | search | code-search, graphtrail | local semantic search plus a code-graph CLI for callers, impact, and structural diffs | | evidence | miseledger (Go sidecar) | plans crawl/export and health-checks the local evidence ledger; does not crawl for you |
Harness support
Each writer gets its own local inbox; one canonical owner ingests. Brigade keeps the note format consistent so different tools can contribute without inventing their own styles.
| Writer | Harness id | Inbox | |---|---|---| | Codex CLI | codex | .codex/memory-handoffs/ | | Claude Code | claude | .claude/memory-handoffs/ | | OpenCode | opencode | .opencode/memory-handoffs/ | | Antigravity | antigravity | .antigravity/memory-handoffs/ | | Pi | pi | .pi/memory-handoffs/ | | Cursor | cursor | .cursor/memory-handoffs/ | | Aider | aider | .aider/memory-handoffs/ | | Goose | goose | .goose/memory-handoffs/ | | Continue | continue | .continue/memory-handoffs/ | | GitHub Copilot CLI | copilot | .copilot/memory-handoffs/ | | Qwen Code | qwen | .qwen/memory-handoffs/ | | Kimi Code | kimi | .kimi/memory-handoffs/ | | AdaL | adal | .adal/memory-handoffs/ | | OpenHands | openhands | .openhands/memory-handoffs/ | | Grok CLI | grok | .grok/memory-handoffs/ | | Amp | amp | .amp/memory-handoffs/ | | Crush | crush | .crush/memory-handoffs/ | | Hermes | hermes | .hermes/memory-handoffs/ | | OpenClaw | openclaw | usually the memory owner, not a writer |
All of them get handoff templates and ingest source coverage. Most also get projected tools and skills in their native format; the per-harness matrix is in the technical guide. Hermes is validated against a real install: handoffs land in .hermes/memory-handoffs/, and reviewed skills install into your Hermes store (~/.hermes/skills).
More
The same review-and-receipt pattern covers the rest of an operator's day, and you can ignore all of it until you need it. Most of these live behind brigade extras on, one command that adds the 18 operator-suite groups (release trains, fleet health, mission control, research, chat archives) to the CLI; until then brigade --help stays at the 24 core groups.
- Cross-model runs:
brigade run "<task>"plans, dispatches, and synthesizes one bounded task across the agent CLIs in your roster, so an expensive model can think while cheaper ones do the grunt work. It can attach GraphTrail and upstream-drift context under a shared brief budget, then records which briefs attached inrun.json.--worktreeruns everything in a detached git checkout that comes back as a reviewablechanges.patch. - Daily loop:
brigade work briefshows pending work, imports, and warnings;brigade daily statuskeeps it bounded and cheap. - Friction logs:
brigade friction scanmines recent notes, handoffs, and session artifacts for reviewable workflow friction. - Security and scrub:
brigade security scanis a local read-only scanner for agent workspaces.brigade scrubgates content before it leaves the machine, andbrigade guardexposes the embedded content guard CLI. - Research:
brigade research runturns a question into a cited local report and a reviewable memory handoff. - Fleet and release: health evidence across your local repos and release-readiness receipts, with no publish step.
Why not something else?
- mem0, Letta, agentmemory, and friends are memory layers for apps you are building, usually behind an API or a server. Brigade is for the agent CLIs you already run, and it is file-first: your memory is markdown in your repo, reviewable in git, readable without Brigade.
- add-mcp, chezmoi, and config-sync scripts move MCP or dotfiles around, but they sync one thing with no review gate and no receipt, and they do not touch memory or skills. Brigade keeps one canonical source for MCP servers, tools, skills, and memory together, shows the per-tool diff before any write, and leaves a receipt you can roll back.
- Native harness memory (each tool's own auto-memory) is a per-tool silo. It does not cross harnesses, and it writes without review. Brigade gives every tool one shared format and one canonical owner, with a review gate in between.
- Already running Hermes, or any self-improving agent? Keep it. Brigade is not a replacement, it is the verification layer on top. A built-in learning loop grades its own work and keeps what it learns inside one tool. Brigade promotes a skill only when a real signal confirms it, keeps every learned skill as portable markdown in your git, and runs one loop across your whole fleet.
- A plain CLAUDE.md / AGENTS.md works great until it bloats past the context budget and goes stale. Brigade keeps bootstrap files slim, moves detail into indexed cards, and flags staleness instead of trusting last month's facts forever.
- A daemon or hosted service would be simpler to demo and worse to trust. Brigade writes local files when you run a command, and that is all it does.
| | Across harnesses | MCP, tools, and memory in one source | Review gate + receipts | Local files, no daemon | |---|:---:|:---:|:---:|:---:| | Brigade | yes | yes | yes | yes | | mem0 / Letta / agentmemory | per-SDK | memory only | no | usually hosted or a server | | add-mcp / chezmoi / config-sync | partial | MCP or dotfiles only | no | yes | | Native harness memory | no | memory only | no | yes |
What Brigade is not
Brigade is not a hosted memory service, a daemon, or an automatic release bot.
It does not:
- run in the background or install schedulers (one scoped exception:
brigade tools runtime startlaunches a local runtime process, only when you start it, until you stop it) - push to GitHub or publish packages
- send notifications by default
- save every note automatically
- turn memory ingest into a silent background process
- skip review for ambiguous, risky, or failed notes
And it is not the other projects that share the name. This Brigade is the AI-agent operator CLI, installed with pipx install brigade-cli from escoffier-labs/brigade. It is not the CNCF/Microsoft Brigade for event-driven scripting on Kubernetes (archived in 2022), the Spinabot Brigade agent crew, or the 2017 brigade Python package that became Nornir. Same word, different tool.
Why I built this
I run an always-on OpenClaw agent next to daily Codex and Claude Code sessions. Every one of those tools wakes up empty, and whatever a session learned scattered across tool-specific folders and died there. Two incidents shaped the design: a "dreaming" job that promoted raw session fragments straight into memory bloated MEMORY.md past the bootstrap budget, so every session started truncated and nobody noticed for weeks; and 195 handoff notes that sat unread across 35 repos because an ingester had a hardcoded allowlist and nothing warned about the gap. Silence is the failure mode. Every part of Brigade that lints, warns, or writes a receipt exists because something once failed in silence. The full production stack, now 482 cards across daily multi-agent work, is documented in the Cookbook.
Docs
- First 10 minutes: shortest path from install to healthy setup.
- Overview: the full tour of every station and diagram.
- Technical guide: the detailed command walkthrough.
- MCP sync: the canonical catalog, supported tools, and merge rules.
- Security and Content Guard: scanner policies, handoff guards, import flow.
- Handoff promotion: how notes move toward memory.
- Repo fleet and Tool catalog.
- Command inventory: every public CLI command.
- Maintainers, Governance, Security, and Contributing.
- Roadmap and roadmap archive.
License
MIT. See LICENSE.
Project identity: GitHub escoffier-labs/brigade, website brigade.tools, PyPI brigade-cli, command brigade. The name comes from the kitchen: a brigade de cuisine runs the line, and mise en place means the station is prepped before service. Set up the rules, memory, tools, and receipts before the session gets expensive.
It is early-stage and moving fast. If you hit a broken workflow, a confusing command, or a setup issue, open an issue and I will get it fixed.