Timestamp in system prompt breaks OpenRouter prompt caching

openrouter.ai10 min read

An analysis of AI agent token usage across a 40-step coding session reveals that prompt caching failures and inefficient context management dramatically increase costs. The author found that a single changing timestamp in the system prompt destroyed prompt caching and increased session costs by 7.8 times, while capping tool results once upon ingestion provided the most cost-effective approach. Open article →