Metadata-Version: 2.4
Name: brigadestack
Version: 0.33.0.dev20261201
Summary: Run coding agents anywhere and keep one record of the work, with MCP servers, tools, skills, and memory in sync across your harnesses.
Author-email: Solomon Neas <me@solomonneas.dev>
License: MIT
Project-URL: Homepage, https://brigadestack.com
Project-URL: Documentation, https://brigade.tools/docs
Project-URL: Compare, https://brigade.tools/compare/sync-mcp-servers-across-coding-agents
Project-URL: Handoffs, https://brigade.tools/compare/memory-handoffs-across-coding-agents
Project-URL: CodeGraph, https://brigade.tools/compare/local-code-graph-for-ai-coding-agents
Project-URL: Evidence, https://brigade.tools/compare/local-evidence-ledger-for-agent-work
Project-URL: Skills, https://brigade.tools/compare/portable-skills-across-coding-agents
Project-URL: LLMs, https://brigade.tools/llms.txt
Project-URL: Repository, https://github.com/escoffier-labs/brigade
Project-URL: Cookbook, https://escoffierlabs.dev/cookbook/
Project-URL: CookbookSource, https://github.com/escoffier-labs/solos-cookbook
Project-URL: OpenClaw, https://github.com/solomonneas/openclaw
Project-URL: ContentGuard, https://github.com/escoffier-labs/content-guard
Project-URL: AgentPantry, https://github.com/escoffier-labs/agentpantry
Project-URL: EvidenceMemory, https://brigade.tools/evidence-memory
Project-URL: CodeIntelligence, https://brigade.tools/code-intelligence
Project-URL: Issues, https://github.com/escoffier-labs/brigade/issues
Keywords: agents,ai-agents,agent-memory,agent-handoffs,ai-memory,mcp,mcp-config,mcp-sync,model-context-protocol,openclaw,claude-code,codex,opencode,grok,hermes,memory,bootstrap,brigade,brigadestack,brigade-cli,operator,local-first,guardrails,agents-md,code-graph,evidence-ledger,mcp-server,agent-skills
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: dev
Requires-Dist: cryptography<52,>=50.0.2; extra == "dev"
Requires-Dist: pytest<9.3,>=9.2.0; extra == "dev"
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
Requires-Dist: ruff>=0.17.3; extra == "dev"
Requires-Dist: mypy>=2.4.1; extra == "dev"
Provides-Extra: connector
Requires-Dist: mcp<3,>=2.3.0; extra == "connector"
Requires-Dist: pyjwt[crypto]>=2.15.1; extra == "connector"
Provides-Extra: grokbot
Requires-Dist: mcp<3,>=2.3.0; extra == "grokbot"
Requires-Dist: pyjwt[crypto]>=2.15.1; extra == "grokbot"
Provides-Extra: research
Requires-Dist: playwright>=1.64.0; extra == "research"
Dynamic: license-file

<p align="center">
  <picture>
    <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/escoffier-labs/brigadestack/main/docs/assets/brigade-wordmark-dark.svg">
    <img src="https://raw.githubusercontent.com/escoffier-labs/brigadestack/main/docs/assets/brigade-wordmark.svg" alt="BrigadeStack by Escoffier Labs" width="640">
  </picture>
</p>

<h1 align="center">Run agents anywhere. Give them a shared memory.</h1>

<p align="center">
  <a href="https://brigadestack.com">Website</a> ·
  <a href="https://brigadestack.com/docs">Docs</a> ·
  <a href="#quick-start-with-a-shared-handoff">Quickstart</a> ·
  <a href="https://brigadestack.com/compare">Compare</a> ·
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/CHANGELOG.md">Changelog</a>
</p>

<p align="center">
  <a href="https://github.com/escoffier-labs/brigadestack/actions/workflows/ci.yml?query=event%3Amerge_group"><img src="https://github.com/escoffier-labs/brigadestack/actions/workflows/ci.yml/badge.svg?event=merge_group" alt="CI status of the merge queue"></a>
  <a href="https://pypi.org/project/brigadestack/"><img src="https://shieldcn.dev/pypi/v/brigadestack.svg?label=pypi&size=xs" alt="PyPI version of brigadestack"></a>
  <img src="https://shieldcn.dev/https/raw.githubusercontent.com/escoffier-labs/brigadestack/download-metrics/downloads.json.svg?size=xs" alt="Combined PyPI and npm downloads per month">
  <img src="https://shieldcn.dev/badge/python-3.11+-blue.svg?logo=python&logoColor=white&size=xs" alt="Python 3.11+">
  <img src="https://shieldcn.dev/badge/rust-code_graph-b7410e.svg?logo=rust&logoColor=white&size=xs" alt="Rust: code graph engine">
  <img src="https://shieldcn.dev/badge/go-evidence_log-00add8.svg?logo=go&logoColor=white&size=xs" alt="Go: evidence log engine">
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/LICENSE"><img src="https://shieldcn.dev/badge/license-MIT-4e7247.svg?size=xs" alt="MIT license"></a>
</p>

BrigadeStack helps coding 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.

![Where agents run and what they share through BrigadeStack. Claude Code, Codex, Cursor, OpenCode, OpenClaw, Hermes, ChatGPT dots, Claude Duet, and any MCP agent appear alongside the T3 Code and Orca orchestrators. Shared resources include memory, tasks and claims, check records, MCP servers, and skills.](docs/assets/readme-where-agents-run.png)

The resources available depend on the integration. See [More agent tools](https://brigadestack.com/docs/getting-started/connect-your-tools) and [Orchestrators and hosted agents](https://brigadestack.com/docs/getting-started/connect-your-tools#orchestrators-and-hosted-agents).

## 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. |

Install with pipx (Python 3.11 or newer) or npm (Node.js 22 or newer). The command is `brigadestack`. `brigadestack` on PyPI is the Python package. The `brigade-cli` PyPI package (the same code under the old name) and the `@escoffier-labs/brigade` npm compatibility package install the same CLI as `brigade`, so existing users keep their command and `pipx upgrade brigade-cli` keeps working.

```bash
pipx install brigadestack
npm install -g brigadestack
```

Install only one npm package globally. `brigadestack` and `@escoffier-labs/brigade` both link `brigade`, so npm stops with `EEXIST` on the second one. If `@escoffier-labs/brigade` is installed and you want the new name, run `npm uninstall --global @escoffier-labs/brigade` first, then `npm install --global brigadestack`. Keeping `@escoffier-labs/brigade` and running `npm update --global @escoffier-labs/brigade` also works.

## Quick start with a shared handoff

```mermaid
flowchart TD
  draft["Claude Code<br/>drafts handoff"] --> review["Memory owner<br/>reviews and files card"]
  review --> search["Codex finds<br/>the card"]

  accTitle: Shared handoff walkthrough
  accDescr: Claude Code drafts a handoff. The memory owner reviews and files the Markdown card. Codex searches memory and reads the filed card. Use the same checkout, or commit and share the card with another checkout.
```

See the [detailed payments retry handoff](https://raw.githubusercontent.com/escoffier-labs/brigadestack/main/docs/assets/readme-handoff-flow.svg).

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 <handoff-id>` 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.

## 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 --> proposal["Propose evidence or<br/>exact duplicate merge"]
  proposal -->|"Approved"| applied["Apply card update"]
  proposal -->|"Held"| unchanged["Card unchanged"]
  applied --> search["Find updated card<br/>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 packaged hub and the Dot listener are 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.

<!-- MCP Registry ownership markers; keep each on its own line. -->
<!-- mcp-name: io.github.escoffier-labs/brigade-memory -->
<!-- mcp-name: io.github.escoffier-labs/brigade-skills -->

<p align="center">
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/docs/command-inventory.md">Commands</a> ·
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/docs/execution-model.md">Execution model</a> ·
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/CONTRIBUTING.md">Contributing</a> ·
  <a href="https://github.com/escoffier-labs/brigadestack/issues">Issues</a> ·
  <a href="https://github.com/escoffier-labs/brigadestack/blob/main/LICENSE">MIT license</a>
</p>

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.

<details>
<summary>About the downloads badge</summary>

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.

</details>
