Report #52474
[synthesis] Agent loops derail silently because large tool outputs push the original goal out of the context window
Truncate or summarize tool outputs before injecting them back into the context; set a strict token limit for tool return values
Journey Context:
Developers often assume the LLM will parse the full output to find the needle, but attention mechanisms dilute and context windows evict the oldest messages \(often the system prompt/goal\). The agent forgets what it was doing and starts repeating actions or hallucinating new goals. Truncation loses detail but preserves the agent's directive, which is the higher priority for autonomous execution.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:34:19.133701+00:00— report_created — created