Summary
Use Anthropic prompt caching when invoking claude -p in PLAN and REVIEW phases. The system prompt + Nexus instructions are identical across runs — caching cuts input token costs by ~90%.
Current State
planPhase() and reviewPhase() call runClaudePipe() with static system prompts
claude -p supports --cache-prompt flag
- No caching currently used
Plan
- Add
--cache-prompt flag to runClaudePipe() in src/integrations/claude-p/claude-pipe.ts
- Pass from
planPhase() and reviewPhase() in src/core/pipeline.ts
- Add
cache_prompt: true config in providers.anthropic section
- Update
src/config-schema.ts
Files
src/integrations/claude-p/claude-pipe.ts
src/core/pipeline.ts
config/config.yaml
src/config-schema.ts
Summary
Use Anthropic prompt caching when invoking
claude -pin PLAN and REVIEW phases. The system prompt + Nexus instructions are identical across runs — caching cuts input token costs by ~90%.Current State
planPhase()andreviewPhase()callrunClaudePipe()with static system promptsclaude -psupports--cache-promptflagPlan
--cache-promptflag torunClaudePipe()insrc/integrations/claude-p/claude-pipe.tsplanPhase()andreviewPhase()insrc/core/pipeline.tscache_prompt: trueconfig inproviders.anthropicsectionsrc/config-schema.tsFiles
src/integrations/claude-p/claude-pipe.tssrc/core/pipeline.tsconfig/config.yamlsrc/config-schema.ts