Session Compaction
Session compaction compresses conversation history into a summary, freeing context space for long conversations.
Manual Compaction
Use slash commands to compact on demand:
/compact
/summarizeAuto-Compaction
Pando automatically compacts when the context window fills up during an agent run:
AutoCompact = truePer-agent configuration:
[Agents.coder]
AutoCompact = false
AutoCompactThreshold = 0.0
[Agents.summarizer]
Model = 'ollama.qwopus:latest'How It Works
- The
Summarizemethod compresses conversation history - Messages before the summary are replaced by it
- The summary is stored as a special message boundary
- Context space is freed for new messages
Configuration
| Setting | Description |
|---|---|
AutoCompact | Global auto-compact toggle |
AutoCompactThreshold | Context usage threshold to trigger (0.0 = automatic) |
[Agents.summarizer].Model | Model used for summarization |
When to Use
- Long conversations approaching context limits
- After completing a major task and starting a new one
- When response quality degrades due to context noise
Compaction preserves the most important information while removing verbose tool outputs and intermediate steps. The summary captures key decisions, file changes, and progress.