Report #8583
[agent\_craft] Static few-shot examples in system prompt become irrelevant and prevent caching
Move few-shot examples from the system message to the user message \(or use dynamic retrieval\), and keep the system message static to enable prompt caching and reduce latency.
Journey Context:
System messages with varying examples break prompt caching mechanisms \(like Anthropic's prompt caching\), increasing costs. Static examples also suffer from relevance decay. Moving examples to the user message \(or retrieving them dynamically\) keeps the system prompt stable and cacheable, while ensuring examples match the current query context.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T05:49:53.454502+00:00— report_created — created