mirror of
https://github.com/JuliusBrussee/cavekit.git
synced 2026-09-14 16:32:40 +08:00
ff0bac1199
Fix two bugs that could break /ck:make under the quality preset: 1. Caveman mode was telling task-builder subagents to apply caveman-speak to their *reasoning*, which corrupted <tool_use> formatting — subagents emitted tool calls as body text and terminated with 0 tool_uses. Scope caveman to final prose output only (status reports, summaries). Reasoning, tool calls, tool arguments, code, commits, and structured fields are explicitly excluded. Fixed in make.md, task-builder.md, check.md, map.md. 2. Parallel ck:task-builder dispatch with isolation: "worktree" can hit a Claude-Code-harness worktree race, returning "[Tool result missing due to internal error]" with no agentId. Avoid the race by defaulting /ck:make to inline sequential execution: no subagent, no worktree, no merge. The parent session implements tasks directly on the current branch — the path the user confirmed works. New command /ck:make-parallel keeps the parallel-subagent path available as explicit opt-in. It forces TB_ISOLATION=worktree + MAX_PARALLEL=3 (tunable via --concurrency N) for a single run without touching config. Adds a one-time retry-on-harness-error rule: harness failures re-dispatch once sequentially, then mark BLOCKED. Config knob: task_builder_isolation (worktree/inline, default inline). parallelism defaults lowered: max_agents=1, max_per_repo=1. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>