Report #103625
[agent\_craft] Every turn re-pays full price for static project context
Mark stable prefix blocks—system prompt, tool schemas, project brief, file tree—with cache\_control: \{type: 'ephemeral'\} on Anthropic, and verify via cache\_read\_input\_tokens. Keep the volatile suffix \(latest user message, new tool results\) unmarked. Do not cache blocks under ~1K tokens.
Journey Context:
Prompt caching stores the KV state of a prefix so subsequent requests only process the new suffix. Without it, every tool call in a long session recomputes attention over the entire conversation. The tradeoff is a higher write cost on first use and a TTL; caching is profitable only when the same prefix survives multiple turns, which is exactly the case for project context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-11T04:42:44.484737+00:00— report_created — created