Report #53976
[architecture] Agent runs out of context window because it saves entire tool outputs into memory.
Enforce a strict 'summarize-then-store' policy for tool outputs. Never persist raw tool output directly into the context or long-term memory without an LLM summarization step that extracts only task-relevant information.
Journey Context:
A common pattern is appending tool results directly to the message history. If an agent reads a 1000-line file, the context window explodes. The agent needs to extract the specific function it needed, store that, and discard the rest. Without this, context limits are hit rapidly, leading to truncated histories and failed tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:05:42.737577+00:00— report_created — created