brainclaw 0.29.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -74
- package/README.md +199 -176
- package/dist/brainclaw-vscode.vsix +0 -0
- package/dist/cli.js +710 -25
- package/dist/commands/accept.js +3 -0
- package/dist/commands/add-step.js +11 -26
- package/dist/commands/agent-board.js +70 -3
- package/dist/commands/audit.js +19 -0
- package/dist/commands/check-policy.js +54 -0
- package/dist/commands/check-security-mcp.js +145 -0
- package/dist/commands/check-security.js +106 -0
- package/dist/commands/claim-resource.js +1 -0
- package/dist/commands/codev.js +672 -0
- package/dist/commands/compact.js +74 -0
- package/dist/commands/complete-step.js +16 -26
- package/dist/commands/constraint.js +8 -20
- package/dist/commands/decision.js +9 -20
- package/dist/commands/delete-plan.js +10 -12
- package/dist/commands/delete-step.js +16 -0
- package/dist/commands/dispatch.js +163 -0
- package/dist/commands/doctor.js +1122 -49
- package/dist/commands/enable-agent.js +1 -0
- package/dist/commands/export.js +280 -22
- package/dist/commands/handoff.js +33 -0
- package/dist/commands/harvest.js +189 -0
- package/dist/commands/hooks.js +82 -25
- package/dist/commands/inbox.js +169 -0
- package/dist/commands/init.js +38 -31
- package/dist/commands/install-hooks.js +71 -44
- package/dist/commands/link.js +89 -0
- package/dist/commands/list-claims.js +48 -3
- package/dist/commands/list-plans.js +129 -25
- package/dist/commands/loops-handlers.js +409 -0
- package/dist/commands/mcp-read-handlers.js +1628 -0
- package/dist/commands/mcp-schemas.generated.js +269 -0
- package/dist/commands/mcp.js +4224 -1501
- package/dist/commands/plan-resource.js +64 -0
- package/dist/commands/plan.js +12 -26
- package/dist/commands/prune.js +37 -2
- package/dist/commands/reflect.js +20 -7
- package/dist/commands/release-claim.js +11 -6
- package/dist/commands/release-notes.js +170 -0
- package/dist/commands/repair.js +210 -0
- package/dist/commands/run-profile.js +57 -0
- package/dist/commands/sequence.js +113 -0
- package/dist/commands/session-end.js +423 -14
- package/dist/commands/session-start.js +214 -41
- package/dist/commands/setup-security.js +103 -0
- package/dist/commands/setup.js +42 -4
- package/dist/commands/stale.js +109 -0
- package/dist/commands/switch.js +100 -2
- package/dist/commands/trap.js +14 -31
- package/dist/commands/update-handoff.js +63 -4
- package/dist/commands/update-plan.js +21 -28
- package/dist/commands/update-step.js +37 -0
- package/dist/commands/upgrade.js +313 -6
- package/dist/commands/usage.js +102 -0
- package/dist/commands/version.js +20 -0
- package/dist/commands/who.js +33 -5
- package/dist/commands/worktree.js +105 -0
- package/dist/core/actions.js +315 -0
- package/dist/core/agent-capability.js +610 -17
- package/dist/core/agent-context.js +7 -1
- package/dist/core/agent-files.js +1169 -85
- package/dist/core/agent-integrations.js +160 -5
- package/dist/core/agent-inventory.js +2 -0
- package/dist/core/agent-profiles.js +93 -0
- package/dist/core/agent-registry.js +162 -30
- package/dist/core/agentrun-reconciler.js +345 -0
- package/dist/core/agentruns.js +424 -0
- package/dist/core/ai-agent-detection.js +31 -10
- package/dist/core/archival.js +77 -0
- package/dist/core/assignment-sweeper.js +82 -0
- package/dist/core/assignments.js +367 -0
- package/dist/core/audit.js +30 -0
- package/dist/core/brainclaw-version.js +94 -2
- package/dist/core/candidates.js +93 -2
- package/dist/core/claims.js +419 -0
- package/dist/core/codev-metrics.js +77 -0
- package/dist/core/codev-personas.js +31 -0
- package/dist/core/codev-plan-gen.js +35 -0
- package/dist/core/codev-prompts.js +74 -0
- package/dist/core/codev-responses.js +62 -0
- package/dist/core/codev-rounds.js +218 -0
- package/dist/core/config.js +4 -0
- package/dist/core/context.js +381 -34
- package/dist/core/coordination.js +201 -6
- package/dist/core/cross-project.js +230 -16
- package/dist/core/default-profiles/doctor.yaml +11 -0
- package/dist/core/default-profiles/janitor.yaml +11 -0
- package/dist/core/default-profiles/onboarder.yaml +11 -0
- package/dist/core/default-profiles/reviewer.yaml +13 -0
- package/dist/core/dispatcher.js +1189 -0
- package/dist/core/duplicates.js +2 -2
- package/dist/core/entity-operations.js +450 -0
- package/dist/core/entity-registry.js +344 -0
- package/dist/core/events.js +106 -2
- package/dist/core/execution-adapters.js +154 -0
- package/dist/core/execution-context.js +63 -0
- package/dist/core/execution-profile.js +270 -0
- package/dist/core/execution.js +255 -0
- package/dist/core/facade-schema.js +81 -0
- package/dist/core/federation-cloud.js +99 -0
- package/dist/core/federation-message.js +52 -0
- package/dist/core/federation-transport.js +65 -0
- package/dist/core/gc-semantic.js +482 -0
- package/dist/core/governance.js +247 -0
- package/dist/core/guards.js +19 -0
- package/dist/core/ideation.js +72 -0
- package/dist/core/identity.js +110 -25
- package/dist/core/ids.js +6 -0
- package/dist/core/input-validation.js +2 -2
- package/dist/core/instruction-templates.js +344 -136
- package/dist/core/io.js +90 -11
- package/dist/core/lock.js +6 -2
- package/dist/core/loops/brief-assembly.js +213 -0
- package/dist/core/loops/facade-schema.js +148 -0
- package/dist/core/loops/index.js +7 -0
- package/dist/core/loops/iteration-engine.js +139 -0
- package/dist/core/loops/lock.js +385 -0
- package/dist/core/loops/store.js +201 -0
- package/dist/core/loops/types.js +403 -0
- package/dist/core/loops/verbs.js +534 -0
- package/dist/core/markdown.js +15 -3
- package/dist/core/memory-compactor.js +432 -0
- package/dist/core/memory-git.js +152 -8
- package/dist/core/messaging.js +278 -0
- package/dist/core/migration.js +32 -1
- package/dist/core/mutation-pipeline.js +4 -2
- package/dist/core/operations/memory-mutation.js +129 -0
- package/dist/core/operations/memory-write.js +78 -0
- package/dist/core/operations/plan.js +190 -0
- package/dist/core/policy.js +169 -0
- package/dist/core/reputation.js +9 -3
- package/dist/core/schema.js +491 -6
- package/dist/core/search.js +21 -2
- package/dist/core/security-cache.js +71 -0
- package/dist/core/security-guard.js +152 -0
- package/dist/core/security-scoring.js +86 -0
- package/dist/core/sequence.js +130 -0
- package/dist/core/socket-client.js +113 -0
- package/dist/core/staleness.js +246 -0
- package/dist/core/state.js +98 -22
- package/dist/core/store-resolution.js +43 -11
- package/dist/core/toml-writer.js +76 -0
- package/dist/core/upgrades/backup.js +232 -0
- package/dist/core/upgrades/health-check.js +169 -0
- package/dist/core/upgrades/patches/candidate-archive.js +145 -0
- package/dist/core/upgrades/patches/handoff-review-strip.js +128 -0
- package/dist/core/upgrades/patches/provenance-rollout.js +136 -0
- package/dist/core/upgrades/schema-version.js +97 -0
- package/dist/core/worktree.js +606 -0
- package/dist/facts.js +114 -0
- package/dist/facts.json +111 -0
- package/docs/architecture/project-refs.md +5 -1
- package/docs/cli.md +690 -43
- package/docs/concepts/ideation-loop.md +317 -0
- package/docs/concepts/loop-engine.md +456 -0
- package/docs/concepts/mcp-governance.md +268 -0
- package/docs/concepts/memory-staleness.md +122 -0
- package/docs/concepts/multi-agent-workflows.md +166 -0
- package/docs/concepts/plans-and-claims.md +31 -6
- package/docs/concepts/project-md-convention.md +35 -0
- package/docs/concepts/troubleshooting.md +220 -0
- package/docs/concepts/upgrade-cli.md +202 -0
- package/docs/concepts/upgrade-dogfood-procedure.md +114 -0
- package/docs/context-format-changelog.md +2 -2
- package/docs/context-format.md +2 -2
- package/docs/index.md +68 -0
- package/docs/integrations/agents.md +15 -16
- package/docs/integrations/cline.md +88 -0
- package/docs/integrations/codex.md +75 -23
- package/docs/integrations/continue.md +60 -0
- package/docs/integrations/copilot.md +67 -9
- package/docs/integrations/kilocode.md +72 -0
- package/docs/integrations/mcp.md +304 -21
- package/docs/integrations/mistral-vibe.md +122 -0
- package/docs/integrations/opencode.md +84 -0
- package/docs/integrations/overview.md +23 -8
- package/docs/integrations/roo.md +74 -0
- package/docs/integrations/windsurf.md +83 -0
- package/docs/mcp-schema-changelog.md +191 -1
- package/docs/playbooks/integration/index.md +121 -0
- package/docs/playbooks/productivity/index.md +102 -0
- package/docs/playbooks/team/index.md +122 -0
- package/docs/product/agent-first-model.md +184 -0
- package/docs/product/entity-model-audit.md +462 -0
- package/docs/product/positioning.md +10 -10
- package/docs/quickstart-existing-project.md +135 -0
- package/docs/quickstart.md +124 -37
- package/docs/release-maintenance.md +79 -0
- package/docs/review.md +2 -0
- package/docs/server-operations.md +118 -0
- package/package.json +21 -13
- package/dist/commands/claude-desktop-extension.js +0 -18
- package/dist/commands/diff.js +0 -99
- package/dist/core/claude-desktop-extension.js +0 -224
package/README.md
CHANGED
|
@@ -4,33 +4,26 @@
|
|
|
4
4
|
|
|
5
5
|
<h1 align="center">brainclaw</h1>
|
|
6
6
|
|
|
7
|
-
<p align="center"><strong>Local-first coordination for coding agents
|
|
7
|
+
<p align="center"><strong>Local-first coordination and shared memory for coding agents.</strong></p>
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
If you've ever:
|
|
12
|
+
- **lost your conversation** when your agent hit credit limits mid-task,
|
|
13
|
+
- returned to a project **after a week** with no idea where you left off,
|
|
14
|
+
- watched two coworkers (or two agents) **edit the same files** without knowing it,
|
|
15
|
+
- or **gave up running multiple agents in parallel** because keeping them in sync was a pain,
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
brainclaw gives you durable shared state across sessions, agents, and teammates. Plans, claims, handoffs, decisions, and traps live in `.brainclaw/`, work identically across any compatible agent (Claude Code, Codex, Copilot, Cline, OpenCode, Cursor, Windsurf, Kilocode, Roo Code, Continue, Mistral Vibe, Antigravity/Gemini CLI, …), and stay accessible whether you orchestrate them in parallel or pick them up one after another.
|
|
14
18
|
|
|
15
|
-
|
|
16
|
-
2. use native agent files such as `AGENTS.md`, `CLAUDE.md`, or Cursor rules as local guidance
|
|
17
|
-
3. leave the CLI to operators, scripts, setup, release, and fallback workflows
|
|
19
|
+
Use it two ways — **together or separately**:
|
|
18
20
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
+
- **Active orchestration** — dispatch work in parallel across multiple agent instances. Claims prevent conflicts, sequences manage lane dependencies, the dispatcher routes by capacity.
|
|
22
|
+
- **Async shared state** — when an agent runs out of credits, when you return to a project after weeks, or when teammates work in parallel: the next agent (or you) resumes cleanly with the same context, plans, and constraints.
|
|
21
23
|
|
|
22
|
-
|
|
24
|
+
The same primitives — plans, claims, handoffs, decisions, traps — serve both modes. That's the design point. brainclaw stores everything locally as plain text + JSON, versions it in Git, and asks no opinion about which agent you should use for what.
|
|
23
25
|
|
|
24
|
-
brainclaw is also starting to model other local AI work surfaces on the same machine, such as ChatGPT Desktop, Claude Desktop, Claude Cowork, and Gemini web or CLI
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## Why brainclaw exists
|
|
29
|
-
|
|
30
|
-
Coding agents are getting better at local code generation, but they still struggle with shared project state.
|
|
31
|
-
Across real projects, agents often miss active constraints, forget known traps, duplicate work, step on the same files, and lose context between sessions or tool surfaces.
|
|
32
|
-
|
|
33
|
-
brainclaw solves this by making the repo itself agent-readable and agent-writeable through MCP, local memory files, and explicit coordination primitives.
|
|
26
|
+
It sits alongside your coding agents and gives them a shared state layer they can resume from reliably. brainclaw is also starting to model other local AI work surfaces on the same machine, such as ChatGPT Desktop, Claude Desktop, Claude Cowork, and Gemini web or CLI, to keep a project-level queue of non-code work for those surfaces.
|
|
34
27
|
|
|
35
28
|
---
|
|
36
29
|
|
|
@@ -42,6 +35,7 @@ brainclaw solves this by making the repo itself agent-readable and agent-writeab
|
|
|
42
35
|
| **Coordination state** | shared plans, file claims, runtime notes, and board views for active work |
|
|
43
36
|
| **Agent-ready context** | compact, prompt-sized context built from real workspace state instead of stale instructions |
|
|
44
37
|
| **Native agent files** | auto-writes `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, `.cursor/rules/`, `.windsurfrules`, and similar local guidance |
|
|
38
|
+
| **Multi-turn loops** | review and ideation loops with structured phases, iteration semantics, and per-phase memory filters — see [loop engine](docs/concepts/loop-engine.md) and [ideation loop](docs/concepts/ideation-loop.md) |
|
|
45
39
|
| **Machine AI surface discovery** | detects local coding agents plus desktop AI work surfaces such as ChatGPT Desktop and Gemini CLI |
|
|
46
40
|
| **Queued surface tasks** | stores project-scoped requests for other local AI surfaces, such as visual generation, drafting, summaries, or research |
|
|
47
41
|
| **Local-first storage** | plain text + JSON, Git-friendly, no mandatory cloud, no telemetry by default |
|
|
@@ -68,32 +62,32 @@ brainclaw is designed to sit alongside the coding agents teams are already using
|
|
|
68
62
|
|
|
69
63
|
### Code Agents
|
|
70
64
|
|
|
71
|
-
| Logo | Agent |
|
|
65
|
+
| Logo | Agent | Tier | What brainclaw configures |
|
|
72
66
|
|---|---|---|---|
|
|
73
|
-
| [](https://github.com/anthropics/claude-code) | **[Claude Code](https://github.com/anthropics/claude-code)** |
|
|
74
|
-
| [](https://openai.com/codex/) | **[Codex](https://openai.com/codex/)** |
|
|
75
|
-
| [](https://cursor.com/en-US) | **[Cursor](https://cursor.com/en-US)** |
|
|
76
|
-
| [](https://github.com/continuedev/continue) | **[Continue](https://github.com/continuedev/continue)** |
|
|
81
|
-
| [](https://github.com/anthropics/claude-code) | **[Claude Code](https://github.com/anthropics/claude-code)** | A | MCP + CLAUDE.md + hooks + auto-approve + permissions + /brainclaw skill |
|
|
68
|
+
| [](https://openai.com/codex/) | **[Codex](https://openai.com/codex/)** | A | MCP + AGENTS.md + hooks + skills |
|
|
69
|
+
| [](https://cursor.com/en-US) | **[Cursor](https://cursor.com/en-US)** | A | MCP (machine) + .cursor/rules/ + hooks + skills |
|
|
70
|
+
| [](https://windsurf.com/) | **[Windsurf](https://windsurf.com/)** | A | MCP (machine) + .windsurfrules + hooks + skills |
|
|
71
|
+
| [](https://github.com/cline/cline) | **[Cline](https://github.com/cline/cline)** | A | MCP + auto-approve + .clinerules/ + hooks + skills |
|
|
72
|
+
| [](https://github.com/features/copilot) | **[GitHub Copilot](https://github.com/features/copilot)** | A | MCP + copilot-instructions.md + hooks + skills |
|
|
73
|
+
| [](https://github.com/RooCodeInc/Roo-Code) | **[Roo](https://github.com/RooCodeInc/Roo-Code)** | B | MCP + auto-approve + .roo/rules/ |
|
|
74
|
+
| [](https://github.com/continuedev/continue) | **[Continue](https://github.com/continuedev/continue)** | B | MCP + .continue/rules/ |
|
|
75
|
+
| [](https://github.com/opencode-ai/opencode) | **[OpenCode](https://github.com/opencode-ai/opencode)** | B | MCP + AGENTS.md |
|
|
76
|
+
| [](https://github.com/google-gemini/gemini-cli) | **[Antigravity / Gemini CLI](https://github.com/google-gemini/gemini-cli)** | B | MCP + GEMINI.md |
|
|
77
|
+
|
|
78
|
+
**Tier A** = MCP + hooks + skills (context injected dynamically, lightweight instruction files). **Tier B** = MCP only, no hooks (richer static instruction files with architecture + top traps). Tier can degrade at runtime if integration surfaces are missing.
|
|
85
79
|
|
|
86
80
|
### Autonomous Agents
|
|
87
81
|
|
|
88
|
-
| Logo | Agent |
|
|
82
|
+
| Logo | Agent | Tier | What brainclaw configures |
|
|
89
83
|
|---|---|---|---|
|
|
90
|
-
| [](https://github.com/openclaw/openclaw) | **[OpenClaw](https://github.com/openclaw/openclaw)** |
|
|
91
|
-
| [](https://github.com/qwibitai/nanoclaw) | **[NanoClaw](https://github.com/qwibitai/nanoclaw)** |
|
|
92
|
-
| [](https://github.com/NVIDIA/NemoClaw) | **[NemoClaw](https://github.com/NVIDIA/NemoClaw)** |
|
|
93
|
-
| [](https://github.com/sipeed/picoclaw) | **[PicoClaw](https://github.com/sipeed/picoclaw)** |
|
|
94
|
-
| [](https://github.com/zeroclaw-labs/zeroclaw) | **[ZeroClaw](https://github.com/zeroclaw-labs/zeroclaw)** |
|
|
84
|
+
| [](https://github.com/openclaw/openclaw) | **[OpenClaw](https://github.com/openclaw/openclaw)** | B | MCP + brainclaw skill (SKILL.md) for structured project memory |
|
|
85
|
+
| [](https://github.com/qwibitai/nanoclaw) | **[NanoClaw](https://github.com/qwibitai/nanoclaw)** | C | brainclaw skill — messaging agent (WhatsApp, Telegram, Slack) |
|
|
86
|
+
| [](https://github.com/NVIDIA/NemoClaw) | **[NemoClaw](https://github.com/NVIDIA/NemoClaw)** | C | brainclaw skill — NVIDIA enterprise agent stack |
|
|
87
|
+
| [](https://github.com/sipeed/picoclaw) | **[PicoClaw](https://github.com/sipeed/picoclaw)** | C | brainclaw skill — edge/IoT agent (Go, <10MB RAM) |
|
|
88
|
+
| [](https://github.com/zeroclaw-labs/zeroclaw) | **[ZeroClaw](https://github.com/zeroclaw-labs/zeroclaw)** | C | brainclaw skill — ultra-lightweight Rust agent (20+ channels) |
|
|
95
89
|
|
|
96
|
-
|
|
90
|
+
**Tier C** = no MCP, no hooks — skill-based only with inline context and constrained resources. Autonomous agents use `--profile compact` for short sessions.
|
|
97
91
|
|
|
98
92
|
brainclaw is most effective today when one agent works at a time in a given checkout and the next agent resumes from shared context, claims, and handoffs.
|
|
99
93
|
|
|
@@ -101,11 +95,11 @@ brainclaw is most effective today when one agent works at a time in a given chec
|
|
|
101
95
|
|
|
102
96
|
## Platform Support
|
|
103
97
|
|
|
104
|
-
brainclaw
|
|
98
|
+
brainclaw declares support for Node.js 20+ in `package.json`, and CI actively exercises Node 20, 22, and 24 across the main Linux path (Windows runs on Node 24). Real-world support is still not perfectly even yet.
|
|
105
99
|
|
|
106
100
|
| Logo | Platform | Status today | Notes |
|
|
107
101
|
|---|---|---|---|
|
|
108
|
-
| [](https://www.kernel.org/) | **[Linux](https://www.kernel.org/)** | Recommended | best-supported environment today; GitHub CI runs on Ubuntu with Node 20 and
|
|
102
|
+
| [](https://www.kernel.org/) | **[Linux](https://www.kernel.org/)** | Recommended | best-supported environment today; GitHub CI runs on Ubuntu with Node 20, 22, and 24 |
|
|
109
103
|
| [](https://www.apple.com/macos/) | **[macOS](https://www.apple.com/macos/)** | Likely supported | Unix-like path and shell model should map well, but it is less exercised than Linux |
|
|
110
104
|
| [](https://www.microsoft.com/windows/) | **[Windows](https://www.microsoft.com/windows/)** | Supported with caveats | native support exists, but PATH, npm, SSH, and PowerShell quoting still create more friction than on Unix systems |
|
|
111
105
|
| [](https://learn.microsoft.com/windows/wsl/) | **[Windows + WSL2](https://learn.microsoft.com/windows/wsl/)** | Important, still maturing | Brainclaw detects this setup explicitly, but setup/install/store parity across Windows and WSL is not fully seamless yet |
|
|
@@ -114,168 +108,167 @@ If you want the least surprising setup today, use Linux first. If you are on Win
|
|
|
114
108
|
|
|
115
109
|
---
|
|
116
110
|
|
|
117
|
-
##
|
|
111
|
+
## Get Started
|
|
112
|
+
|
|
113
|
+
### 1. Install
|
|
118
114
|
|
|
119
|
-
|
|
115
|
+
```bash
|
|
116
|
+
npm install -g brainclaw
|
|
117
|
+
```
|
|
120
118
|
|
|
121
|
-
|
|
119
|
+
### 2. Initialize a project
|
|
122
120
|
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
|
|
121
|
+
```bash
|
|
122
|
+
cd your-project
|
|
123
|
+
brainclaw init
|
|
126
124
|
```
|
|
127
125
|
|
|
128
|
-
|
|
129
|
-
The human expresses the intent in plain language. The agent installs Brainclaw, bootstraps the repo, and then keeps using it through MCP and local agent files.
|
|
126
|
+
This creates `.brainclaw/` in your repo, detects your coding agent, writes MCP config and instruction files, and sets up session hooks. It takes about 10 seconds.
|
|
130
127
|
|
|
131
|
-
|
|
128
|
+
### 3. Restart your agent
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
- write the local agent-facing files it will actually use
|
|
135
|
-
- configure MCP where supported
|
|
136
|
-
- start from shared context instead of ad hoc instructions
|
|
130
|
+
Restart your coding agent (or reload MCP servers) so it picks up the new configuration. After that, brainclaw tools are available.
|
|
137
131
|
|
|
138
|
-
|
|
132
|
+
### 4. Start working
|
|
139
133
|
|
|
140
|
-
|
|
134
|
+
Pick one of the canonical entry points depending on what you're doing:
|
|
141
135
|
|
|
142
|
-
```
|
|
143
|
-
#
|
|
144
|
-
|
|
145
|
-
|
|
136
|
+
```text
|
|
137
|
+
# Solo work — start a session, load context, claim a scope:
|
|
138
|
+
bclaw_work(intent="execute", scope="src/feature")
|
|
139
|
+
|
|
140
|
+
# Multi-agent — assign work, consult, open a review, or open an ideation loop:
|
|
141
|
+
bclaw_coordinate(intent="assign|consult|review|ideate", task="...", targetAgents=[...])
|
|
142
|
+
|
|
143
|
+
# Parallel lanes — dispatch a sequence across several agent instances:
|
|
144
|
+
bclaw_dispatch(intent="execute", agents=[...])
|
|
146
145
|
```
|
|
147
146
|
|
|
148
|
-
|
|
147
|
+
Common follow-ups during work — all use the canonical CRUD grammar:
|
|
149
148
|
|
|
150
149
|
```text
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
bclaw_session_end -> close session and hand work off cleanly
|
|
150
|
+
bclaw_context(kind="memory", path=...) → narrow project memory to a scope
|
|
151
|
+
bclaw_find(entity="...", filter=...) → list plans, claims, handoffs, candidates, …
|
|
152
|
+
bclaw_get(entity="...", id=...) → read one item
|
|
153
|
+
bclaw_create(entity="runtime_note", data=…) → record an observation, decision, or trap
|
|
154
|
+
bclaw_read_inbox() → pick up assigned work or review requests
|
|
155
|
+
bclaw_session_end(narrative=…) → close cleanly, hand off context to the next agent
|
|
158
156
|
```
|
|
159
157
|
|
|
160
|
-
|
|
158
|
+
For agents without MCP (e.g. Copilot reads `.github/copilot-instructions.md`), regenerate the instruction file when project memory changes:
|
|
161
159
|
|
|
162
160
|
```bash
|
|
163
|
-
brainclaw
|
|
164
|
-
brainclaw claim create "Take auth rollout" --scope src/auth/
|
|
165
|
-
brainclaw context --for src/auth/routes.ts --digest
|
|
166
|
-
brainclaw status
|
|
161
|
+
brainclaw export --detect --write
|
|
167
162
|
```
|
|
168
163
|
|
|
169
|
-
|
|
164
|
+
### 5. Verify it works
|
|
170
165
|
|
|
171
166
|
```bash
|
|
172
|
-
brainclaw
|
|
173
|
-
|
|
174
|
-
--kind visual_asset \
|
|
175
|
-
--instructions "Create a lightweight product hero visual for the landing page." \
|
|
176
|
-
--output assets/hero-home.png
|
|
177
|
-
|
|
178
|
-
brainclaw surface-task list
|
|
167
|
+
brainclaw status # see active sessions, claims, plans
|
|
168
|
+
brainclaw agent-board # see what each agent is doing
|
|
179
169
|
```
|
|
180
170
|
|
|
181
|
-
|
|
171
|
+
### Multi-agent setup
|
|
182
172
|
|
|
183
|
-
|
|
173
|
+
To configure brainclaw for all your repos and agents at once:
|
|
184
174
|
|
|
185
|
-
|
|
175
|
+
```bash
|
|
176
|
+
brainclaw setup --yes
|
|
177
|
+
```
|
|
186
178
|
|
|
187
|
-
|
|
179
|
+
This scans your projects, detects installed agents (Claude Code, Codex, Cursor, Copilot, Cline, Mistral Vibe, etc.), and writes MCP configs for each.
|
|
188
180
|
|
|
189
|
-
|
|
190
|
-
2. let the agent bootstrap MCP and native agent files
|
|
191
|
-
3. let the agent keep using Brainclaw for shared context and coordination while it works
|
|
181
|
+
### Existing projects
|
|
192
182
|
|
|
193
|
-
|
|
183
|
+
For repos that already have code, brainclaw can extract context automatically:
|
|
194
184
|
|
|
195
185
|
```bash
|
|
196
|
-
|
|
197
|
-
|
|
186
|
+
brainclaw bootstrap --json # preview what brainclaw detected
|
|
187
|
+
brainclaw bootstrap --apply # import into memory
|
|
198
188
|
```
|
|
199
189
|
|
|
200
|
-
|
|
190
|
+
See `docs/quickstart.md` for the full walkthrough, `docs/integrations/overview.md` for agent-specific details.
|
|
201
191
|
|
|
202
|
-
|
|
203
|
-
- write native agent files
|
|
204
|
-
- configure MCP where supported
|
|
205
|
-
- seed local project memory and coordination state
|
|
192
|
+
---
|
|
206
193
|
|
|
207
|
-
|
|
194
|
+
## Current state
|
|
208
195
|
|
|
209
|
-
|
|
210
|
-
npm install -g brainclaw
|
|
211
|
-
```
|
|
196
|
+
Recent releases have moved a lot of multi-agent parallel work from "risky" to "supported":
|
|
212
197
|
|
|
213
|
-
|
|
198
|
+
- **Per-claim auto-worktree** — each dispatched lane gets its own isolated git worktree; the coordinator integrates with an octopus merge.
|
|
199
|
+
- **Sequenced parallel execute** — `bclaw_dispatch(intent="execute")` fans out independent lanes across several agent instances and integrates the result.
|
|
200
|
+
- **Symmetric review-fix loops** — `bclaw_coordinate(intent="review", open_loop=true, review_mode="symmetric")` runs an alternating review-and-fix conversation across two slots without shared-checkout collisions.
|
|
201
|
+
- **Cross-platform spawn** — OS-aware prompt delivery (stdin pipe / inline arg) plus a brief-ack file handshake, so spawned workers can be detected and timed out reliably on Windows and Unix.
|
|
202
|
+
- **Worktree GC is scope-bounded** — symlinks and junctions are no longer followed during cleanup, so post-merge sweeps can't wipe `node_modules` or other neighboring directories.
|
|
203
|
+
- **MCP runtime self-heal** — when the runtime is corrupted, the server logs an actionable repair pointer; `brainclaw doctor --repair` rebuilds dist in one step.
|
|
214
204
|
|
|
215
|
-
|
|
205
|
+
Still sharp:
|
|
216
206
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
207
|
+
1. **Same-checkout concurrent edits** — running two agents in the *same* working tree (no per-claim worktree) is still the wrong answer. Use the dispatch path (auto-worktree per claim) instead of raw concurrent CLI sessions.
|
|
208
|
+
2. **Cross-machine sync** — federation across machines is on the roadmap, not in v1.x. Today brainclaw's store is local and one-machine-per-project.
|
|
209
|
+
3. **Spawn-and-forget assumptions** — spawned workers don't always commit their work cleanly. The brief-ack file confirms the spawn started; in the worst case the coordinator harvests open changes.
|
|
210
|
+
4. **Live state for hook-less agents** — Tier B/C agents without lifecycle hooks (Cursor, Cline, Windsurf, Copilot, Continue, Kilocode, Mistral Vibe) get live context via `.live.md` companions regenerated on session-end and handoff, not via real-time push.
|
|
221
211
|
|
|
222
|
-
|
|
212
|
+
Recommended use today:
|
|
223
213
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
214
|
+
1. for parallel work, dispatch a sequence with `bclaw_dispatch(intent="execute")` — each lane gets its own worktree
|
|
215
|
+
2. for sequential work in the same project, let one agent claim at a time and rely on handoffs
|
|
216
|
+
3. when reviewing or fixing across agents, prefer symmetric review loops over manual ping-pong
|
|
217
|
+
4. keep multi-machine workflows on a single source of truth until federation lands
|
|
228
218
|
|
|
229
219
|
---
|
|
230
220
|
|
|
231
|
-
##
|
|
221
|
+
## Multi-stack worktree
|
|
232
222
|
|
|
233
|
-
|
|
223
|
+
When brainclaw creates an agent worktree, it auto-detects which dependency directories to symlink from the main worktree based on stack markers present in the project root:
|
|
234
224
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
225
|
+
| Stack marker | Symlinked directories |
|
|
226
|
+
|---|---|
|
|
227
|
+
| `package.json` | `node_modules` |
|
|
228
|
+
| `requirements.txt` / `pyproject.toml` / `Pipfile` | `venv`, `.venv` |
|
|
229
|
+
| `Gemfile` | `vendor/bundle` |
|
|
230
|
+
| `go.mod` | `vendor` |
|
|
231
|
+
| `composer.json` | `vendor` |
|
|
232
|
+
| `mix.exs` | `deps` |
|
|
238
233
|
|
|
239
|
-
|
|
234
|
+
Maven, Gradle, and Cargo are intentionally excluded — their dependency caches are machine-global (`~/.m2`, `~/.gradle/caches`, `~/.cargo/registry`) and found automatically by the toolchain.
|
|
240
235
|
|
|
241
|
-
|
|
242
|
-
- operator CLI: use `docs/quickstart.md` and `docs/cli.md`
|
|
243
|
-
- brownfield onboarding: use `brainclaw bootstrap` and the onboarding guides in `docs/`
|
|
236
|
+
Build outputs like `dist` are **not** symlinked — they must be per-worktree to avoid EBUSY errors when other processes hold handles on the output directory.
|
|
244
237
|
|
|
245
|
-
|
|
238
|
+
Override detection in `.brainclaw/config.yaml`:
|
|
246
239
|
|
|
247
|
-
|
|
240
|
+
```yaml
|
|
241
|
+
worktree:
|
|
242
|
+
shared_paths: [".cache"] # additive to auto-detected
|
|
243
|
+
exclude_shared: ["node_modules"] # opt-out a detected entry
|
|
244
|
+
```
|
|
248
245
|
|
|
249
246
|
---
|
|
250
247
|
|
|
251
|
-
##
|
|
252
|
-
|
|
253
|
-
For now, avoid having multiple coding agents edit the same project in parallel in the same checkout.
|
|
254
|
-
|
|
255
|
-
brainclaw already helps one agent resume or review another agent's work with better shared context, plans, claims, and handoffs. But until dedicated Git worktrees per agent or session are implemented, concurrent edits in the same checkout can still create conflicts, overwritten local state, or confusing Git transitions.
|
|
248
|
+
## Cross-project links
|
|
256
249
|
|
|
257
|
-
|
|
250
|
+
Link a sibling brainclaw project so that signals (candidates, handoffs, runtime notes) can flow between them. Stored under `cross_project_links` in `.brainclaw/config.yaml`.
|
|
258
251
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
252
|
+
```bash
|
|
253
|
+
# Subscribe to incoming signals from a peer (default role)
|
|
254
|
+
brainclaw link add ../brainclaw-cloud
|
|
262
255
|
|
|
263
|
-
|
|
256
|
+
# Publish candidates only to a peer
|
|
257
|
+
brainclaw link add ../brainclaw-site --role publisher --channels candidate
|
|
264
258
|
|
|
265
|
-
|
|
259
|
+
# Replace an existing entry of the same name/path
|
|
260
|
+
brainclaw link add ../brainclaw-cloud --role publisher --force
|
|
266
261
|
|
|
267
|
-
|
|
262
|
+
# Inspect what's wired
|
|
263
|
+
brainclaw link list
|
|
268
264
|
|
|
269
|
-
|
|
265
|
+
# Drop a link by name, path, or basename
|
|
266
|
+
brainclaw link remove brainclaw-cloud
|
|
267
|
+
```
|
|
270
268
|
|
|
271
|
-
|
|
272
|
-
2. the agent bootstraps Brainclaw in the right environment for that workspace
|
|
273
|
-
3. the agent connects through MCP for fresh context, board views, plans, claims, and runtime writes
|
|
274
|
-
4. native agent files provide local guidance and workflow reminders in the surface the agent already uses
|
|
275
|
-
5. humans use the CLI for inspection, scripting, release, and fallback operations
|
|
276
|
-
6. shared plans, claims, handoffs, and runtime notes keep the next agent resumeable
|
|
269
|
+
`role: publisher` is required to push signals out (`bclaw_write_note --crossProject`, `bclaw_create(entity='handoff', targetProject=…)`, etc.). `role: subscriber` (the default) marks the link as readable only.
|
|
277
270
|
|
|
278
|
-
|
|
271
|
+
The same surface is available through the canonical grammar for agents: `bclaw_create/find/get/update/remove(entity='cross_project_link')`.
|
|
279
272
|
|
|
280
273
|
---
|
|
281
274
|
|
|
@@ -287,13 +280,18 @@ If you are integrating Brainclaw into an agent workflow, start with the agent-fa
|
|
|
287
280
|
|
|
288
281
|
| | |
|
|
289
282
|
|---|---|
|
|
283
|
+
| `docs/index.md` | Documentation index grouped by getting started, guides, reference, and design |
|
|
290
284
|
| `docs/integrations/overview.md` | Start here for agent integrations |
|
|
291
285
|
| `docs/integrations/mcp.md` | MCP runtime path for capable agents |
|
|
292
|
-
| `docs/quickstart.md` |
|
|
286
|
+
| `docs/quickstart.md` | First-time setup on a new project (greenfield) |
|
|
287
|
+
| `docs/quickstart-existing-project.md` | Joining a project that already has `.brainclaw/` |
|
|
288
|
+
| `docs/server-operations.md` | Operator and remote-server workflow guide |
|
|
293
289
|
| `docs/cli.md` | CLI reference for operators, scripts, and fallback use |
|
|
294
290
|
| `docs/concepts/memory.md` | What "memory" means in brainclaw |
|
|
295
291
|
| `docs/concepts/plans-and-claims.md` | Coordination layer |
|
|
296
292
|
| `docs/concepts/runtime-notes.md` | Ephemeral observations |
|
|
293
|
+
| `docs/concepts/multi-agent-workflows.md` | The four common scenarios — orchestration, agent switching, project recovery, team async |
|
|
294
|
+
| `docs/concepts/troubleshooting.md` | Runbook for degraded coordination state — stale claims, missing dist, octopus failures, etc. |
|
|
297
295
|
| `docs/integrations/cursor.md` | Cursor |
|
|
298
296
|
| `docs/integrations/claude-code.md` | Claude Code |
|
|
299
297
|
| `docs/integrations/copilot.md` | GitHub Copilot |
|
|
@@ -302,6 +300,7 @@ If you are integrating Brainclaw into an agent workflow, start with the agent-fa
|
|
|
302
300
|
| `docs/security.md` | Security model |
|
|
303
301
|
| `docs/review.md` | Reflective review |
|
|
304
302
|
| `docs/reputation.md` | Reputation signals |
|
|
303
|
+
| `docs/playbooks/` | Audience design constraints for brainclaw development |
|
|
305
304
|
|
|
306
305
|
---
|
|
307
306
|
|
|
@@ -319,53 +318,77 @@ npm run test:coverage # with coverage report
|
|
|
319
318
|
|
|
320
319
|
## Changelog
|
|
321
320
|
|
|
322
|
-
|
|
321
|
+
For older releases (v0.x and the early v1.0 launch series), `git log` on `master` is the source of truth — every release commit follows the `chore(release): bump version to <semver>` convention, and the matching feature/fix commits reference their plan id (e.g. `feat(mcp): self-heal ... (pln#478)`).
|
|
323
322
|
|
|
324
|
-
|
|
325
|
-
- **Agent capability profiles** : chaque agent (10 supportés) a un profil de capacité (MCP, hooks, auto-approve, skills, rules) qui détermine le contenu de ses fichiers d'instructions
|
|
326
|
-
- **Templates adaptatifs** : les fichiers d'instructions (CLAUDE.md, AGENTS.md, etc.) sont générés selon 3 tiers — Full (léger, hooks font le reste), Standard (directif, top traps inclus), Limited (riche, tout en statique)
|
|
327
|
-
- **Séparation core/run** : les fichiers statiques ne contiennent plus que le protocole, les contraintes et instructions. Les traps, plans, decisions et claims sont exclusivement dans le contexte dynamique MCP
|
|
328
|
-
- **Bootstrap enrichi** : scan des workflows CI/CD, ADR, CONTRIBUTING, Docker, .env.example, branches actives et tags git
|
|
329
|
-
- **Quick setup MCP** : `bclaw_setup` détecte le repo courant et propose un init rapide au lieu de forcer le scan multi-repo
|
|
330
|
-
- **`brainclaw uninstall`** : nouvelle commande pour retirer brainclaw d'un projet (`--project`) ou d'une machine (`--machine`)
|
|
331
|
-
- **Traps machine-scoped** : nouveau champ `platform_scope` sur les traps — les traps machine ne polluent plus les fichiers d'instructions statiques
|
|
332
|
-
- **Init sans setup préalable** : `brainclaw init` crée automatiquement le user store si absent, plus besoin de `brainclaw setup` d'abord
|
|
333
|
-
- **Docs réécrites** : intégrations, quickstart et README avec niveaux Full/Standard/Limited et matrice agent factuelle
|
|
323
|
+
### v1.5.3
|
|
334
324
|
|
|
335
|
-
|
|
325
|
+
- **Cross-project canonical grammar + CLI parity** (pln#359, all phases) — the canonical grammar (`bclaw_find / get / create / update / remove / transition`), `bclaw_context`, and `bclaw_coordinate` now accept an optional `project: <name>` argument that routes the operation to a linked project. Two link kinds are recognised: `cross_project_links` (sibling/peer projects in `config.yaml`, `brainclaw link list`) and workspace store-chain children. Arbitrary directory paths are rejected — adoption requires an explicit link, which gives the user a single point of control over what an agent can reach. Identity is sourced from the caller's home registry; entity writes + audit log entries land in the target. Unknown project names throw `validation_error` with a hint listing the configured links — no silent fallback. Cross-project `bclaw_coordinate` is **inbox-only**: claim/assignment/message all land in the target, the target agent picks the brief up async via its own `bclaw_work`, and auto-spawn from the source process is force-disabled because the spawn cwd / worktree are tied to the target's git repo (a warning surfaces in `FacadeResponse.warnings`). The CLI exposes the same as a global `--project <name>` flag, mutually exclusive with `--cwd`. Refs: helper `resolveProjectCwd` in `src/core/cross-project.ts`, MCP write/read handler dispatch in `src/commands/mcp.ts` and `src/commands/mcp-read-handlers.ts`, `--project` plumbing in `src/cli.ts` preAction, surface advertisement in `src/core/instruction-templates.ts`, plus tests in `tests/unit/cross-project.test.ts` (10 unit cases on the helper), `tests/unit/bclaw-coordinate.test.ts` (4 cross-project routing cases), and `tests/cli-cross-project.test.ts` (5 e2e cases). Closes the `--cwd` workaround pattern that had been the day-to-day shape of multi-project sessions.
|
|
326
|
+
- **Site facts contract** (umbrella `pln_7fdfd70d` sprint 0) — new `scripts/emit-site-facts.mjs` emits `dist/facts.{js,json}` from `MCP_TOOL_NAMES` + `ENTITY_NAMES` so the brainclaw-site (and any consumer) can pull live tool/entity counts at build time without forking the values into a hand-maintained config. The package `files` list ships `dist/facts.json`; build:cli runs the emitter as part of the chain.
|
|
336
327
|
|
|
337
|
-
|
|
338
|
-
- **Antigravity / Gemini CLI** : détection et export `gemini-md` vers `GEMINI.md`, avec MCP machine-level sous `.gemini/antigravity/mcp_config.json`
|
|
339
|
-
- **Workflow export** : la doc export couvre désormais explicitement les nouveaux formats et fichiers générés
|
|
328
|
+
### v1.5.2
|
|
340
329
|
|
|
341
|
-
|
|
330
|
+
- **Grammar fix: `bclaw_update` no longer silently drops patches** (trp#187, pln#500) — the canonical CRUD surface promised that `EntityRegistry.updatable` listed every patchable field, but the legacy impls behind the dispatch (`updatePlan`, `updateMemoryItem`) only handled a typed subset. A `as UpdatePlanInput` cast in `entity-operations.ts` masked the gap from TypeScript: callers passed `{text, tags, severity, …}`, validation accepted them, and the function bodies never read them. Empirically reproduced this session on `pln#359` (text+tags drop) and `trp#187` itself (severity drop). Fix adds a generic-patch escape-hatch (`patch?: Partial<…>`) on `UpdatePlanInput` and `UpdateMemoryInput`, applied via `Object.assign` after the typed fields so legacy CLI callers keep their behaviour. The dispatch in `entity-operations.ts` now passes the full patch through that escape-hatch for plan/decision/constraint/trap. `runtime_note`, `candidate`, and `cross_project_link` were already correct. New `tests/unit/entity-update-coverage.test.ts` is parametric: for every `(entity, field)` pair in `EntityRegistry.updatable`, create + patch + get + assert the field actually persisted (29 cases). Adding a new updatable field will require adding a coverage row, so the contract stays honest.
|
|
342
331
|
|
|
343
|
-
|
|
332
|
+
### v1.5.1
|
|
344
333
|
|
|
345
|
-
|
|
334
|
+
- **Cross-project link CLI + grammar parity** (pln#454 step 2) — new `brainclaw link add/list/remove` subcommands and a stateless `cross_project_link` entity wired into the canonical CRUD verbs (`bclaw_create / find / get / update / remove`). The pain point was small (config.yaml is hand-editable) but the asymmetry — runtime cross-project signaling shipped, management UX did not — meant federation peers had no first-class affordance. Storage stays in `config.cross_project_links`; the entity is intentionally stateless (no transitions). Refs: `src/commands/link.ts`, `src/core/cross-project.ts` (new `addCrossProjectLink` / `removeCrossProjectLink`), `src/core/entity-registry.ts` (new `xpl` prefix), `src/core/entity-operations.ts` dispatch cases, `tests/unit/link.test.ts` + `tests/unit/cross-project-link-grammar.test.ts` (26 new cases).
|
|
335
|
+
- **Agent registry pruned** (pln#454 step 1) — 8 synthetic profiles (antigravity, copilot-vscode, claude-opus, copilot-identity, copilot, claude-sonnet, visionnaire, copilot-codev) and 11 abandoned sessions archived under `.brainclaw/archive/agents/2026-05-07/`. The whitelist that survives matches `feedback_allowed_dispatch_agents.md`: `claude-code`, `codex`, `github-copilot`, plus `jberdah` (curator). Auto-re-registration in `detectAiAgent` is intentionally preserved — if a real surface starts a session, the registry auto-rebuilds for it. Pure store cleanup, no code change.
|
|
336
|
+
- **Inbox + assignment lifecycle reconciliation** (housekeeping) — 89 stale inbox messages and 7 orphan offered-assignments closed with retroactive lifecycle updates. The plans they backed (pln#478 mcp self-heal, pln#480 multi-stack worktree, pln#483 bclaw_work compact, pln#471 tier-B live companions) had all merged weeks earlier without the dispatch path calling `bclaw_assignment_update`. Captured as `feedback_dispatch_test_inbox_debris` so future drift is mass-acked instead of triaged per-message.
|
|
346
337
|
|
|
347
|
-
|
|
338
|
+
### v1.5.0
|
|
348
339
|
|
|
349
|
-
|
|
340
|
+
- **Ideation loop MVP** (pln#492) — new `bclaw_coordinate(intent='ideate')` opens a memory-confrontation loop: critic reads only adversarial categories (traps + feedback + runtime_notes + critique_history) and gets a BM25-ranked, context-filtered, 12k-token-capped brief assembled from project memory. Single-agent (champion drives manually) or multi-agent (auto-dispatch a turn per critic). Iteration block (cycle, max_iterations, exit_when), phase-advance gate (≥3 critique artifacts before leaving critique), system events (`phase_advance_blocked`, `max_iterations_reached`). Full design: [docs/concepts/ideation-loop.md](docs/concepts/ideation-loop.md).
|
|
341
|
+
- **Reliable dispatch + autonomy contract** (pln#496) — codex / sandboxed task-based agents now emit the full lifecycle (accepted → started → progress → completed). `briefMode` resolution corrected: `task-based && hasMcp → 'full'` (not 'compact', which silently dropped the protocol section). Lazy reconciliation pattern: `agentrun-reconciler` runs at every read path (`bclaw_assignment_events`, `bclaw_loop intent='get'`, `doctor --dispatch`) instead of a daemon; first run auto-recovered 9 historical orphan agent_runs in <1s. New autonomy contract section in instruction surfaces — agents execute protocol-defined transitions instead of pausing to ask. New `buildClaimEnvPrefix` consolidates cross-shell env injection (Windows defaults to cmd, POSIX uses unquoted bytes per PATH conventions). New `brainclaw doctor --dispatch` for operator-facing dispatch health.
|
|
342
|
+
- **Worktree junction wipe fix** (pln#498) — `detachWorktreeJunctions` runs before `git worktree remove` on Windows so git's recursive rm cannot follow the `node_modules` junction back into the main repo. Closes the recurring post-merge wipe trap; validated empirically on multiple back-to-back merges in the v1.5.0 session.
|
|
343
|
+
- **Methodological lessons** captured as user auto-memory feedback memos: bisect historical state before bisecting code (regression vs. always-broken-but-hidden), lazy reconcile at read paths beats daemon polling, codex briefs MUST include the Protocol section (implicit instructions don't propagate to sandboxed CLIs).
|
|
350
344
|
|
|
351
|
-
|
|
352
|
-
- **Cursor** : config MCP machine-level (`~/.cursor/mcp.json`) ajoutée à l'auto-config
|
|
353
|
-
- **Roo Code** : config MCP workspace (`.roo/mcp.json`)
|
|
354
|
-
- **Continue** : config MCP workspace (`.continue/config.json`, format array)
|
|
355
|
-
- **Hygiene section** renforcée : workflow plan/claim/session-end inclus dans toutes les instructions générées
|
|
356
|
-
- **Canal de mise à jour local** (`brainclaw version --publish-local`) : tarball + manifeste `.releases/`
|
|
345
|
+
### v1.2.0
|
|
357
346
|
|
|
358
|
-
|
|
347
|
+
- **zod 3 → 4 migration** (pln#486) — schemas are semantically equivalent but the JSON Schema emitted by `tools/list` shifted shape; downstream MCP clients that snapshot schemas should re-pin. See `docs/mcp-schema-changelog.md` for the public surface fingerprint.
|
|
348
|
+
|
|
349
|
+
### v1.1.0
|
|
350
|
+
|
|
351
|
+
- **Node 20+ baseline** (pln#485) — `engines.node` is now `>=20.0.0` (Node 18 reached EOL in April 2025). CI matrix runs Node 20, 22, and 24 on Linux; Windows on Node 24.
|
|
352
|
+
- **commander 13 → 14** (requires Node 20+).
|
|
353
|
+
- **@types/node 22 → 24** (LTS-aligned).
|
|
354
|
+
|
|
355
|
+
### v1.0.15
|
|
356
|
+
|
|
357
|
+
- **TypeScript 5.8 → 6.0** (pln#484) — migration to `module: "nodenext"` (`Node16` is deprecated in TS 6, scheduled for removal in TS 7); explicit `types: ["node"]` since TS 6 changed the default to `[]`.
|
|
359
358
|
|
|
360
|
-
|
|
359
|
+
### v1.0.14
|
|
361
360
|
|
|
362
|
-
|
|
361
|
+
- **`bclaw_work` compact payload by default** (pln#483) — avoids exceeding the ~25k MCP token cap on projects with substantial memory. Pass `compact: false` for the full payload, or call `bclaw_context(kind="memory")` after.
|
|
362
|
+
- **MCP runtime self-heal + `doctor --repair`** (pln#478) — when `dist/mcp-worker.js` is missing, the server logs an actionable repair pointer and read-only handlers keep serving in-process. `brainclaw doctor --repair` rebuilds dist in one step.
|
|
363
|
+
- **Tier B/C native live companions** (pln#471) — `.cursor/live.md`, `.clinerules/live.md`, `.windsurf/rules/live.md`, `.github/copilot-instructions.live.md`, `.continue/live.md`, `GEMINI.live.md` regenerated on session-end and handoff. Opt-in via `brainclaw export --include-live --write`.
|
|
363
364
|
|
|
364
|
-
|
|
365
|
+
### v1.0.13
|
|
365
366
|
|
|
366
|
-
-
|
|
367
|
-
|
|
367
|
+
- **Worktree GC scope hardening** (pln#477) — `safeRemoveWorktreeDir` no longer follows symlinks/junctions during cleanup. Closes a class of post-merge wipes that previously destroyed `node_modules` and other neighboring directories on Windows.
|
|
368
|
+
|
|
369
|
+
### v1.0.10–v1.0.12
|
|
370
|
+
|
|
371
|
+
- **GitHub Copilot CLI is spawnable** (pln#440) — Copilot CLI 1.0.35+ supports `-p "<prompt>" --allow-all --no-ask-user`; tier promoted to A.
|
|
372
|
+
- **Codex spawn on Windows: stdin pipe + 30s handshake TTL** (pln#475) — fixes embedded backticks/`#`/multi-line content getting mis-parsed by `cmd.exe` when a prompt is passed as an inline argument.
|
|
373
|
+
- **Brief-ack file handshake** (pln#476) — `.brainclaw/coordination/runtime/ack/<assignmentId>.ack` proves a spawned worker started, decoupling the handshake from MCP availability inside the worker (important for Codex in `--sandbox workspace-write`).
|
|
374
|
+
- **`bclaw_loop(intent="open")` orphan-gate** (pln#461) — refuses to open a loop without dispatch unless `allow_orphan: true` is explicit. Use `bclaw_coordinate(intent="review", open_loop: true)` instead.
|
|
375
|
+
- **Kilocode** — Tier B integration with native MCP config and live companion (pln#464).
|
|
376
|
+
|
|
377
|
+
### v1.0.0
|
|
378
|
+
|
|
379
|
+
- **Canonical grammar promoted to standard tier** — `bclaw_find` / `bclaw_get` / `bclaw_create` / `bclaw_update` / `bclaw_remove` / `bclaw_transition`, plus the entry facades `bclaw_work` and `bclaw_context`, the multi-agent facades `bclaw_coordinate` and `bclaw_dispatch`, and the loop facade `bclaw_loop`. Legacy per-entity tools removed from the discoverable surface (still callable as a migration escape hatch). See `docs/concepts/mcp-governance.md` for tier rules and the deprecation policy.
|
|
380
|
+
|
|
381
|
+
---
|
|
368
382
|
|
|
369
|
-
|
|
383
|
+
## License
|
|
384
|
+
|
|
385
|
+
brainclaw core is published under the [MIT License](LICENSE) — (c) 2024-2026 Juan Berdah.
|
|
386
|
+
|
|
387
|
+
The licensing split is simple:
|
|
388
|
+
|
|
389
|
+
- the local-first brainclaw core is MIT
|
|
390
|
+
- cloud shared-memory, remote collaboration services, advanced dashboards, and related hosted add-ons will live in separate commercial products
|
|
391
|
+
|
|
392
|
+
The MIT core covers what makes brainclaw useful inside a repo today: local project memory, local MCP and CLI coordination, onboarding and bootstrap, plans, claims, handoffs, runtime notes, and local agent integrations.
|
|
370
393
|
|
|
371
394
|
The goal is not to close brainclaw down. The goal is to keep the local-first core open and genuinely useful on its own, while keeping hosted collaboration features separate.
|
|
Binary file
|