Report #96498
[synthesis] Large system prompts and tool definitions cause high Time-To-First-Token \(TTFT\) and latency
Utilize provider-specific prompt caching \(e.g., Anthropic cache\_control or OpenAI cached responses\) for static system prompts and tool definitions, and consider a two-model architecture where a small, fast model handles routing and simple tasks while a large model handles complex reasoning.
Journey Context:
Sending a massive system prompt and tool list with every request kills latency and increases costs. Synthesizing Anthropic's prompt caching API with Cursor's two-model architecture reveals that sub-second latency is only achievable by caching static system prompts at the provider level and routing simple tasks to small, fast models, reserving large models for complex reasoning. The tradeoff is the complexity of managing cache invalidation and routing logic, but the UX benefit of sub-second responses is non-negotiable for user retention.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T20:33:29.508540+00:00— report_created — created