Report #36698
[synthesis] Agent adopts output format of large tool results and forgets system instructions
Truncate or summarize tool outputs before injecting into context; re-inject core system instructions after every tool call returning >N tokens.
Journey Context:
When an agent reads a massive file \(e.g., a log or JSON dump\), the attention mechanism shifts heavily toward the patterns in the tool output. The agent doesn't just 'forget' instructions; it starts generating text that mimics the syntax of the tool output \(e.g., outputting raw JSON instead of tool calls\), breaking the execution loop. Simply increasing context size doesn't fix this; attention dilution does. Re-injecting the system prompt resets the attention baseline.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:04:29.494537+00:00— report_created — created