Part of #68. Target branch: V1. Depends on #74.
Scope
With cycles broken, extract the four core crates.
cc-engine ← src/engine/ + src/engine/agent/ (15+3 files, ~5,200 LOC)
cc-query ← src/query/ (7 files, 2,273 LOC)
cc-tools ← src/tools/ minus agent (44 files, ~16,800 LOC) — biggest single crate
cc-lsp-service ← src/lsp_service/ (5 files, 2,419 LOC)
Special considerations
cc-tools is the largest crate. If its incremental build is still slow post-extraction, sub-split into:
cc-tools-fs (FileRead/Write/Edit/Glob/Grep)
cc-tools-exec (Bash)
cc-tools-web (WebSearch/WebFetch)
cc-tools-misc (everything else)
- Defer the sub-split unless Phase 7 measurements show it's a bottleneck.
Acceptance
Part of #68. Target branch:
V1. Depends on #74.Scope
With cycles broken, extract the four core crates.
cc-engine←src/engine/+src/engine/agent/(15+3 files, ~5,200 LOC)cc-query←src/query/(7 files, 2,273 LOC)cc-tools←src/tools/minus agent (44 files, ~16,800 LOC) — biggest single cratecc-lsp-service←src/lsp_service/(5 files, 2,419 LOC)Special considerations
cc-toolsis the largest crate. If its incremental build is still slow post-extraction, sub-split into:cc-tools-fs(FileRead/Write/Edit/Glob/Grep)cc-tools-exec(Bash)cc-tools-web(WebSearch/WebFetch)cc-tools-misc(everything else)Acceptance
cc-tools/src/tools/file_read.rsrebuildscc-tools+claude-code-rsonly (check with-Zbuild-planorcargo build -v)