BrigadeStack shows every agent which sessions are live and what files they are changing, and a task one agent claims can't be claimed by another. It also helps agents pick up each other's work and keep that memory useful over time. Review a handoff, file what should stick as a Markdown card, and the next agent can find it by searching the repository's memory.
The resources available depend on the integration. See [More agent tools](https://brigadestack.com/docs/getting-started/connect-your-tools), [Orchestrators and hosted agents](https://brigadestack.com/docs/getting-started/connect-your-tools#orchestrators-and-hosted-agents), and [Rex terminal](https://github.com/escoffier-labs/brigadestack/blob/main/docs/brigade-in-rex.md).
## What problem does BrigadeStack solve?
| Challenge | How BrigadeStack helps |
| --- | --- |
| A new session starts without the last decision. | The next agent can search the project’s memory cards by topic. |
| You switch agents halfway through a task. | A handoff tells the next agent where work stopped and what to pick up. |
| Saved lessons go stale or pile up. | Reflection checks memory cards for duplicates, newer evidence, and conflicting claims. |
| Several agents or threads are running and nobody is sure which one has which task. | Agents claim a task before starting it, a second claim is refused, and `brigade fleet sessions --json` lists live sessions with the files each is changing. |
Live sessions from Claude Code, Codex or T3 Code, and Cursor need the Fleet Hub, and `brigade fleet sessions` lists them (see [session presence](https://github.com/escoffier-labs/brigadestack/blob/main/docs/fleet-sync.md#interactive-session-presence)). `brigade work brief` warns when another live session is changing the same files, and the warning does not block. `brigade work claim` claims a task in the workspace's task ledger, and a second claim on that task is refused. Across machines, each `brigade run` claims its checkout on the Fleet Hub when one is configured, and `brigade fleet claims` lists those claims (see [claims](https://github.com/escoffier-labs/brigadestack/blob/main/docs/fleet-sync.md#phase-4-claims)).
## How it works
1. Claude Code drafts a decision about the payments client. Retry transient failures up to three times and skip retries on 4xx responses.
2. A reviewer files approved content in `memory/cards/` as `payments-retry-policy.md`. Commit the card to share it with another checkout.
3. Codex searches for `"payments retry"` and reads the filed card before working on the client.
## Install
| If you use | Requires |
| --- | --- |
| pipx | Python 3.11+ |
| npm | Node.js 22+ |
```bash
pipx install brigadestack
# or
npm install -g brigadestack
```
After installing, run `brigadestack`.
Package names, upgrades, and npm migration
The primary package is `brigadestack` on PyPI and npm. The `brigade-cli` PyPI package and the `@escoffier-labs/brigade` npm package install the same CLI as `brigade`. To upgrade either compatibility package in place, use `pipx upgrade brigade-cli` or `npm update --global @escoffier-labs/brigade`.
Install only one npm package globally. Both packages link `brigade`, so installing the second returns `EEXIST`. To move from `@escoffier-labs/brigade` to `brigadestack`, run these commands in order.
```bash
npm uninstall --global @escoffier-labs/brigade
npm install --global brigadestack
```
## Quick start with a shared handoff
Start in a scratch Git repository and set up the agent tools you use. Add `--dry-run` to preview the setup. This walkthrough skips installing the care schedule.
```bash
brigadestack operator quickstart --target . --harnesses claude,codex --no-care
```
**Claude Code leaves a decision for the next agent.** After working on the payments client, it drafts a handoff with the retry policy it learned.
```bash
draft_card="$(mktemp)"
cat > "$draft_card" <<'CARD'
---
title: Payments retry policy
category: foundation
tags: [payments, retries]
---
Retry transient failures up to three times. Skip retries on 4xx responses.
CARD
brigadestack handoff draft --type decision --inbox claude \
--title "Payments retry policy" \
--summary "Retry transient failures up to three times. Skip retries on 4xx responses." \
--action create-card --target-card payments-retry-policy.md \
--content-file "$draft_card"
```
**The memory owner reviews and files the draft.** Run `brigadestack handoff list` and `brigadestack handoff show ` to inspect it. If the example card is approved as written, file it from the same shell. See [handoff review and filing](docs/handoff-promotion.md#draft-queue-review) for other ways to file drafts.
```bash
mkdir -p memory/cards
cp "$draft_card" memory/cards/payments-retry-policy.md
```
**Codex picks up the decision in its next session.** Ask it to look up the payment retry policy. It can search the same checkout or any checkout that has the committed card.
```bash
brigadestack memory search "payments retry"
```
The search returns `memory/cards/payments-retry-policy.md`. Codex can read the card before changing the client.
## Contributing
Start with a reserved issue and follow the [contributor guide](CONTRIBUTING.md#your-first-pr). These issues are for human contributors, including people working with coding agents. Comment on an issue to claim it or ask a question.
- [Good first issues](https://github.com/escoffier-labs/brigadestack/issues?q=is%3Aissue%20is%3Aopen%20label%3Areserved-for-humans%20label%3A%22good%20first%20issue%22)
- [Help wanted](https://github.com/escoffier-labs/brigadestack/issues?q=is%3Aissue%20is%3Aopen%20label%3Areserved-for-humans%20label%3A%22help%20wanted%22)
## Keep memory useful over time
Memory care scans cards for issues that need review. Reflection compares cards with newer evidence, finds exact duplicates, proposes adding supporting evidence, and flags conflicting claims for review. Preview the candidates with `brigadestack memory reflect run --dry-run --target .`.
When you install the daily reflection schedule, it runs those checks without a session prompting it. Local candidates stay as proposals. With a configured Hub and automatic application enabled, the Hub can add verified evidence to a card or merge exact duplicates after its policy checks pass. New workspaces start with that workspace policy enabled. Existing workspaces keep their policy. Use `brigadestack memory reflect auto-apply off --target .` to stop automatic application, or `on` to opt in. See [Memory Care](docs/memory-care.md) for scheduling, review, and rollback.
```mermaid
flowchart TD
inputs["Cards and cited evidence"] --> reflect["Run reflection"]
reflect --> conflict["Conflict"]
conflict --> manual["Manual review"]
reflect --> proposal["Propose evidence or exact duplicate merge"]
proposal -->|"Approved"| applied["Apply card update"]
proposal -->|"Held"| unchanged["Card unchanged"]
applied --> search["Find updated card in memory search"]
accTitle: Memory reflection and review
accDescr: Reflection compares cited evidence with existing cards and finds conflicts, evidence additions, or exact duplicates. Conflicts go to manual review. Evidence additions and exact duplicates stay local proposals for owner review, or follow configured Hub auto-apply policy gates. Held proposals leave cards unchanged. Approved changes can be found by search. Reflection does not promote handoffs or rewrite claims.
```
The memory owner can review a proposal. When Hub auto-apply is enabled, eligible evidence additions and exact duplicate merges can apply after policy checks pass. Conflicts go to review.
## Tools that share memory
| Tool | What you get |
| --- | --- |
| Claude Code, Codex, Cursor, OpenCode | Workspace instructions, handoff inboxes, and MCP and skill config. |
| [ChatGPT Dot](docs/grokbot-dot.md) | Memory, skills, and Hub messages through a connector you host. |
| [Claude Duet](docs/duet-connector.md) | Memory, skills, Hub messages, and read-only fleet views through a connector you host. |
Share MCP server config through `.brigade/mcp.json` and preview changes with `brigadestack mcp sync`. With `--write`, sync preserves native auth for Codex and OpenCode. It preserves Claude Code's auth helper and refuses to prune an entry that uses it or point that entry at a different server. See [MCP sync](docs/mcp-sync.md) for tool-specific setup and the [skill registry](docs/skill-registry.md) for ways to share skills.
## Worker dispatch
| Tool | What you get |
| --- | --- |
| [T3 Code](docs/t3-governed-delegation.md) | Session presence and local child tasks launched by a T3 parent session. Brigade tracks task claims, status, results, and acknowledgements. |
| [Orca](docs/orca-governed-delegation.md) | A coordinator launches local Orca workers. Brigade tracks claims, worker receipts, and outcomes. |
The [Dot connector](docs/grokbot-dot.md) can also dispatch T3 fleet tasks.
## Across machines
Agents on several machines share memory through a hub service you run on a network you control. A card pushed from a laptop turns up in a search on a desktop. Task ownership, messages and model policy live in the same place. The [fleet docs](https://github.com/escoffier-labs/brigadestack/blob/main/docs/fleet-sync.md) cover setup.
## Limits
A handoff is a draft until someone files it as a card. The container hub image is a Linux-only preview. The native Python hub also runs on Windows under Task Scheduler, as the [Windows runbook](https://github.com/escoffier-labs/brigadestack/blob/main/docs/runbooks/fleet-hub-windows.md) describes. The Dot listener is Linux only. Dot and Duet are not woken instantly: each checks for work when a session or scheduled run starts.
## Optional verification
See [verification modes and receipts](docs/verify-gate.md) for recording checks, choosing when to require them, and using the code graph.
## MCP servers
- `brigadestack memory serve-mcp --stdio` serves memory cards, the work brief and `write_handoff`, which drafts a handoff and never edits a card.
- `brigadestack skills serve-mcp --stdio` serves the reviewed skill registry, read-only: search, read and lint skills.
## Contributors
Questions and ideas: [Discussions](https://github.com/escoffier-labs/brigadestack/discussions).
BrigadeStack is built by [Escoffier Labs](https://escoffierlabs.dev). Principal engineer: [Solomon Neas](https://solomonneas.dev).
The Python CLI may send a passive version request. [Telemetry](https://github.com/escoffier-labs/brigadestack/blob/main/docs/telemetry.md) lists its fields and opt-outs.
About the downloads badge
The downloads badge sums `brigadestack` and `brigade-cli` on PyPI (excluding mirrors) and `brigadestack` and `@escoffier-labs/brigade` on npm over the same 30 completed UTC days. Downloads include automation and do not count unique people. The [metric JSON](https://raw.githubusercontent.com/escoffier-labs/brigadestack/download-metrics/downloads.json) records each source, the period, and the last successful refresh. npm platform companions are excluded. Daily refreshes retain the previous metric if a source fails validation or its latest day is more than three UTC days old.