brainclaw 1.9.0 → 1.9.1
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/README.md +585 -499
- package/dist/brainclaw-vscode.vsix +0 -0
- package/dist/commands/harvest.js +1 -1
- package/dist/commands/hooks.js +73 -73
- package/dist/commands/init.js +1 -1
- package/dist/commands/install-hooks.js +78 -78
- package/dist/commands/mcp-read-handlers.js +57 -14
- package/dist/commands/mcp.js +79 -13
- package/dist/commands/switch.js +26 -5
- package/dist/commands/version.js +1 -1
- package/dist/core/agent-capability.js +19 -4
- package/dist/core/agent-files.js +119 -119
- package/dist/core/codev-prompts.js +38 -38
- package/dist/core/default-profiles/doctor.yaml +11 -11
- package/dist/core/default-profiles/janitor.yaml +11 -11
- package/dist/core/default-profiles/onboarder.yaml +11 -11
- package/dist/core/default-profiles/reviewer.yaml +13 -13
- package/dist/core/dispatcher.js +1 -1
- package/dist/core/entity-operations.js +29 -3
- package/dist/core/execution.js +1 -1
- package/dist/core/loops/verbs.js +0 -1
- package/dist/core/messaging.js +2 -2
- package/dist/core/protocol-skills.js +164 -164
- package/dist/core/runtime-signals.js +1 -1
- package/dist/core/search.js +19 -2
- package/dist/core/security-guard.js +207 -207
- package/dist/core/spawn-check.js +16 -2
- package/dist/core/staleness.js +1 -1
- package/dist/core/store-resolution.js +26 -7
- package/dist/core/worktree.js +18 -18
- package/dist/facts.js +3 -3
- package/dist/facts.json +2 -2
- package/docs/PROTOCOL.md +1 -1
- package/docs/adapters/openclaw.md +43 -43
- package/docs/architecture/project-refs.md +328 -328
- package/docs/cli.md +2093 -2093
- package/docs/concepts/coordination.md +52 -52
- package/docs/concepts/coordinator-runbook.md +129 -129
- package/docs/concepts/dispatch-lifecycle.md +245 -245
- package/docs/concepts/event-log-store.md +928 -928
- package/docs/concepts/ideation-loop.md +317 -317
- package/docs/concepts/loop-engine.md +520 -511
- package/docs/concepts/mcp-governance.md +268 -268
- package/docs/concepts/memory.md +84 -84
- package/docs/concepts/multi-agent-workflows.md +167 -167
- package/docs/concepts/observer-protocol.md +361 -361
- package/docs/concepts/plans-and-claims.md +217 -217
- package/docs/concepts/project-md-convention.md +35 -35
- package/docs/concepts/runtime-notes.md +38 -38
- package/docs/concepts/troubleshooting.md +254 -254
- package/docs/concepts/workspace-bootstrapping.md +142 -142
- package/docs/context-format-changelog.md +35 -35
- package/docs/context-format.md +48 -48
- package/docs/index.md +65 -65
- package/docs/integrations/agents.md +158 -158
- package/docs/integrations/claude-code.md +23 -23
- package/docs/integrations/cline.md +77 -77
- package/docs/integrations/continue.md +55 -55
- package/docs/integrations/copilot.md +68 -68
- package/docs/integrations/cursor.md +23 -23
- package/docs/integrations/kilocode.md +72 -72
- package/docs/integrations/mcp.md +377 -377
- package/docs/integrations/mistral-vibe.md +122 -122
- package/docs/integrations/openclaw.md +92 -92
- package/docs/integrations/opencode.md +84 -84
- package/docs/integrations/overview.md +115 -115
- package/docs/integrations/roo.md +71 -71
- package/docs/integrations/windsurf.md +77 -77
- package/docs/mcp-schema-changelog.md +360 -356
- package/docs/playbooks/integration/index.md +121 -121
- package/docs/playbooks/orchestration.md +37 -0
- package/docs/playbooks/productivity/index.md +99 -99
- package/docs/playbooks/team/index.md +117 -117
- package/docs/product/agent-first-model.md +184 -184
- package/docs/product/entity-model-audit.md +462 -462
- package/docs/product/positioning.md +86 -86
- package/docs/quickstart-existing-project.md +107 -107
- package/docs/quickstart.md +183 -183
- package/docs/release-maintenance.md +79 -79
- package/docs/reputation.md +52 -52
- package/docs/review.md +45 -45
- package/docs/security.md +212 -212
- package/docs/server-operations.md +118 -118
- package/docs/storage.md +106 -106
- package/package.json +80 -65
- package/docs/concepts/event-log-store-critique-A.md +0 -333
- package/docs/concepts/event-log-store-critique-B.md +0 -353
- package/docs/concepts/event-log-store-phase0-measurements.md +0 -58
- package/docs/concepts/event-log-store-proposal-A.md +0 -365
- package/docs/concepts/event-log-store-proposal-B.md +0 -404
- package/docs/concepts/identity-model-proposal.md +0 -371
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
# Mistral Vibe Integration
|
|
2
|
-
|
|
3
|
-
brainclaw integrates with **Mistral Vibe** through MCP tools, the universal `.agents/skills/brainclaw/SKILL.md`, and a `.live.md` companion file. Mistral Vibe is a Tier B agent — MCP + skills + CLI spawn, but no hooks (BeforePrompt is a feature request, not yet implemented) and no native rules file equivalent to `CLAUDE.md`.
|
|
4
|
-
|
|
5
|
-
Mistral Vibe is open-source (Apache 2.0), Paris-based, and supports on-premise / EU-hosted deployment — making it a strategic option for teams that need GDPR compliance and freedom from US CLOUD Act exposure.
|
|
6
|
-
|
|
7
|
-
## Auto-setup
|
|
8
|
-
|
|
9
|
-
`brainclaw init` detects Mistral Vibe (via `~/.vibe/` directory or `VIBE_HOME` env var) and writes:
|
|
10
|
-
|
|
11
|
-
- `.vibe/config.toml` — TOML MCP config registering brainclaw as a stdio server
|
|
12
|
-
- `AGENTS.md` — shared instruction file (also read by Codex and OpenCode)
|
|
13
|
-
- `.agents/skills/brainclaw/SKILL.md` — universal skill auto-discovered by Vibe
|
|
14
|
-
- `.vibe/live.md` (opt-in via `--include-live`) — refreshed on session-end / handoff with current plans, claims, traps, candidates, handoffs
|
|
15
|
-
|
|
16
|
-
Manual regeneration:
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
brainclaw export --format agents-md --write
|
|
20
|
-
brainclaw export --format agents-md --write --include-live # add the live companion
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## MCP configuration
|
|
24
|
-
|
|
25
|
-
Mistral Vibe reads MCP servers from `.vibe/config.toml` (project, prioritaire) or `~/.vibe/config.toml` (user fallback). Format is **TOML** — Mistral Vibe is the only Tier B agent in brainclaw's catalog using TOML rather than JSON/YAML.
|
|
26
|
-
|
|
27
|
-
```toml
|
|
28
|
-
[[mcp_servers]]
|
|
29
|
-
name = "brainclaw"
|
|
30
|
-
transport = "stdio"
|
|
31
|
-
command = "npx"
|
|
32
|
-
args = ["-y", "brainclaw@latest", "mcp"]
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Other transports supported by Mistral Vibe : `http`, `sse` (Streamable-HTTP). brainclaw uses `stdio` by default, the simplest and most secure local path.
|
|
36
|
-
|
|
37
|
-
The brainclaw writer is **idempotent** — if `.vibe/config.toml` already declares a `[[mcp_servers]]` block whose `name = "brainclaw"`, the writer leaves it alone (preserves any user customization of `command`, `args`, etc.). Other `[[mcp_servers]]` entries (e.g., Serena, custom MCP servers) are also preserved on regeneration.
|
|
38
|
-
|
|
39
|
-
## Permissions
|
|
40
|
-
|
|
41
|
-
Mistral Vibe supports per-tool permission control in `.vibe/config.toml`:
|
|
42
|
-
|
|
43
|
-
```toml
|
|
44
|
-
[tools.bash]
|
|
45
|
-
permission = "always" # auto-approve
|
|
46
|
-
|
|
47
|
-
[mcp_servers.brainclaw]
|
|
48
|
-
enabled_tools = ["bclaw_work", "bclaw_context", "bclaw_find", "bclaw_get"]
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Patterns supported: exact names, glob (`bash*`), regex (`re:^bclaw_.*$`). brainclaw does not yet emit a curated `enabled_tools` list automatically — configure manually for headless workflows.
|
|
52
|
-
|
|
53
|
-
For interactive sessions, toggle global auto-approve with `Shift+Tab` or pass `--auto-approve` on the CLI.
|
|
54
|
-
|
|
55
|
-
## Instruction files
|
|
56
|
-
|
|
57
|
-
- **`AGENTS.md`** — shared instruction file (read by Mistral Vibe, Codex, OpenCode). Static brainclaw protocol + active constraints. Generated by `brainclaw export --format agents-md --write`.
|
|
58
|
-
- **`.agents/skills/brainclaw/SKILL.md`** — universal skill, auto-discovered by Mistral Vibe alongside `.vibe/skills/`. Provides slash-command access (`/brainclaw`).
|
|
59
|
-
- **`.vibe/live.md`** (opt-in) — live companion regenerated on session-end and handoff with plans, claims, traps, candidates, handoffs. Critical for Tier B agents like Vibe that lack pre-prompt hooks: this is the parity backstop so the agent sees current coordination state without an MCP round-trip on every prompt.
|
|
60
|
-
|
|
61
|
-
Mistral Vibe **does not have a native rules file** equivalent to `CLAUDE.md` — there is no documented mechanism to inject project-wide instructions outside `AGENTS.md` and skills. brainclaw works within that constraint.
|
|
62
|
-
|
|
63
|
-
## Headless invocation
|
|
64
|
-
|
|
65
|
-
Mistral Vibe is CLI-spawnable for parallel lanes and dispatched workflows. The canonical invoke template is:
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
vibe --prompt "{prompt}" --auto-approve --max-turns 5
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
- `--prompt` runs the task non-interactively from a single string.
|
|
72
|
-
- `--auto-approve` disables interactive approval on file edits and bash exec.
|
|
73
|
-
- `--max-turns N` caps the agent loop. brainclaw uses 5 by default; raise for larger tasks.
|
|
74
|
-
- `--max-price <USD>` (optional) caps cost before interruption.
|
|
75
|
-
|
|
76
|
-
For long prompts, `stdin_pipe` is supported (`echo "prompt" | vibe`) and is the fallback when `inline_arg` exceeds 8000 chars.
|
|
77
|
-
|
|
78
|
-
Output is text-formatted on stdout. brainclaw parses completion via the brief-ack file (same handshake pattern as Codex and other CLI-spawned workers).
|
|
79
|
-
|
|
80
|
-
## Capability profile
|
|
81
|
-
|
|
82
|
-
| Field | Value |
|
|
83
|
-
|-------|-------|
|
|
84
|
-
| Tier | B |
|
|
85
|
-
| MCP | yes (TOML config, project + user) |
|
|
86
|
-
| Hooks | no (BeforePrompt is feature request #531, not implemented) |
|
|
87
|
-
| Auto-approve | per-call (`--auto-approve` flag, or `Shift+Tab` interactive toggle) |
|
|
88
|
-
| Skills | yes (`.vibe/skills/` + universal `.agents/skills/`) |
|
|
89
|
-
| CLI spawnable | yes |
|
|
90
|
-
| Max concurrent tasks | 2 (conservative, see caveats) |
|
|
91
|
-
| Workflow model | task-based (one-shot `--prompt` exec) |
|
|
92
|
-
| MCP config scope | both (project + user fallback) |
|
|
93
|
-
| Prompt delivery | `inline_arg` (preferred, max 8000 chars), `stdin_pipe` (fallback) |
|
|
94
|
-
| Native rules file | no (relies on `AGENTS.md` + skill universel) |
|
|
95
|
-
| Live companion | `.vibe/live.md` (opt-in via `--include-live`) |
|
|
96
|
-
|
|
97
|
-
## Sovereignty & compliance
|
|
98
|
-
|
|
99
|
-
Mistral Vibe is a strategic option when EU/FR data sovereignty matters:
|
|
100
|
-
|
|
101
|
-
- **Mistral AI is Paris-based** — fully subject to GDPR, **not** subject to the US CLOUD Act.
|
|
102
|
-
- **Vibe CLI is open-source** (Apache 2.0) on [github.com/mistralai/mistral-vibe](https://github.com/mistralai/mistral-vibe) — auditable end-to-end.
|
|
103
|
-
- **Open-weight models** (Mistral Medium 3.5, Codestral, Devstral) deployable on-premise via Hugging Face — full data control, no third-party API calls when self-hosted.
|
|
104
|
-
- **EU-hosted Mistral cloud** available with a Data Processing Agreement (DPA).
|
|
105
|
-
|
|
106
|
-
For teams that have ruled out US-hosted agents on compliance grounds (regulated sectors, public sector, defense), this is often the only viable Tier B option.
|
|
107
|
-
|
|
108
|
-
## Caveats
|
|
109
|
-
|
|
110
|
-
- **Windows + Git Bash unsupported.** Mistral Vibe spawns its child shells via PowerShell or `cmd.exe` on Windows and cannot reuse environment variables sourced inside Git Bash. Tracked upstream as [issue #135](https://github.com/mistralai/mistral-vibe/issues/135). Workaround: run `vibe` from PowerShell or WSL.
|
|
111
|
-
- **No pre-prompt hooks.** Vibe has an experimental post-agent-turn hook system (v2.9.0+) but no `BeforePrompt` / `UserPromptSubmit` equivalent. Live coordination state must reach the agent via MCP calls or the `.vibe/live.md` companion regenerated on session-end / handoff — there is no real-time push mechanism.
|
|
112
|
-
- **No `CLAUDE.md` equivalent.** Mistral Vibe does not auto-load a free-form rules file at session start; integration relies on `AGENTS.md` + skills.
|
|
113
|
-
- **CLI freezes documented** on the current version (early v2.x). For production parallel dispatch, `max_concurrent_tasks` is capped at 2 conservatively.
|
|
114
|
-
- **Rate-limit messages are vague** (upstream issue) — when running heavy parallel workloads, expect generic `rate limit exceeded` errors without specific guidance.
|
|
115
|
-
- **Skill discovery overlap.** Vibe auto-discovers both `.vibe/skills/` and `.agents/skills/`. brainclaw writes only to `.agents/skills/brainclaw/SKILL.md` to avoid duplicate definitions; if a project already had a `.vibe/skills/brainclaw/` folder, remove it manually after this integration to avoid two competing definitions.
|
|
116
|
-
|
|
117
|
-
## See also
|
|
118
|
-
|
|
119
|
-
- [docs/integrations/overview.md](overview.md) — full agent matrix and integration tier model
|
|
120
|
-
- [docs/integrations/mcp.md](mcp.md) — recommended dynamic runtime path
|
|
121
|
-
- [Mistral Vibe official documentation](https://docs.mistral.ai/mistral-vibe/introduction)
|
|
122
|
-
- [Mistral Vibe GitHub repository](https://github.com/mistralai/mistral-vibe) (Apache 2.0)
|
|
1
|
+
# Mistral Vibe Integration
|
|
2
|
+
|
|
3
|
+
brainclaw integrates with **Mistral Vibe** through MCP tools, the universal `.agents/skills/brainclaw/SKILL.md`, and a `.live.md` companion file. Mistral Vibe is a Tier B agent — MCP + skills + CLI spawn, but no hooks (BeforePrompt is a feature request, not yet implemented) and no native rules file equivalent to `CLAUDE.md`.
|
|
4
|
+
|
|
5
|
+
Mistral Vibe is open-source (Apache 2.0), Paris-based, and supports on-premise / EU-hosted deployment — making it a strategic option for teams that need GDPR compliance and freedom from US CLOUD Act exposure.
|
|
6
|
+
|
|
7
|
+
## Auto-setup
|
|
8
|
+
|
|
9
|
+
`brainclaw init` detects Mistral Vibe (via `~/.vibe/` directory or `VIBE_HOME` env var) and writes:
|
|
10
|
+
|
|
11
|
+
- `.vibe/config.toml` — TOML MCP config registering brainclaw as a stdio server
|
|
12
|
+
- `AGENTS.md` — shared instruction file (also read by Codex and OpenCode)
|
|
13
|
+
- `.agents/skills/brainclaw/SKILL.md` — universal skill auto-discovered by Vibe
|
|
14
|
+
- `.vibe/live.md` (opt-in via `--include-live`) — refreshed on session-end / handoff with current plans, claims, traps, candidates, handoffs
|
|
15
|
+
|
|
16
|
+
Manual regeneration:
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
brainclaw export --format agents-md --write
|
|
20
|
+
brainclaw export --format agents-md --write --include-live # add the live companion
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## MCP configuration
|
|
24
|
+
|
|
25
|
+
Mistral Vibe reads MCP servers from `.vibe/config.toml` (project, prioritaire) or `~/.vibe/config.toml` (user fallback). Format is **TOML** — Mistral Vibe is the only Tier B agent in brainclaw's catalog using TOML rather than JSON/YAML.
|
|
26
|
+
|
|
27
|
+
```toml
|
|
28
|
+
[[mcp_servers]]
|
|
29
|
+
name = "brainclaw"
|
|
30
|
+
transport = "stdio"
|
|
31
|
+
command = "npx"
|
|
32
|
+
args = ["-y", "brainclaw@latest", "mcp"]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Other transports supported by Mistral Vibe : `http`, `sse` (Streamable-HTTP). brainclaw uses `stdio` by default, the simplest and most secure local path.
|
|
36
|
+
|
|
37
|
+
The brainclaw writer is **idempotent** — if `.vibe/config.toml` already declares a `[[mcp_servers]]` block whose `name = "brainclaw"`, the writer leaves it alone (preserves any user customization of `command`, `args`, etc.). Other `[[mcp_servers]]` entries (e.g., Serena, custom MCP servers) are also preserved on regeneration.
|
|
38
|
+
|
|
39
|
+
## Permissions
|
|
40
|
+
|
|
41
|
+
Mistral Vibe supports per-tool permission control in `.vibe/config.toml`:
|
|
42
|
+
|
|
43
|
+
```toml
|
|
44
|
+
[tools.bash]
|
|
45
|
+
permission = "always" # auto-approve
|
|
46
|
+
|
|
47
|
+
[mcp_servers.brainclaw]
|
|
48
|
+
enabled_tools = ["bclaw_work", "bclaw_context", "bclaw_find", "bclaw_get"]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
Patterns supported: exact names, glob (`bash*`), regex (`re:^bclaw_.*$`). brainclaw does not yet emit a curated `enabled_tools` list automatically — configure manually for headless workflows.
|
|
52
|
+
|
|
53
|
+
For interactive sessions, toggle global auto-approve with `Shift+Tab` or pass `--auto-approve` on the CLI.
|
|
54
|
+
|
|
55
|
+
## Instruction files
|
|
56
|
+
|
|
57
|
+
- **`AGENTS.md`** — shared instruction file (read by Mistral Vibe, Codex, OpenCode). Static brainclaw protocol + active constraints. Generated by `brainclaw export --format agents-md --write`.
|
|
58
|
+
- **`.agents/skills/brainclaw/SKILL.md`** — universal skill, auto-discovered by Mistral Vibe alongside `.vibe/skills/`. Provides slash-command access (`/brainclaw`).
|
|
59
|
+
- **`.vibe/live.md`** (opt-in) — live companion regenerated on session-end and handoff with plans, claims, traps, candidates, handoffs. Critical for Tier B agents like Vibe that lack pre-prompt hooks: this is the parity backstop so the agent sees current coordination state without an MCP round-trip on every prompt.
|
|
60
|
+
|
|
61
|
+
Mistral Vibe **does not have a native rules file** equivalent to `CLAUDE.md` — there is no documented mechanism to inject project-wide instructions outside `AGENTS.md` and skills. brainclaw works within that constraint.
|
|
62
|
+
|
|
63
|
+
## Headless invocation
|
|
64
|
+
|
|
65
|
+
Mistral Vibe is CLI-spawnable for parallel lanes and dispatched workflows. The canonical invoke template is:
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
vibe --prompt "{prompt}" --auto-approve --max-turns 5
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
- `--prompt` runs the task non-interactively from a single string.
|
|
72
|
+
- `--auto-approve` disables interactive approval on file edits and bash exec.
|
|
73
|
+
- `--max-turns N` caps the agent loop. brainclaw uses 5 by default; raise for larger tasks.
|
|
74
|
+
- `--max-price <USD>` (optional) caps cost before interruption.
|
|
75
|
+
|
|
76
|
+
For long prompts, `stdin_pipe` is supported (`echo "prompt" | vibe`) and is the fallback when `inline_arg` exceeds 8000 chars.
|
|
77
|
+
|
|
78
|
+
Output is text-formatted on stdout. brainclaw parses completion via the brief-ack file (same handshake pattern as Codex and other CLI-spawned workers).
|
|
79
|
+
|
|
80
|
+
## Capability profile
|
|
81
|
+
|
|
82
|
+
| Field | Value |
|
|
83
|
+
|-------|-------|
|
|
84
|
+
| Tier | B |
|
|
85
|
+
| MCP | yes (TOML config, project + user) |
|
|
86
|
+
| Hooks | no (BeforePrompt is feature request #531, not implemented) |
|
|
87
|
+
| Auto-approve | per-call (`--auto-approve` flag, or `Shift+Tab` interactive toggle) |
|
|
88
|
+
| Skills | yes (`.vibe/skills/` + universal `.agents/skills/`) |
|
|
89
|
+
| CLI spawnable | yes |
|
|
90
|
+
| Max concurrent tasks | 2 (conservative, see caveats) |
|
|
91
|
+
| Workflow model | task-based (one-shot `--prompt` exec) |
|
|
92
|
+
| MCP config scope | both (project + user fallback) |
|
|
93
|
+
| Prompt delivery | `inline_arg` (preferred, max 8000 chars), `stdin_pipe` (fallback) |
|
|
94
|
+
| Native rules file | no (relies on `AGENTS.md` + skill universel) |
|
|
95
|
+
| Live companion | `.vibe/live.md` (opt-in via `--include-live`) |
|
|
96
|
+
|
|
97
|
+
## Sovereignty & compliance
|
|
98
|
+
|
|
99
|
+
Mistral Vibe is a strategic option when EU/FR data sovereignty matters:
|
|
100
|
+
|
|
101
|
+
- **Mistral AI is Paris-based** — fully subject to GDPR, **not** subject to the US CLOUD Act.
|
|
102
|
+
- **Vibe CLI is open-source** (Apache 2.0) on [github.com/mistralai/mistral-vibe](https://github.com/mistralai/mistral-vibe) — auditable end-to-end.
|
|
103
|
+
- **Open-weight models** (Mistral Medium 3.5, Codestral, Devstral) deployable on-premise via Hugging Face — full data control, no third-party API calls when self-hosted.
|
|
104
|
+
- **EU-hosted Mistral cloud** available with a Data Processing Agreement (DPA).
|
|
105
|
+
|
|
106
|
+
For teams that have ruled out US-hosted agents on compliance grounds (regulated sectors, public sector, defense), this is often the only viable Tier B option.
|
|
107
|
+
|
|
108
|
+
## Caveats
|
|
109
|
+
|
|
110
|
+
- **Windows + Git Bash unsupported.** Mistral Vibe spawns its child shells via PowerShell or `cmd.exe` on Windows and cannot reuse environment variables sourced inside Git Bash. Tracked upstream as [issue #135](https://github.com/mistralai/mistral-vibe/issues/135). Workaround: run `vibe` from PowerShell or WSL.
|
|
111
|
+
- **No pre-prompt hooks.** Vibe has an experimental post-agent-turn hook system (v2.9.0+) but no `BeforePrompt` / `UserPromptSubmit` equivalent. Live coordination state must reach the agent via MCP calls or the `.vibe/live.md` companion regenerated on session-end / handoff — there is no real-time push mechanism.
|
|
112
|
+
- **No `CLAUDE.md` equivalent.** Mistral Vibe does not auto-load a free-form rules file at session start; integration relies on `AGENTS.md` + skills.
|
|
113
|
+
- **CLI freezes documented** on the current version (early v2.x). For production parallel dispatch, `max_concurrent_tasks` is capped at 2 conservatively.
|
|
114
|
+
- **Rate-limit messages are vague** (upstream issue) — when running heavy parallel workloads, expect generic `rate limit exceeded` errors without specific guidance.
|
|
115
|
+
- **Skill discovery overlap.** Vibe auto-discovers both `.vibe/skills/` and `.agents/skills/`. brainclaw writes only to `.agents/skills/brainclaw/SKILL.md` to avoid duplicate definitions; if a project already had a `.vibe/skills/brainclaw/` folder, remove it manually after this integration to avoid two competing definitions.
|
|
116
|
+
|
|
117
|
+
## See also
|
|
118
|
+
|
|
119
|
+
- [docs/integrations/overview.md](overview.md) — full agent matrix and integration tier model
|
|
120
|
+
- [docs/integrations/mcp.md](mcp.md) — recommended dynamic runtime path
|
|
121
|
+
- [Mistral Vibe official documentation](https://docs.mistral.ai/mistral-vibe/introduction)
|
|
122
|
+
- [Mistral Vibe GitHub repository](https://github.com/mistralai/mistral-vibe) (Apache 2.0)
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
# OpenClaw Integration
|
|
2
|
-
|
|
3
|
-
## Why brainclaw for OpenClaw users
|
|
4
|
-
|
|
5
|
-
OpenClaw's built-in memory (`MEMORY.md` + daily logs) is great for personal notes and preferences, but it doesn't distinguish between different types of project knowledge. After many conversations, constraints get buried, decisions lose their reasoning, and the agent drifts from its original instructions.
|
|
6
|
-
|
|
7
|
-
brainclaw adds a structured memory layer on top:
|
|
8
|
-
|
|
9
|
-
| Problem | OpenClaw alone | With brainclaw |
|
|
10
|
-
|---|---|---|
|
|
11
|
-
| "Don't deploy on Friday" gets forgotten | Buried in MEMORY.md after 50 conversations | Stored as a constraint, always visible |
|
|
12
|
-
| Agent repeats a known mistake | No trap system | Traps scored by relevance to current scope |
|
|
13
|
-
| Two agents work on same file | No coordination | Claims prevent collisions |
|
|
14
|
-
| Decision reasoning is lost | Mixed with daily notes | Preserved as typed decisions, searchable |
|
|
15
|
-
|
|
16
|
-
## How it works
|
|
17
|
-
|
|
18
|
-
brainclaw integrates as an OpenClaw **skill**. The skill instructs the agent to:
|
|
19
|
-
|
|
20
|
-
1. Load brainclaw project context before any coding work
|
|
21
|
-
2. Record constraints, traps, and decisions in brainclaw (not MEMORY.md)
|
|
22
|
-
3. Keep MEMORY.md for personal preferences and daily observations
|
|
23
|
-
4. Coordinate with other agents through plans and claims
|
|
24
|
-
|
|
25
|
-
## Installation
|
|
26
|
-
|
|
27
|
-
### Prerequisites
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
npm install -g brainclaw
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Install the skill
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
brainclaw enable-agent openclaw
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
This copies the brainclaw skill to `~/.openclaw/workspace/skills/brainclaw/`.
|
|
40
|
-
|
|
1
|
+
# OpenClaw Integration
|
|
2
|
+
|
|
3
|
+
## Why brainclaw for OpenClaw users
|
|
4
|
+
|
|
5
|
+
OpenClaw's built-in memory (`MEMORY.md` + daily logs) is great for personal notes and preferences, but it doesn't distinguish between different types of project knowledge. After many conversations, constraints get buried, decisions lose their reasoning, and the agent drifts from its original instructions.
|
|
6
|
+
|
|
7
|
+
brainclaw adds a structured memory layer on top:
|
|
8
|
+
|
|
9
|
+
| Problem | OpenClaw alone | With brainclaw |
|
|
10
|
+
|---|---|---|
|
|
11
|
+
| "Don't deploy on Friday" gets forgotten | Buried in MEMORY.md after 50 conversations | Stored as a constraint, always visible |
|
|
12
|
+
| Agent repeats a known mistake | No trap system | Traps scored by relevance to current scope |
|
|
13
|
+
| Two agents work on same file | No coordination | Claims prevent collisions |
|
|
14
|
+
| Decision reasoning is lost | Mixed with daily notes | Preserved as typed decisions, searchable |
|
|
15
|
+
|
|
16
|
+
## How it works
|
|
17
|
+
|
|
18
|
+
brainclaw integrates as an OpenClaw **skill**. The skill instructs the agent to:
|
|
19
|
+
|
|
20
|
+
1. Load brainclaw project context before any coding work
|
|
21
|
+
2. Record constraints, traps, and decisions in brainclaw (not MEMORY.md)
|
|
22
|
+
3. Keep MEMORY.md for personal preferences and daily observations
|
|
23
|
+
4. Coordinate with other agents through plans and claims
|
|
24
|
+
|
|
25
|
+
## Installation
|
|
26
|
+
|
|
27
|
+
### Prerequisites
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install -g brainclaw
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Install the skill
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
brainclaw enable-agent openclaw
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This copies the brainclaw skill to `~/.openclaw/workspace/skills/brainclaw/`.
|
|
40
|
+
|
|
41
41
|
Or manually:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
@@ -45,55 +45,55 @@ brainclaw export --format openclaw --output /tmp/brainclaw-openclaw-skill.md
|
|
|
45
45
|
mkdir -p ~/.openclaw/workspace/skills/brainclaw
|
|
46
46
|
cp /tmp/brainclaw-openclaw-skill.md ~/.openclaw/workspace/skills/brainclaw/SKILL.md
|
|
47
47
|
```
|
|
48
|
-
|
|
49
|
-
### Initialize a project
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
cd /path/to/your/project
|
|
53
|
-
brainclaw init
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Restart OpenClaw
|
|
57
|
-
|
|
58
|
-
```
|
|
59
|
-
/new
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
or restart the Gateway. The brainclaw skill will be loaded automatically.
|
|
63
|
-
|
|
64
|
-
## What the agent sees
|
|
65
|
-
|
|
66
|
-
After installation, your OpenClaw agent will:
|
|
67
|
-
|
|
68
|
-
- Run `brainclaw context` before project work to load constraints, traps, and plans
|
|
69
|
-
- Record rules you give it as brainclaw constraints (not just MEMORY.md entries)
|
|
70
|
-
- Record problems it discovers as traps (with severity)
|
|
71
|
-
- Log architectural decisions with their reasoning
|
|
72
|
-
- Clean up with `brainclaw session-end` when finished
|
|
73
|
-
|
|
74
|
-
## Memory split
|
|
75
|
-
|
|
76
|
-
The brainclaw skill establishes a clear split:
|
|
77
|
-
|
|
78
|
-
- **MEMORY.md** — your preferences, habits, personal context (OpenClaw manages this)
|
|
79
|
-
- **brainclaw** — project constraints, traps, decisions, plans (shared with all agents)
|
|
80
|
-
|
|
81
|
-
This means if you switch from OpenClaw to Claude Code or Codex for coding, the project memory follows — it's in `.brainclaw/`, not in `~/.openclaw/`.
|
|
82
|
-
|
|
83
|
-
## Multi-agent coordination
|
|
84
|
-
|
|
85
|
-
If you use both OpenClaw and a coding agent (Claude Code, Cursor, etc.) on the same project, brainclaw coordinates between them:
|
|
86
|
-
|
|
87
|
-
- OpenClaw records a constraint → Claude Code sees it at next session
|
|
88
|
-
- Claude Code claims a file scope → OpenClaw knows not to edit there
|
|
89
|
-
- Either agent creates a plan → both see it in their context
|
|
90
|
-
|
|
91
|
-
## Profile
|
|
92
|
-
|
|
93
|
-
When loading context for OpenClaw, use the `openclaw` profile for optimized scoring:
|
|
94
|
-
|
|
95
|
-
```bash
|
|
96
|
-
brainclaw context --profile openclaw
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
This boosts constraints, handoffs, and runtime notes — the items most relevant to an agent that might not be editing code directly but needs to understand the project state.
|
|
48
|
+
|
|
49
|
+
### Initialize a project
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
cd /path/to/your/project
|
|
53
|
+
brainclaw init
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Restart OpenClaw
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
/new
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
or restart the Gateway. The brainclaw skill will be loaded automatically.
|
|
63
|
+
|
|
64
|
+
## What the agent sees
|
|
65
|
+
|
|
66
|
+
After installation, your OpenClaw agent will:
|
|
67
|
+
|
|
68
|
+
- Run `brainclaw context` before project work to load constraints, traps, and plans
|
|
69
|
+
- Record rules you give it as brainclaw constraints (not just MEMORY.md entries)
|
|
70
|
+
- Record problems it discovers as traps (with severity)
|
|
71
|
+
- Log architectural decisions with their reasoning
|
|
72
|
+
- Clean up with `brainclaw session-end` when finished
|
|
73
|
+
|
|
74
|
+
## Memory split
|
|
75
|
+
|
|
76
|
+
The brainclaw skill establishes a clear split:
|
|
77
|
+
|
|
78
|
+
- **MEMORY.md** — your preferences, habits, personal context (OpenClaw manages this)
|
|
79
|
+
- **brainclaw** — project constraints, traps, decisions, plans (shared with all agents)
|
|
80
|
+
|
|
81
|
+
This means if you switch from OpenClaw to Claude Code or Codex for coding, the project memory follows — it's in `.brainclaw/`, not in `~/.openclaw/`.
|
|
82
|
+
|
|
83
|
+
## Multi-agent coordination
|
|
84
|
+
|
|
85
|
+
If you use both OpenClaw and a coding agent (Claude Code, Cursor, etc.) on the same project, brainclaw coordinates between them:
|
|
86
|
+
|
|
87
|
+
- OpenClaw records a constraint → Claude Code sees it at next session
|
|
88
|
+
- Claude Code claims a file scope → OpenClaw knows not to edit there
|
|
89
|
+
- Either agent creates a plan → both see it in their context
|
|
90
|
+
|
|
91
|
+
## Profile
|
|
92
|
+
|
|
93
|
+
When loading context for OpenClaw, use the `openclaw` profile for optimized scoring:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
brainclaw context --profile openclaw
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
This boosts constraints, handoffs, and runtime notes — the items most relevant to an agent that might not be editing code directly but needs to understand the project state.
|
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
# OpenCode Integration
|
|
2
|
-
|
|
3
|
-
brainclaw integrates with OpenCode through MCP tools and AGENTS.md, providing shared memory, plans, claims, and multi-agent coordination.
|
|
4
|
-
|
|
5
|
-
## Auto-setup
|
|
6
|
-
|
|
7
|
-
`brainclaw init` detects OpenCode and writes `AGENTS.md` automatically. Or manually:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
brainclaw export --format agents-md --write
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## MCP configuration
|
|
14
|
-
|
|
15
|
-
OpenCode reads MCP servers from `opencode.json` at the project root, or `~/.config/opencode/opencode.json` globally:
|
|
16
|
-
|
|
17
|
-
```json
|
|
18
|
-
{
|
|
19
|
-
"mcp": {
|
|
20
|
-
"brainclaw": {
|
|
21
|
-
"type": "stdio",
|
|
22
|
-
"command": "npx",
|
|
23
|
-
"args": ["-y", "brainclaw@latest", "mcp"]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
## Permissions
|
|
30
|
-
|
|
31
|
-
OpenCode uses a per-tool permission map with `allow`, `ask`, or `deny` values:
|
|
32
|
-
|
|
33
|
-
```json
|
|
34
|
-
{
|
|
35
|
-
"mcp": {
|
|
36
|
-
"brainclaw": {
|
|
37
|
-
"type": "stdio",
|
|
38
|
-
"command": "npx",
|
|
39
|
-
"args": ["-y", "brainclaw@latest", "mcp"],
|
|
40
|
-
"permissions": {
|
|
41
|
-
"bclaw_context": "allow",
|
|
42
|
-
"bclaw_work": "allow",
|
|
43
|
-
"bclaw_find": "allow",
|
|
44
|
-
"bclaw_get": "allow"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
brainclaw does not yet emit OpenCode permissions automatically.
|
|
52
|
-
|
|
53
|
-
## Instruction files
|
|
54
|
-
|
|
55
|
-
OpenCode reads `AGENTS.md` at the project root — the same file used by Codex. brainclaw writes this during `init` or `export`.
|
|
56
|
-
|
|
57
|
-
## SKILL.md discovery
|
|
58
|
-
|
|
59
|
-
OpenCode auto-discovers skills from `.opencode/skills/`, `.claude/skills/`, and `.agents/skills/`. A single `.agents/skills/brainclaw/SKILL.md` is picked up automatically.
|
|
60
|
-
|
|
61
|
-
## Headless invocation
|
|
62
|
-
|
|
63
|
-
```bash
|
|
64
|
-
opencode run /path/to/project
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
OpenCode also supports `serve` (HTTP API) and `web` (browser UI) modes.
|
|
68
|
-
|
|
69
|
-
## Invoke template
|
|
70
|
-
|
|
71
|
-
```bash
|
|
72
|
-
opencode /path/to/project
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Subagents
|
|
76
|
-
|
|
77
|
-
OpenCode supports native subagents via `mode: subagent` and `@mention` syntax, with per-agent permissions. These are separate from brainclaw's coordination — brainclaw operates above them.
|
|
78
|
-
|
|
79
|
-
## Caveats
|
|
80
|
-
|
|
81
|
-
- **No hooks**: OpenCode has a plugin system (JS/TS) but it is not compatible with Claude Code hook format. No pre-prompt injection.
|
|
82
|
-
- **No auto-approve writer**: brainclaw does not emit OpenCode `permissions` blocks yet — configure manually for headless.
|
|
83
|
-
- **`external_directory` deny**: OpenCode may deny file access outside the project root by default. Ensure brainclaw's store path (`.brainclaw/`) is within the project.
|
|
84
|
-
- **Windows**: Requires Node.js on PATH. Works on Windows, Linux, and macOS.
|
|
1
|
+
# OpenCode Integration
|
|
2
|
+
|
|
3
|
+
brainclaw integrates with OpenCode through MCP tools and AGENTS.md, providing shared memory, plans, claims, and multi-agent coordination.
|
|
4
|
+
|
|
5
|
+
## Auto-setup
|
|
6
|
+
|
|
7
|
+
`brainclaw init` detects OpenCode and writes `AGENTS.md` automatically. Or manually:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
brainclaw export --format agents-md --write
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## MCP configuration
|
|
14
|
+
|
|
15
|
+
OpenCode reads MCP servers from `opencode.json` at the project root, or `~/.config/opencode/opencode.json` globally:
|
|
16
|
+
|
|
17
|
+
```json
|
|
18
|
+
{
|
|
19
|
+
"mcp": {
|
|
20
|
+
"brainclaw": {
|
|
21
|
+
"type": "stdio",
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["-y", "brainclaw@latest", "mcp"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Permissions
|
|
30
|
+
|
|
31
|
+
OpenCode uses a per-tool permission map with `allow`, `ask`, or `deny` values:
|
|
32
|
+
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"mcp": {
|
|
36
|
+
"brainclaw": {
|
|
37
|
+
"type": "stdio",
|
|
38
|
+
"command": "npx",
|
|
39
|
+
"args": ["-y", "brainclaw@latest", "mcp"],
|
|
40
|
+
"permissions": {
|
|
41
|
+
"bclaw_context": "allow",
|
|
42
|
+
"bclaw_work": "allow",
|
|
43
|
+
"bclaw_find": "allow",
|
|
44
|
+
"bclaw_get": "allow"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
brainclaw does not yet emit OpenCode permissions automatically.
|
|
52
|
+
|
|
53
|
+
## Instruction files
|
|
54
|
+
|
|
55
|
+
OpenCode reads `AGENTS.md` at the project root — the same file used by Codex. brainclaw writes this during `init` or `export`.
|
|
56
|
+
|
|
57
|
+
## SKILL.md discovery
|
|
58
|
+
|
|
59
|
+
OpenCode auto-discovers skills from `.opencode/skills/`, `.claude/skills/`, and `.agents/skills/`. A single `.agents/skills/brainclaw/SKILL.md` is picked up automatically.
|
|
60
|
+
|
|
61
|
+
## Headless invocation
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
opencode run /path/to/project
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
OpenCode also supports `serve` (HTTP API) and `web` (browser UI) modes.
|
|
68
|
+
|
|
69
|
+
## Invoke template
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
opencode /path/to/project
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Subagents
|
|
76
|
+
|
|
77
|
+
OpenCode supports native subagents via `mode: subagent` and `@mention` syntax, with per-agent permissions. These are separate from brainclaw's coordination — brainclaw operates above them.
|
|
78
|
+
|
|
79
|
+
## Caveats
|
|
80
|
+
|
|
81
|
+
- **No hooks**: OpenCode has a plugin system (JS/TS) but it is not compatible with Claude Code hook format. No pre-prompt injection.
|
|
82
|
+
- **No auto-approve writer**: brainclaw does not emit OpenCode `permissions` blocks yet — configure manually for headless.
|
|
83
|
+
- **`external_directory` deny**: OpenCode may deny file access outside the project root by default. Ensure brainclaw's store path (`.brainclaw/`) is within the project.
|
|
84
|
+
- **Windows**: Requires Node.js on PATH. Works on Windows, Linux, and macOS.
|