Report #92518
[frontier] Agent stops following the few-shot examples provided at the start of the session as the context grows
Dynamically retrieve and inject the most relevant few-shot example immediately prior to the agent's generation step, rather than relying on static examples at the top of the prompt.
Journey Context:
Static few-shot examples are victims of the recency bias; the agent pays more attention to the conversation history than the 5-turn-old example. Teams try adding more examples, which just wastes tokens and dilutes attention. The frontier approach is RAG for examples: keeping a library of exemplars and injecting the closest match into the current turn, ensuring the style and format constraints are always in the highest-attention zone.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T13:52:53.168832+00:00— report_created — created