mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 07:03:25 +00:00
docs(coding-agent): fix context compaction documentation
- Correctly describe cut point mechanism that keeps recent messages verbatim - Document keepRecentTokens setting (default 20k) - Fix reserveTokens default (16k not 20k) - Explain summary chaining for multiple compactions
This commit is contained in:
parent
a57768b91b
commit
0c460fcfe8
2 changed files with 15 additions and 9 deletions
|
|
@ -4,10 +4,11 @@
|
|||
|
||||
### Added
|
||||
|
||||
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving conversation history. ([#92](https://github.com/badlogic/pi-mono/issues/92))
|
||||
- **Context Compaction**: Long sessions can now be compacted to reduce context usage while preserving recent conversation history. ([#92](https://github.com/badlogic/pi-mono/issues/92))
|
||||
- `/compact [instructions]`: Manually compact context with optional custom instructions for the summary
|
||||
- `/autocompact`: Toggle automatic compaction when context exceeds threshold
|
||||
- Auto-compaction triggers when context reaches `contextWindow - reserveTokens` (default 20k reserve)
|
||||
- Compaction summarizes older messages while keeping recent messages (default 20k tokens) verbatim
|
||||
- Auto-compaction triggers when context reaches `contextWindow - reserveTokens` (default 16k reserve)
|
||||
- Compacted sessions show a collapsible summary in the TUI (toggle with `o` key)
|
||||
- HTML exports include compaction summaries as collapsible sections
|
||||
- RPC mode supports `{"type":"compact"}` command and auto-compaction (emits compaction events)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue