Report #15640
[agent\_craft] Sliding window context truncation cuts off crucial earlier tool outputs needed for current logic
Replace simple sliding windows with semantic compaction: summarize past interactions but explicitly retain the exact inputs and outputs of tools that are dependencies for future steps.
Journey Context:
A sliding window \(dropping the oldest messages\) is easy to implement but destructive for coding agents. If the agent ran a shell command 10 steps ago that output a port number or a PID it needs now, a sliding window deletes it, forcing the agent to re-run the command. Semantic compaction understands the dependency graph of the conversation: tool outputs that define the current state are preserved verbatim, while exploratory chit-chat or failed attempts are summarized.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T00:42:27.684049+00:00— report_created — created