compound-agent 1.2.7 → 1.2.9

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,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
 
10
10
  ## [Unreleased]
11
11
 
12
+ ## [1.2.9] - 2026-02-19
13
+
14
+ ### Added
15
+
16
+ - **`ca phase-check` command**: Manage LFG phase state with `init`, `status`, `clean`, and `gate <name>` subcommands. State persisted in `.claude/.ca-phase-state.json`.
17
+ - **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.
18
+ - **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.
19
+ - **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.
20
+ - **Phase state persistence**: `.claude/.ca-phase-state.json` stores LFG phase tracking data across hook invocations.
21
+ - **Failure state persistence**: `.claude/.ca-failure-state.json` persists PostToolUseFailure counters across process restarts.
22
+
23
+ ### Changed
24
+
25
+ - **`ca init`** now installs all 5 Claude Code hooks: SessionStart, PreCompact, UserPromptSubmit, PostToolUseFailure, PostToolUse (previously only SessionStart).
26
+ - **`ca setup claude`** now installs all 5 Claude Code hooks (previously only SessionStart).
27
+ - **`ca setup`** now installs the git pre-commit hook in addition to Claude Code hooks.
28
+
29
+ ### Removed
30
+
31
+ - **MCP server**: `compound-agent-mcp` binary and `@modelcontextprotocol/sdk` dependency removed. Use CLI commands instead.
32
+ - **`.mcp.json`**: Configuration file is no longer generated or needed.
33
+
12
34
  ## [1.2.7] - 2026-02-17
13
35
 
14
36
  ### Changed
@@ -505,7 +527,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
505
527
  - Vitest test suite
506
528
  - tsup build configuration
507
529
 
508
- [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...HEAD
530
+ [Unreleased]: https://github.com/Nathandela/learning_agent/compare/v1.2.9...HEAD
531
+ [1.2.9]: https://github.com/Nathandela/learning_agent/compare/v1.2.7...v1.2.9
509
532
  [1.2.7]: https://github.com/Nathandela/learning_agent/compare/v1.2.6...v1.2.7
510
533
  [1.2.6]: https://github.com/Nathandela/learning_agent/compare/v1.2.5...v1.2.6
511
534
  [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)
@@ -98,8 +99,8 @@ Then run `pnpm install`.
98
99
  |--------|----------|---------|
99
100
  | Create lessons store | `.claude/lessons/` | JSONL + cache directory |
100
101
  | 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 |
102
+ | Configure hooks | `.claude/settings.json` | SessionStart, PreCompact, UserPromptSubmit, PostToolUseFailure, PostToolUse hooks |
103
+ | Install git pre-commit hook | `.git/hooks/pre-commit` | Lesson capture reminder before commits |
103
104
  | Install workflow commands | `.claude/commands/compound/` | Slash commands for each phase |
104
105
  | Install agent definitions | `.claude/agents/compound/` | Specialized agent roles |
105
106
  | Install phase skills | `.claude/skills/compound/` | Process instructions per phase |
@@ -167,6 +168,7 @@ The CLI binary is `ca` (alias: `compound-agent`).
167
168
  | `ca import <file>` | Import items from JSONL file |
168
169
  | `ca prime` | Load workflow context (used by hooks) |
169
170
  | `ca verify-gates <epic-id>` | Verify review + compound tasks exist and are closed |
171
+ | `ca phase-check` | Manage LFG phase state (init/status/clean/gate) |
170
172
  | `ca audit` | Run audit checks against the codebase |
171
173
  | `ca rules check` | Run repository-defined rule checks |
172
174
  | `ca test-summary` | Run tests and output a compact summary |
@@ -187,7 +189,7 @@ Generated scripts detect three markers: `EPIC_COMPLETE` (success), `EPIC_FAILED`
187
189
 
188
190
  | Command | Description |
189
191
  |---------|-------------|
190
- | `ca setup` | One-shot setup (hooks + MCP + model) |
192
+ | `ca setup` | One-shot setup (hooks + git pre-commit + model) |
191
193
  | `ca setup --skip-model` | Setup without model download |
192
194
  | `ca setup --uninstall` | Remove all generated files |
193
195
  | `ca setup --update` | Regenerate files (preserves user customizations) |
@@ -197,16 +199,6 @@ Generated scripts detect three markers: `EPIC_COMPLETE` (success), `EPIC_FAILED`
197
199
  | `ca setup claude --uninstall` | Remove Claude hooks only |
198
200
  | `ca download-model` | Download the embedding model |
199
201
 
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
202
  ## Workflow Commands
211
203
 
212
204
  Installed to `.claude/commands/compound/` during setup. Invoked as slash commands in Claude Code.
@@ -326,7 +318,6 @@ pnpm lint # Type check + ESLint
326
318
  | Embeddings | node-llama-cpp + EmbeddingGemma-300M |
327
319
  | CLI | Commander.js |
328
320
  | Schema | Zod |
329
- | MCP | @modelcontextprotocol/sdk |
330
321
  | Issue Tracking | Beads (bd) |
331
322
 
332
323
  ## Documentation