04 / 07
ENV · CLAUDE_CODE_COORDINATOR_MODE=1
Coordinator
多 Agent 编排器
主 Claude 变成纯编排者，所有实际工作交给 Worker
ARCHITECTURE
Coordinator（只有 3 个工具：Agent · SendMessage · TaskStop）
↓ ↓ ↓
Worker 1
Research
Worker 2
Implement
Worker 3
Verify
FOUR-PHASE WORKFLOW
Phase 1
Research
Phase 2
Synthesis
Phase 3
Implement
Phase 4
Verify
CORE PRINCIPLE
"先理解再委派" — 禁止写 "based on your findings"
// BAD - 把理解委派给 Worker
Agent({ prompt: "Based on your findings, fix it" })
// GOOD - Coordinator 先理解，再精确指派
Agent({ prompt: "Fix null pointer in
src/auth/validate.ts:42..." })
SCRATCHPAD
Workers 共享 /tmp/claude-{uid}/scratchpad/
无需权限提示，自由读写中间结果