Skip to content

Commit 7e8b40f

Browse files
docs(opencode): say where compaction is configured (pingdotgg#27614)
Co-authored-by: Claude Sonnet 5.5 <[email protected]>
1 parent 220bc7c commit 7e8b40f

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎docs/user/providers-opencode.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ started on 1.x continue on 2.x.
2222

2323
Plan mode uses OpenCode's `plan` agent.
2424

25+
## Compaction
26+
27+
OpenCode compacts long conversations itself, and T3 Code has no setting for it. On
28+
OpenCode 2, change it under `compaction` in an OpenCode configuration file, such as
29+
`opencode.json`: `auto` turns
30+
automatic compaction on or off, `buffer` sets the token headroom, and `keep.tokens`
31+
sets how much recent context stays. OpenCode 1.x configures compaction differently.
32+
Send `/compact` to compact a thread yourself.
33+
2534
## Local or external server
2635

2736
Leave **Server URL** empty to let T3 Code start OpenCode locally. A password in

0 commit comments

Comments
 (0)