brainclaw 0.19.2
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 +74 -0
- package/README.md +226 -0
- package/dist/cli.js +1037 -0
- package/dist/commands/accept.js +149 -0
- package/dist/commands/adapter-openclaw-import.js +75 -0
- package/dist/commands/add-step.js +35 -0
- package/dist/commands/agent-board.js +106 -0
- package/dist/commands/audit.js +35 -0
- package/dist/commands/bootstrap.js +34 -0
- package/dist/commands/capability.js +104 -0
- package/dist/commands/changes.js +112 -0
- package/dist/commands/check-constraints.js +63 -0
- package/dist/commands/claim-resource.js +54 -0
- package/dist/commands/claim.js +92 -0
- package/dist/commands/complete-step.js +34 -0
- package/dist/commands/constraint.js +44 -0
- package/dist/commands/context-diff.js +32 -0
- package/dist/commands/context.js +63 -0
- package/dist/commands/decision.js +45 -0
- package/dist/commands/delete-plan.js +20 -0
- package/dist/commands/diff.js +99 -0
- package/dist/commands/doctor.js +1275 -0
- package/dist/commands/enable-agent.js +63 -0
- package/dist/commands/env.js +46 -0
- package/dist/commands/estimation-report.js +167 -0
- package/dist/commands/explore.js +47 -0
- package/dist/commands/export.js +381 -0
- package/dist/commands/handoff.js +63 -0
- package/dist/commands/history.js +22 -0
- package/dist/commands/hooks.js +123 -0
- package/dist/commands/init.js +356 -0
- package/dist/commands/install-hooks.js +115 -0
- package/dist/commands/instruction.js +56 -0
- package/dist/commands/list-agents.js +44 -0
- package/dist/commands/list-claims.js +45 -0
- package/dist/commands/list-instructions.js +50 -0
- package/dist/commands/list-plans.js +48 -0
- package/dist/commands/mcp-worker.js +12 -0
- package/dist/commands/mcp.js +2272 -0
- package/dist/commands/memory.js +283 -0
- package/dist/commands/metrics.js +175 -0
- package/dist/commands/plan-resource.js +62 -0
- package/dist/commands/plan.js +76 -0
- package/dist/commands/prune-candidates.js +36 -0
- package/dist/commands/prune.js +48 -0
- package/dist/commands/pull.js +25 -0
- package/dist/commands/push.js +28 -0
- package/dist/commands/rebuild.js +14 -0
- package/dist/commands/reflect-runtime-note.js +74 -0
- package/dist/commands/reflect.js +286 -0
- package/dist/commands/register-agent.js +29 -0
- package/dist/commands/reject.js +52 -0
- package/dist/commands/release-claim.js +41 -0
- package/dist/commands/release-claims.js +67 -0
- package/dist/commands/review.js +242 -0
- package/dist/commands/rollback.js +156 -0
- package/dist/commands/runtime-note.js +144 -0
- package/dist/commands/runtime-status.js +49 -0
- package/dist/commands/search.js +36 -0
- package/dist/commands/session-end.js +187 -0
- package/dist/commands/session-start.js +147 -0
- package/dist/commands/set-trust.js +92 -0
- package/dist/commands/setup.js +446 -0
- package/dist/commands/show-candidate.js +31 -0
- package/dist/commands/star-candidate.js +28 -0
- package/dist/commands/status.js +133 -0
- package/dist/commands/sync.js +159 -0
- package/dist/commands/tool.js +126 -0
- package/dist/commands/trap.js +74 -0
- package/dist/commands/update-handoff.js +23 -0
- package/dist/commands/update-plan.js +37 -0
- package/dist/commands/upgrade.js +382 -0
- package/dist/commands/use-candidate.js +35 -0
- package/dist/commands/version.js +96 -0
- package/dist/commands/watch.js +215 -0
- package/dist/commands/whoami.js +104 -0
- package/dist/core/agent-context.js +340 -0
- package/dist/core/agent-files.js +874 -0
- package/dist/core/agent-integrations.js +135 -0
- package/dist/core/agent-inventory.js +401 -0
- package/dist/core/agent-registry.js +420 -0
- package/dist/core/ai-agent-detection.js +140 -0
- package/dist/core/audit.js +85 -0
- package/dist/core/bootstrap.js +658 -0
- package/dist/core/brainclaw-version.js +433 -0
- package/dist/core/candidates.js +137 -0
- package/dist/core/circuit-breaker.js +118 -0
- package/dist/core/claims.js +72 -0
- package/dist/core/config.js +86 -0
- package/dist/core/context-diff.js +122 -0
- package/dist/core/context.js +1212 -0
- package/dist/core/contradictions.js +270 -0
- package/dist/core/coordination.js +86 -0
- package/dist/core/cross-project.js +99 -0
- package/dist/core/duplicates.js +72 -0
- package/dist/core/event-log.js +152 -0
- package/dist/core/events.js +56 -0
- package/dist/core/execution-context.js +204 -0
- package/dist/core/freshness.js +87 -0
- package/dist/core/global-registry.js +182 -0
- package/dist/core/host.js +10 -0
- package/dist/core/identity.js +151 -0
- package/dist/core/ids.js +56 -0
- package/dist/core/input-validation.js +81 -0
- package/dist/core/instructions.js +117 -0
- package/dist/core/io.js +191 -0
- package/dist/core/json-store.js +63 -0
- package/dist/core/lifecycle.js +45 -0
- package/dist/core/lock.js +129 -0
- package/dist/core/logger.js +49 -0
- package/dist/core/machine-profile.js +332 -0
- package/dist/core/markdown.js +120 -0
- package/dist/core/memory-git.js +133 -0
- package/dist/core/migration.js +247 -0
- package/dist/core/project-registry.js +64 -0
- package/dist/core/reflection-safety.js +21 -0
- package/dist/core/repo-analysis.js +133 -0
- package/dist/core/reputation.js +409 -0
- package/dist/core/runtime.js +134 -0
- package/dist/core/schema.js +580 -0
- package/dist/core/search.js +115 -0
- package/dist/core/security.js +66 -0
- package/dist/core/setup-state.js +50 -0
- package/dist/core/state.js +83 -0
- package/dist/core/store-resolution.js +119 -0
- package/dist/core/sync-remote.js +83 -0
- package/dist/core/traps.js +86 -0
- package/package.json +60 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
Business Source License 1.1
|
|
2
|
+
|
|
3
|
+
Licensor: Juan Berdah
|
|
4
|
+
Licensed Work: brainclaw
|
|
5
|
+
The Licensed Work is (c) 2024-2026 Juan Berdah
|
|
6
|
+
Change Date: Four years from the release date of each version
|
|
7
|
+
Change License: MIT License
|
|
8
|
+
|
|
9
|
+
For information about alternative licensing arrangements, contact the Licensor.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Parameters
|
|
14
|
+
|
|
15
|
+
Licensor: Juan Berdah
|
|
16
|
+
Licensed Work: brainclaw
|
|
17
|
+
Additional Use Grant: You may make production use of the Licensed Work, including use
|
|
18
|
+
for internal business operations, provided that you do not use the
|
|
19
|
+
Licensed Work to build or offer a competing product or service that
|
|
20
|
+
provides shared agent memory, coordination, or context management
|
|
21
|
+
for coding agents or development teams.
|
|
22
|
+
Change Date: Four years after the release date of each version
|
|
23
|
+
Change License: MIT License
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
Notice
|
|
28
|
+
|
|
29
|
+
The Business Source License (this document, or the "License") is not an Open Source
|
|
30
|
+
license. However, the Licensed Work will eventually be made available under an Open
|
|
31
|
+
Source License, as stated in this License.
|
|
32
|
+
|
|
33
|
+
Use Limitation: The additional use grant in the Parameters specifies the permitted
|
|
34
|
+
production use. If your use case falls outside that grant, you need a separate
|
|
35
|
+
commercial license from the Licensor.
|
|
36
|
+
|
|
37
|
+
License text
|
|
38
|
+
|
|
39
|
+
The Licensor hereby grants you the right to copy, modify, create derivative works,
|
|
40
|
+
redistribute, and make non-production use of the Licensed Work. The Licensor may
|
|
41
|
+
make an Additional Use Grant, above, permitting limited production use.
|
|
42
|
+
|
|
43
|
+
Effective on the Change Date, or the fourth anniversary of the first publicly available
|
|
44
|
+
distribution of a specific version of the Licensed Work under this License, whichever
|
|
45
|
+
comes first, the Licensor hereby grants you rights under the terms of the Change
|
|
46
|
+
License, and the rights granted in the paragraph above terminate.
|
|
47
|
+
|
|
48
|
+
If your use of the Licensed Work does not comply with the requirements currently in
|
|
49
|
+
effect as described in this License, you must purchase a commercial license from the
|
|
50
|
+
Licensor, its affiliated entities, or authorized resellers, or you must refrain from
|
|
51
|
+
using the Licensed Work.
|
|
52
|
+
|
|
53
|
+
All copies of the original and modified Licensed Work, and derivative works of the
|
|
54
|
+
Licensed Work, are subject to this License. This License applies separately for each
|
|
55
|
+
version of the Licensed Work and the Change Date may vary for each version of the
|
|
56
|
+
Licensed Work released by the licensor.
|
|
57
|
+
|
|
58
|
+
You must conspicuously display this License on each original or modified copy of the
|
|
59
|
+
Licensed Work. If you receive the Licensed Work in original or modified form from a
|
|
60
|
+
third party, the terms and conditions set forth in this License apply to your use of
|
|
61
|
+
that work.
|
|
62
|
+
|
|
63
|
+
Any use of the Licensed Work in violation of this License will automatically terminate
|
|
64
|
+
your rights under this License for the current and all future versions of the Licensed
|
|
65
|
+
Work.
|
|
66
|
+
|
|
67
|
+
This License does not grant you any right in any trademark or logo of Licensor or its
|
|
68
|
+
affiliates (provided that you may use a trademark or logo of Licensor as expressly
|
|
69
|
+
required by this License).
|
|
70
|
+
|
|
71
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS
|
|
72
|
+
IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR
|
|
73
|
+
IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
|
74
|
+
PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE.
|
package/README.md
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/assets/logo.png" alt="brainclaw" width="140" />
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">brainclaw</h1>
|
|
6
|
+
|
|
7
|
+
<p align="center"><strong>Local-first coordination for humans and coding agents.</strong></p>
|
|
8
|
+
|
|
9
|
+
<p align="center">
|
|
10
|
+
<a href="https://github.com/jberdah/brainclaw/actions/workflows/ci.yml"><img src="https://github.com/jberdah/brainclaw/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
11
|
+
</p>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
brainclaw gives a workspace a shared coordination layer: project memory, explicit plans, file claims, handoffs, layered instructions, and prompt-ready context — stored locally, versioned in Git, readable in plain text.
|
|
16
|
+
|
|
17
|
+
It sits alongside Copilot, Claude Code, Cursor, Codex, Windsurf, OpenCode, Antigravity/Gemini CLI and any other coding agent. It does not replace them. It helps them work together.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Why brainclaw exists
|
|
22
|
+
|
|
23
|
+
Coding agents are getting better at local code generation, but they still struggle with shared project state.
|
|
24
|
+
Across real projects, agents often miss active constraints, forget known traps, duplicate work, step on the same files, and lose context between sessions.
|
|
25
|
+
|
|
26
|
+
brainclaw solves this by giving the workspace a shared coordination layer that both humans and agents can read and update.
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## What it provides
|
|
31
|
+
|
|
32
|
+
| | |
|
|
33
|
+
|---|---|
|
|
34
|
+
| **Project memory** | constraints, decisions, traps, handoffs, layered instructions |
|
|
35
|
+
| **Coordination state** | shared plans, file claims, handoffs, runtime notes, board views |
|
|
36
|
+
| **Agent-ready context** | compact, prompt-sized context generated from real workspace state |
|
|
37
|
+
| **Native agent files** | auto-writes `CLAUDE.md`, `AGENTS.md`, `GEMINI.md`, `.cursor/rules/`, `.windsurfrules`, etc. |
|
|
38
|
+
| **Local-first storage** | plain text + JSON, Git-friendly, no cloud, no telemetry |
|
|
39
|
+
|
|
40
|
+
---
|
|
41
|
+
|
|
42
|
+
## Works With
|
|
43
|
+
|
|
44
|
+
brainclaw is designed to sit alongside the coding agents teams are already using.
|
|
45
|
+
|
|
46
|
+
| Logo | Agent | Brainclaw fit | Best use today |
|
|
47
|
+
|---|---|---|---|
|
|
48
|
+
| [](https://github.com/anthropics/claude-code) | **[Claude Code](https://github.com/anthropics/claude-code)** | Best fit | full workflow integration with instructions, MCP, commands, and session hooks |
|
|
49
|
+
| [](https://openai.com/codex/) | **[Codex](https://openai.com/codex/)** | Strong fit | structured CLI/MCP collaboration with explicit plans, claims, and handoffs |
|
|
50
|
+
| [](https://cursor.com/en-US) | **[Cursor](https://cursor.com/en-US)** | Strong fit | repo-native coordination with rules + MCP |
|
|
51
|
+
| [](https://github.com/opencode-ai/opencode) | **[OpenCode](https://github.com/opencode-ai/opencode)** | Strong fit | simple local-first setup with `AGENTS.md` + workspace MCP |
|
|
52
|
+
| [](https://windsurf.com/) | **[Windsurf](https://windsurf.com/)** | Good fit | guided workflows with instructions, hooks, and MCP |
|
|
53
|
+
| [](https://github.com/RooCodeInc/Roo-Code) | **[Roo](https://github.com/RooCodeInc/Roo-Code)** | Good fit | workspace coordination with rules + MCP |
|
|
54
|
+
| [](https://github.com/continuedev/continue) | **[Continue](https://github.com/continuedev/continue)** | Good fit | context access and MCP-driven collaboration in editor workflows |
|
|
55
|
+
| [](https://github.com/google-gemini/gemini-cli) | **[Antigravity / Gemini CLI](https://github.com/google-gemini/gemini-cli)** | Promising fit | CLI-first workflows with `GEMINI.md` + MCP |
|
|
56
|
+
| [](https://github.com/cline/cline) | **[Cline](https://github.com/cline/cline)** | Functional fit | lightweight Brainclaw usage through rules + MCP |
|
|
57
|
+
| [](https://github.com/features/copilot) | **[GitHub Copilot](https://github.com/features/copilot)** | Supported fit | project awareness and shared instructions, with lighter workflow control |
|
|
58
|
+
|
|
59
|
+
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.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Platform Support
|
|
64
|
+
|
|
65
|
+
brainclaw targets Node.js 20+ across major developer operating systems, but real-world support is not perfectly even yet.
|
|
66
|
+
|
|
67
|
+
| Logo | Platform | Status today | Notes |
|
|
68
|
+
|---|---|---|---|
|
|
69
|
+
| [](https://www.kernel.org/) | **[Linux](https://www.kernel.org/)** | Recommended | best-supported environment today; GitHub CI runs on Ubuntu with Node 20 and 22 |
|
|
70
|
+
| [](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 |
|
|
71
|
+
| [](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 |
|
|
72
|
+
| [](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 |
|
|
73
|
+
|
|
74
|
+
If you want the least surprising setup today, use Linux first. If you are on Windows, prefer a disciplined single-environment workflow and expect a few extra machine-specific fixes.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Quick example
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
npx brainclaw setup --yes
|
|
82
|
+
npx brainclaw init
|
|
83
|
+
|
|
84
|
+
npx brainclaw memory create decision "OAuth migration now goes through auth-gateway" --tag auth
|
|
85
|
+
npx brainclaw memory create constraint "Payments module frozen until 2026-04-01" --tag payments
|
|
86
|
+
npx brainclaw memory create trap "Checkout E2E tests are flaky on Windows" --severity high
|
|
87
|
+
npx brainclaw plan create "Coordinate auth rollout" --priority high
|
|
88
|
+
npx brainclaw memory create handoff "Validate refund endpoint" --from backend --to qa
|
|
89
|
+
|
|
90
|
+
npx brainclaw context --json
|
|
91
|
+
npx brainclaw status
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Installation
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
npm install -g brainclaw # global
|
|
100
|
+
# or
|
|
101
|
+
npm install && npm run build # from source
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Also available as `bclaw`:
|
|
105
|
+
|
|
106
|
+
```bash
|
|
107
|
+
bclaw init
|
|
108
|
+
bclaw status
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
---
|
|
112
|
+
|
|
113
|
+
## Quickstart
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
brainclaw setup --yes
|
|
117
|
+
brainclaw init
|
|
118
|
+
brainclaw memory create decision "OAuth migration now goes through auth-gateway" --tag auth
|
|
119
|
+
brainclaw memory create constraint "Payments module frozen until 2026-04-01" --tag payments
|
|
120
|
+
brainclaw memory create trap "Checkout E2E tests are flaky on Windows" --severity high
|
|
121
|
+
brainclaw plan create "Coordinate auth rollout" --priority high
|
|
122
|
+
brainclaw context --json
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
→ [Full quickstart guide](https://github.com/jberdah/brainclaw/blob/master/docs/quickstart.md)
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
129
|
+
## Current Limitation
|
|
130
|
+
|
|
131
|
+
For now, avoid having multiple coding agents edit the same project in parallel.
|
|
132
|
+
|
|
133
|
+
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/session are implemented, concurrent edits in the same checkout can still create conflicts, overwritten local state, or confusing Git transitions.
|
|
134
|
+
|
|
135
|
+
Recommended use today:
|
|
136
|
+
|
|
137
|
+
1. let one agent work at a time in a given checkout
|
|
138
|
+
2. use handoffs when switching from one agent to another
|
|
139
|
+
3. use shared plans, claims, and context to preserve continuity
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## How it fits into agent workflows
|
|
144
|
+
|
|
145
|
+
brainclaw sits *alongside* Copilot, Claude Code, Cursor, Codex, Windsurf, Cline, Roo, Continue, OpenCode, and Antigravity/Gemini CLI.
|
|
146
|
+
|
|
147
|
+
Typical flow:
|
|
148
|
+
|
|
149
|
+
1. `brainclaw setup` — machine-level bootstrap for agent integrations and global prerequisites
|
|
150
|
+
2. `brainclaw init` — seeds workspace memory, writes to the detected agent's native instruction file
|
|
151
|
+
3. record canonical memory with `brainclaw memory create ...` and work items with `brainclaw plan create ...`
|
|
152
|
+
4. let agents read brainclaw context before editing
|
|
153
|
+
5. use claims to reduce collisions
|
|
154
|
+
6. hand work off explicitly when needed
|
|
155
|
+
7. keep shared state visible across sessions
|
|
156
|
+
|
|
157
|
+
brainclaw can also expose collaboration views through MCP-readable tools, including context, board views, and structured lists for plans, claims, agents, instructions, and candidates.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Documentation
|
|
162
|
+
|
|
163
|
+
| | |
|
|
164
|
+
|---|---|
|
|
165
|
+
| [docs/quickstart.md](https://github.com/jberdah/brainclaw/blob/master/docs/quickstart.md) | Get started in 5 minutes |
|
|
166
|
+
| [docs/cli.md](https://github.com/jberdah/brainclaw/blob/master/docs/cli.md) | Full command reference |
|
|
167
|
+
| [docs/concepts/memory.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/memory.md) | What "memory" means in brainclaw |
|
|
168
|
+
| [docs/concepts/plans-and-claims.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/plans-and-claims.md) | Coordination layer |
|
|
169
|
+
| [docs/concepts/runtime-notes.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/runtime-notes.md) | Ephemeral observations |
|
|
170
|
+
| [docs/integrations/overview.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/overview.md) | How to integrate with any agent |
|
|
171
|
+
| [docs/integrations/cursor.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/cursor.md) | Cursor |
|
|
172
|
+
| [docs/integrations/claude-code.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/claude-code.md) | Claude Code |
|
|
173
|
+
| [docs/integrations/copilot.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/copilot.md) | GitHub Copilot |
|
|
174
|
+
| [docs/integrations/codex.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/codex.md) | Codex |
|
|
175
|
+
| [docs/integrations/mcp.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/mcp.md) | MCP tools |
|
|
176
|
+
| [docs/storage.md](https://github.com/jberdah/brainclaw/blob/master/docs/storage.md) | Storage model |
|
|
177
|
+
| [docs/security.md](https://github.com/jberdah/brainclaw/blob/master/docs/security.md) | Security model |
|
|
178
|
+
| [docs/review.md](https://github.com/jberdah/brainclaw/blob/master/docs/review.md) | Reflective review |
|
|
179
|
+
| [docs/reputation.md](https://github.com/jberdah/brainclaw/blob/master/docs/reputation.md) | Reputation signals |
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## Running tests
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
npm test # unit + smoke (fast path)
|
|
187
|
+
npm run test:e2e # full suite
|
|
188
|
+
npm run test:coverage # with coverage report
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## Changelog
|
|
194
|
+
|
|
195
|
+
### v0.9.10
|
|
196
|
+
|
|
197
|
+
- **OpenCode** : détection et auto-config MCP workspace via `opencode.json`; l'export réutilise `AGENTS.md`
|
|
198
|
+
- **Antigravity / Gemini CLI** : détection et export `gemini-md` vers `GEMINI.md`, avec MCP machine-level sous `.gemini/antigravity/mcp_config.json`
|
|
199
|
+
- **Workflow export** : la doc export couvre désormais explicitement les nouveaux formats et fichiers générés
|
|
200
|
+
|
|
201
|
+
### v0.7.2
|
|
202
|
+
|
|
203
|
+
- **UserPromptSubmit hook** : correction du format — `brainclaw context` (texte markdown) au lieu de `--json` pour injection correcte dans le contexte Claude Code
|
|
204
|
+
|
|
205
|
+
### v0.7.1
|
|
206
|
+
|
|
207
|
+
- **Cross-platform `npx` fix** : `brainclaw init` et `brainclaw export` ajoutent désormais brainclaw en `devDependency` du projet cible — `npx brainclaw` fonctionne dans les hooks Claude Code sans dépendre du PATH global (résout Windows WSL/Git Bash)
|
|
208
|
+
|
|
209
|
+
### v0.7.0
|
|
210
|
+
|
|
211
|
+
- **Claude Code** : intégration native complète — MCP (`.mcp.json`), slash command (`.claude/commands/brainclaw.md`), hooks de session (`UserPromptSubmit` + `Stop`) dans `.claude/settings.local.json`
|
|
212
|
+
- **Cursor** : config MCP machine-level (`~/.cursor/mcp.json`) ajoutée à l'auto-config
|
|
213
|
+
- **Roo Code** : config MCP workspace (`.roo/mcp.json`)
|
|
214
|
+
- **Continue** : config MCP workspace (`.continue/config.json`, format array)
|
|
215
|
+
- **Hygiene section** renforcée : workflow plan/claim/session-end inclus dans toutes les instructions générées
|
|
216
|
+
- **Canal de mise à jour local** (`brainclaw version --publish-local`) : tarball + manifeste `.releases/`
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## License
|
|
221
|
+
|
|
222
|
+
[Business Source License 1.1](LICENSE) — © 2024-2026 Juan Berdah
|
|
223
|
+
|
|
224
|
+
Free for non-production and internal use. Production use is permitted provided you do not build or offer a competing product or service (shared agent memory / coordination / context management for coding agents or development teams). Each version converts to MIT four years after its release date.
|
|
225
|
+
|
|
226
|
+
For commercial licensing inquiries, contact the licensor.
|