Threshold and precedence
Use the existing context-usage slider to choose the per-model threshold. The Rolls over by N% label includes the five-percentage-point force buffer: a 70% slider setting displays Rolls over by 75%. Automatic rollover is evaluated when sending and after a settled tool step. The displayed percentage is an upper bound; the hard request ceiling takes precedence if reached first. Rollover starts a fresh window without summarizing earlier messages. The transcript shows a Context window rollover divider; earlier messages remain on disk, in the UI, and in exports.- Manual
/compactand idle compaction still summarize normally. - Continuous compaction and effective RLM take precedence over rollover.
- Setting the usage threshold to 100% disables automatic rollover and its warning. Hard request-size checks still apply, including after settled tool steps: the turn can pause without queuing a rollover or discarding completed tool results.
session_historymust be allowed by the agent’s inherited tool policy and any caller restrictions. Built-in Exec, Plan, and Explore already allow it. Narrow custom agents can addsession_historyor a matching wildcard totools.add. If access is omitted or disabled, rollover pauses before sealing existing context instead of falling back to a lossy summary.
/compact retain their existing middleware behavior.
Keeping useful context
Once per window, a machine-authored warning asks the agent to write important context to the conventionalworkspace/context-notes.md file, up to 8 KiB, if the workspace is writable. This is an opportunity to preserve notes, not a guarantee that the agent writes them. While token-budget mode is active, Xum can preload the notes as an additional ninth memory, without replacing the normal eight or using their existing byte/token budgets. The extra excerpt is separately bounded to 8 KiB / 2,000 tokens, including formatting, and is not duplicated if already selected normally. This still requires Memory and Memory Hot Set; the experiment does not enable either. With token-budget mode inactive, notes follow the ordinary memory-selection rules.
The next window receives a model-only lead-in, not a summary. While the experiment is enabled, the agent can use session_history to list windows, search, or read earlier messages in the same workspace. Results are capped at 16 KiB per call, with scans bounded to 2 MiB, 500 rows, and 1 MiB per line. Large histories may require further bounded calls.
The newest manual /clear --soft is a privacy floor: the tool cannot retrieve messages before it. Manual reset behavior and edited-file carryover are unchanged. Turning the experiment off removes retrieval access without deleting old windows.