Your current Pi settings
{
"compaction": {
"enabled": false,
"reserveTokens": 172000,
"keepRecentTokens": 100000
}
}
These are Pi core compaction settings. The custom extension uses the compaction event Pi prepares.
Manual /compact can still run even when enabled is false.
Important: setting keepRecentTokens to 0 does not mean “we keep everything.”
It means “keep almost no recent messages verbatim; summarize almost everything.” The full JSONL still exists on disk,
but the active continuation context would depend heavily on the summary.
What the levers imply
Auto trigger line228k
Would auto-trigger?No — disabled
Summarized on compact160k
Kept verbatim100k
Before compaction: current context vs response reserve260k / 400k
current
free
over
reserve
After compaction: summary + recent verbatim tail~104k active continuation context
summary
kept verbatim
available
enabled
false means Pi will not normally compact just because the context is near full. You can still run /compact manually.
reserveTokens
Raises or lowers the auto-trigger line: contextWindow - reserveTokens. Bigger reserve means earlier auto-compaction if auto is enabled.
keepRecentTokens
The green tail kept as original messages. 0 maximizes summarization and minimizes verbatim continuity.