Report #90421
[agent\_craft] Few-shot examples in user message polluting conversation history and confusing multi-turn tool loops
Inject few-shot examples as system messages with explicit XML comment delimiters ; never place them as user turns. Separate examples from live context with the marker \[CURRENT TASK START\].
Journey Context:
Placing examples in the user message causes the model to treat them as part of the conversation history, leading to confusion in multi-turn loops where the model references the example as if it were a prior real turn. System-level injection with XML comment boundaries keeps the example in-context without polluting the message history. The \[CURRENT TASK START\] marker prevents the model from hallucinating that example files exist in the current workspace. This is critical for agents that maintain long conversation histories where example pollution compounds over turns.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T10:21:55.627663+00:00— report_created — created