II.
CompactionPolicy overview
Reference · livecompaction-policy:pi-coding-agent
pi-mono coding-agent branch + cumulative summarization overview
pi-mono compacts long sessions by extracting file operations from messages and previous compaction entries (CompactionDetails.readFiles / modifiedFiles) so subsequent turns retain awareness of which files were read and modified. Branch summaries (createBranchSummaryMessage) preserve forked context paths separately from the cumulative compaction summary (createCompactionSummaryMessage). Drives a smaller summarizer model via SUMMARIZATION_SYSTEM_PROMPT in completeSimple().
Attributes
displayName
pi-mono coding-agent branch + cumulative summarization
strategy
branch-summarization
trigger
token-threshold
preserveRecentTurns
4
preserveFileOperations
true
description
pi-mono compacts long sessions by extracting file operations from messages
and previous compaction entries (CompactionDetails.readFiles /
modifiedFiles) so subsequent turns retain awareness of which files were
read and modified. Branch summaries (createBranchSummaryMessage) preserve
forked context paths separately from the cumulative compaction summary
(createCompactionSummaryMessage). Drives a smaller summarizer model via
SUMMARIZATION_SYSTEM_PROMPT in completeSimple().
Outgoing edges
None.
Incoming edges
compaction_policy_applied_by1
- agent-runtime-impl:pi.runtime@current·AgentRuntimeImplPi Runtime (current)