mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
docs(coding-agent): add note that compaction should generally be avoided
This commit is contained in:
parent
0c460fcfe8
commit
18e9c17ae5
1 changed files with 2 additions and 0 deletions
|
|
@ -781,6 +781,8 @@ pi --session /path/to/my-session.jsonl
|
|||
|
||||
## Context Compaction
|
||||
|
||||
> **Note:** Compaction should generally be avoided as it is lossy. The agent loses access to the full session history after compaction. Try to size your tasks such that compaction will not be necessary.
|
||||
|
||||
Long sessions can exhaust the model's context window. Context compaction summarizes older conversation history while preserving recent messages, allowing sessions to continue indefinitely.
|
||||
|
||||
### How It Works
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue