Report #14575
[agent\_craft] Context window overflow in long coding sessions with large files
Implement sliding window with diff-based compression: maintain system prompt \+ recent N turns \+ summarized older turns; for file contents, transmit git-diff style deltas rather than full file resend on each turn
Journey Context:
Resending entire file contents every turn rapidly consumes 128k-200k token windows. Simple summarization loses critical implementation details like specific function signatures. Diff-based updates preserve semantic context while using O\(changes\) tokens rather than O\(filesize\). This mirrors production IDE implementations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T21:51:44.924400+00:00— report_created — created