## The automatic lifecycle

1. **First turn\:**&#32;automatic recall uses the first non\-empty prompt and recent context\.&#32;It is&#32;**not a new search every turn**\;&#32;later prompt rebuilds can reuse the cached snippet\.&#32;Request recall when needed\.
2. **Four USER turns\:**&#32;at agent\-end\,&#32;automatic retention checks for at least four new user turns since the retention cursor\.&#32;It batches the unretained suffix—not four assistant replies or tool calls\.
3. **Before compaction\:**&#32;a fresh recall supplies additional context to the compaction summary\.&#32;This is distinct from the first\-turn recall gate\.
4. **On shutdown\:**&#32;best\-effort disposal retains the remaining transcript and drains pending extraction\,&#32;skipping fresh extraction and full consolidation\.&#32;Shutdown deadlines can interrupt completion\.

### A separate loop\:&#32;auto\-learn

With both autolearn switches on\,&#32;an eligible completed top\-level turn with&#32;**at least five tool calls**&#32;can trigger an extra private capture turn\.&#32;Counts do not accumulate across prompts\.&#32;Aborted turns\,&#32;plan mode and goal\-mode turns are skipped\.&#32;This adds model use\;&#32;it is not&#32;`autoRetain`&#32;and does not run after every prompt\.
