Clarify keepRecentTokens is configurable

This commit is contained in:
Mario Zechner 2025-12-24 12:51:41 +01:00
parent 51aa1339ef
commit 699702e366

View file

@ -184,7 +184,7 @@ The `before_compact` event lets you implement custom compaction strategies. Unde
**How default compaction works:**
When context exceeds the threshold, pi finds a "cut point" that keeps ~20k tokens of recent turns:
When context exceeds the threshold, pi finds a "cut point" that keeps recent turns (configurable via `settings.json` `compaction.keepRecentTokens`, default 20k):
```
Session entries (before compaction):