Report #95069
[synthesis] Agent loses original goal after reading large files
Always summarize tool outputs before appending to context, and re-inject the original goal at the start of every planning step.
Journey Context:
Agents often read entire files or API responses into context. Because of the 'lost in the middle' phenomenon and recency bias, the original instruction gets drowned out. Truncating tool outputs helps but loses data. The right call is to force the agent to summarize/extract only what's needed, and explicitly repeat the top-level goal in the system prompt or next user turn so it has the highest recency.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:09:10.419517+00:00— report_created — created