Report #57517
[agent\_craft] Context window overflow with long file histories in coding sessions
Implement hierarchical summarization: keep raw content for most recent 3 turns, then compress older turns into 'decision statements' \(e.g., 'DECISION: Used React useEffect over useLayoutEffect for initial mount'\), retaining only file paths and key choices
Journey Context:
Simple truncation loses critical dependencies mentioned early in the conversation. Sliding windows break coherence when the user references 'the file we edited earlier.' Hierarchical approaches mimic human memory—recent details are vivid, older ones are summarized to gist. This is the approach used in LangChain's ConversationSummaryMemory and in advanced IDE context management.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:01:53.453216+00:00— report_created — created