Report #13231
[agent\_craft] Agent drops recent tool outputs when hitting context limit, breaking the current task
Evict older, completed sub-task histories first, while preserving the current task's tool outputs and the overarching goal state in the window.
Journey Context:
Default sliding window or naive truncation often cuts off the exact output the agent needs to formulate its next step. A priority-based eviction strategy \(e.g., keep system prompt > current tool output > high-level plan > old observations\) prevents the agent from losing its short-term working memory. Without this, the agent gets stuck in loops re-requesting the same information.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:13:35.563841+00:00— report_created — created