|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## v2.1 - Architecture Fix (2026-03-05) |
| 4 | + |
| 5 | +### Fixed |
| 6 | +- **Critical**: Removed subagent calls from worker role-specs |
| 7 | +- Workers now correctly use CLI tools instead of attempting Agent() spawn |
| 8 | +- Removed subagents directory (workers cannot use it) |
| 9 | +- Updated SKILL.md to clarify architectural constraints |
| 10 | + |
| 11 | +### Changed |
| 12 | +- Multi-perspective critique: Now uses parallel CLI calls |
| 13 | +- Codebase exploration: Now uses `ccw cli --tool gemini` |
| 14 | +- Document generation: Now uses `ccw cli --tool gemini --mode write` |
| 15 | + |
| 16 | +### Impact |
| 17 | +- No functional change for users |
| 18 | +- Implementation now architecturally correct |
| 19 | +- Workers will no longer fail with "Unknown skill: Agent" |
| 20 | + |
| 21 | +### Files Modified |
| 22 | +- `SKILL.md`: Replaced "Subagent Registry" with "CLI Tool Usage in Workers" |
| 23 | +- `role-specs/analyst.md`: Removed `subagents: [discuss]`, replaced discuss subagent call with parallel CLI calls |
| 24 | +- `role-specs/writer.md`: Removed `subagents: [discuss]`, replaced discuss subagent call with parallel CLI calls |
| 25 | +- `role-specs/reviewer.md`: Removed `subagents: [discuss]`, replaced discuss subagent call with parallel CLI calls |
| 26 | +- `role-specs/planner.md`: Updated complexity routing table to reference CLI exploration |
| 27 | +- `role-specs/architect.md`: Removed `subagents: [explore]` |
| 28 | +- `subagents/`: Directory removed |
| 29 | + |
| 30 | +### Technical Details |
| 31 | + |
| 32 | +**Why Workers Cannot Spawn Subagents**: |
| 33 | +When a worker attempts `Agent()`, it fails with "Unknown skill: Agent". Only the Coordinator (main conversation context) can spawn agents. |
| 34 | + |
| 35 | +**Worker Capabilities**: |
| 36 | +- ✅ Built-in tools: Read, Write, Edit, Bash, Grep, Glob |
| 37 | +- ✅ CLI tools: `ccw cli --tool gemini/codex/qwen` |
| 38 | +- ❌ Agent spawn: Cannot call `Agent()` to spawn subagents |
| 39 | + |
| 40 | +**Multi-Perspective Critique Implementation**: |
| 41 | +Workers now use parallel CLI calls with `run_in_background: true`: |
| 42 | +```bash |
| 43 | +Bash(`ccw cli -p "..." --tool gemini --mode analysis`, { run_in_background: true }) |
| 44 | +Bash(`ccw cli -p "..." --tool codex --mode analysis`, { run_in_background: true }) |
| 45 | +Bash(`ccw cli -p "..." --tool claude --mode analysis`, { run_in_background: true }) |
| 46 | +``` |
0 commit comments