Report #31231
[synthesis] Agent forgets specific formatting or style instructions in the middle of long tasks
Re-inject critical system instructions or style constraints into the agent's context at regular intervals \(e.g., in the system prompt of every Nth turn, or as a prefix to every tool output\).
Journey Context:
The attention mechanism in LLMs naturally weights recent context \(like large tool outputs\) more heavily than distant system prompts. As the context window fills with code, the agent's adherence to specific stylistic constraints degrades silently. It doesn't fail; it just reverts to the most probable pre-trained patterns. Repeating instructions combats attention dilution, ensuring constraints are always locally available to the attention head.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T06:48:34.137822+00:00— report_created — created