compound-agent 1.2.8 → 1.2.10

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/CHANGELOG.md CHANGED
@@ -9,6 +9,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.2.10] - 2026-02-19
13
+
14
+ ### Fixed
15
+
16
+ - **pnpm native build auto-configuration**: `ca setup` and `ca init` now detect pnpm projects (via `pnpm-lock.yaml`) and automatically add `better-sqlite3` and `node-llama-cpp` to `pnpm.onlyBuiltDependencies` in the consumer's `package.json`. Prevents the "better-sqlite3 failed to load" error that pnpm v9+ users encountered when native addon builds were silently blocked.
17
+ - **Improved error message**: `better-sqlite3` load failure now suggests running `npx ca setup` as the primary fix.
18
+
19
+ ## [1.2.9] - 2026-02-19
20
+
21
+ ### Added
22
+
23
+ - **`ca phase-check` command**: Manage LFG phase state with `init`, `status`, `clean`, and `gate <name>` subcommands. State persisted in `.claude/.ca-phase-state.json`.
24
+ - **PreToolUse phase guard hook** (`ca hooks run phase-guard`): Warns when Edit or Write tools are used before the current phase's skill file has been read.
25
+ - **PostToolUse read tracker hook** (`ca hooks run read-tracker`): Tracks skill file reads in `.ca-phase-state.json` so the phase guard can verify compliance.
26
+ - **Stop audit hook** (`ca hooks run stop-audit`): Blocks Claude from stopping if no phase gate has been passed when `stop_hook_active` is set in phase state.
27
+ - **Phase state persistence**: `.claude/.ca-phase-state.json` stores LFG phase tracking data across hook invocations.
28
+ - **Failure state persistence**: `.claude/.ca-failure-state.json` persists PostToolUseFailure counters across process restarts.
29
+
30
+ ### Changed
31
+
32
+ - **`ca init`** now installs all 5 Claude Code hooks: SessionStart, PreCompact, UserPromptSubmit, PostToolUseFailure, PostToolUse (previously only SessionStart).
33
+ - **`ca setup claude`** now installs all 5 Claude Code hooks (previously only SessionStart).
34
+ - **`ca setup`** now installs the git pre-commit hook in addition to Claude Code hooks.
35
+
36
+ ### Removed
37
+
38
+ - **MCP server**: `compound-agent-mcp` binary and `@modelcontextprotocol/sdk` dependency removed. Use CLI commands instead.
39
+ - **`.mcp.json`**: Configuration file is no longer generated or needed.
40
+
12
41
  ## [1.2.7] - 2026-02-17
13
42
 
14
43
  ### Changed
@@ -505,7 +534,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
505
534
  - Vitest test suite
506
535
  - tsup build configuration
507
536
 
508
- [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...HEAD
537
+ [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.10...HEAD
538
+ [1.2.10]: https://github.com/Nathandela/learning_agent/compare/v1.2.9...v1.2.10
539
+ [1.2.9]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...v1.2.9
509
540
  [1.2.7]: https://github.com/Nathandela/learning_agent/compare/v1.2.6...v1.2.7
510
541
  [1.2.6]: https://github.com/Nathandela/learning_agent/compare/v1.2.5...v1.2.6
511
542
  [1.2.5]: https://github.com/Nathandela/learning_agent/compare/v1.2.4...v1.2.5
package/README.md CHANGED
@@ -28,10 +28,11 @@ LAYER 1: BEADS (Foundation)
28
28
 
29
29
  ```
30
30
  project_root/
31
- +-- .mcp.json <- MCP server config
32
31
  +-- AGENTS.md <- Workflow instructions for Claude
33
32
  +-- .claude/
34
33
  +-- settings.json <- Claude Code hooks
34
+ +-- .ca-phase-state.json <- LFG phase tracking (generated)
35
+ +-- .ca-failure-state.json <- Hook failure counters (generated)
35
36
  +-- lessons/
36
37
  | +-- index.jsonl <- Source of truth (git-tracked)
37
38
  | +-- archive/ <- Compacted old items
@@ -65,7 +66,7 @@ Every cycle through the loop makes subsequent cycles smarter. A bug found in rev
65
66
  # Install as dev dependency
66
67
  pnpm add -D compound-agent
67
68
 
68
- # One-shot setup (creates dirs, hooks, MCP server, downloads model)
69
+ # One-shot setup (creates dirs, hooks, downloads model)
69
70
  npx ca setup
70
71
 
71
72
  # Skip the ~278MB model download (do it later)
@@ -80,7 +81,9 @@ npx ca setup --skip-model
80
81
 
81
82
  ### pnpm Users
82
83
 
83
- pnpm v9+ blocks native addon builds by default. Add to your `package.json`:
84
+ pnpm v9+ blocks native addon builds by default. Running `npx ca setup` automatically detects pnpm and adds the required config to your `package.json`.
85
+
86
+ If you prefer to configure manually, add to your `package.json`:
84
87
 
85
88
  ```json
86
89
  {
@@ -98,8 +101,8 @@ Then run `pnpm install`.
98
101
  |--------|----------|---------|
99
102
  | Create lessons store | `.claude/lessons/` | JSONL + cache directory |
100
103
  | Install AGENTS.md | project root | Workflow instructions for Claude |
101
- | Configure hooks | `.claude/settings.json` | SessionStart, PreCompact, UserPromptSubmit, PostToolUse hooks |
102
- | Register MCP server | `.mcp.json` | `memory_search`, `memory_capture` tools |
104
+ | Configure hooks | `.claude/settings.json` | SessionStart, PreCompact, UserPromptSubmit, PostToolUseFailure, PostToolUse hooks |
105
+ | Install git pre-commit hook | `.git/hooks/pre-commit` | Lesson capture reminder before commits |
103
106
  | Install workflow commands | `.claude/commands/compound/` | Slash commands for each phase |
104
107
  | Install agent definitions | `.claude/agents/compound/` | Specialized agent roles |
105
108
  | Install phase skills | `.claude/skills/compound/` | Process instructions per phase |
@@ -167,6 +170,7 @@ The CLI binary is `ca` (alias: `compound-agent`).
167
170
  | `ca import <file>` | Import items from JSONL file |
168
171
  | `ca prime` | Load workflow context (used by hooks) |
169
172
  | `ca verify-gates <epic-id>` | Verify review + compound tasks exist and are closed |
173
+ | `ca phase-check` | Manage LFG phase state (init/status/clean/gate) |
170
174
  | `ca audit` | Run audit checks against the codebase |
171
175
  | `ca rules check` | Run repository-defined rule checks |
172
176
  | `ca test-summary` | Run tests and output a compact summary |
@@ -187,7 +191,7 @@ Generated scripts detect three markers: `EPIC_COMPLETE` (success), `EPIC_FAILED`
187
191
 
188
192
  | Command | Description |
189
193
  |---------|-------------|
190
- | `ca setup` | One-shot setup (hooks + MCP + model) |
194
+ | `ca setup` | One-shot setup (hooks + git pre-commit + model) |
191
195
  | `ca setup --skip-model` | Setup without model download |
192
196
  | `ca setup --uninstall` | Remove all generated files |
193
197
  | `ca setup --update` | Regenerate files (preserves user customizations) |
@@ -197,16 +201,6 @@ Generated scripts detect three markers: `EPIC_COMPLETE` (success), `EPIC_FAILED`
197
201
  | `ca setup claude --uninstall` | Remove Claude hooks only |
198
202
  | `ca download-model` | Download the embedding model |
199
203
 
200
- ## MCP Tools
201
-
202
- Compound Agent exposes three MCP endpoints. These are the primary interface for Claude -- preferred over CLI commands.
203
-
204
- | Endpoint | Type | Purpose |
205
- |----------|------|---------|
206
- | `memory_search` | Tool | Search memory items by semantic similarity. Supports `query`, `maxResults`, and `type` filter. |
207
- | `memory_capture` | Tool | Capture a new memory item. Accepts `insight`, `trigger`, `tags`, `type`, `severity`, `pattern`, and relationship fields. |
208
- | `memory://prime` | Resource | Workflow context with high-severity memory items for session start. |
209
-
210
204
  ## Workflow Commands
211
205
 
212
206
  Installed to `.claude/commands/compound/` during setup. Invoked as slash commands in Claude Code.
@@ -326,7 +320,6 @@ pnpm lint # Type check + ESLint
326
320
  | Embeddings | node-llama-cpp + EmbeddingGemma-300M |
327
321
  | CLI | Commander.js |
328
322
  | Schema | Zod |
329
- | MCP | @modelcontextprotocol/sdk |
330
323
  | Issue Tracking | Beads (bd) |
331
324
 
332
325
  ## Documentation