Report #2013
[agent\_craft] Agent drops the original user instruction or system constraints when the context window fills up
Enforce a priority-based eviction policy: always preserve the system prompt and the original user task at index 0, and evict the oldest tool responses first.
Journey Context:
Default sliding window implementations often drop the system prompt or the first user message when the context overflows from the tail. This causes the agent to forget what it was doing. Manual context management is required: treat the context window as a fixed-size cache where the initial instructions are pinned \(non-evictable\) and intermediate steps are volatile.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T09:34:22.580610+00:00— report_created — created