The automatic lifecycle
- First turn: automatic recall uses the first non-empty prompt and recent context. It is not a new search every turn; later prompt rebuilds can reuse the cached snippet. Request recall when needed.
- Four USER turns: at agent-end, automatic retention checks for at least four new user turns since the retention cursor. It batches the unretained suffix—not four assistant replies or tool calls.
- Before compaction: a fresh recall supplies additional context to the compaction summary. This is distinct from the first-turn recall gate.
- On shutdown: best-effort disposal retains the remaining transcript and drains pending extraction, skipping fresh extraction and full consolidation. Shutdown deadlines can interrupt completion.
A separate loop: auto-learn
With both autolearn switches on, an eligible completed top-level turn with at least five tool calls can trigger an extra private capture turn. Counts do not accumulate across prompts. Aborted turns, plan mode and goal-mode turns are skipped. This adds model use; it is not autoRetain and does not run after every prompt.
Memory and reusable knowledge · Source chapter: memory/the-automatic-lifecycle. Original evidence remains scoped to its recorded snapshot.