Feature request: Configurable autocompact buffer size
Resolved 💬 3 comments Opened Dec 26, 2025 by connorholly11 Closed Dec 30, 2025
Summary
Make the autocompact buffer size configurable instead of fixed at ~45k tokens (22.5% of context).
Use Case
Power users running long sessions who understand the tradeoff between buffer size and context preservation. A smaller buffer (e.g., 10k tokens) would provide more working space at the cost of more aggressive compaction.
Suggested Implementation
- Add a setting in
/configlike "Autocompact buffer tokens" or a percentage slider - Or expose via
settings.jsonasautocompactBufferTokensorautocompactBufferPercent
Current Behavior
- Fixed 45k token buffer (~22.5% of 200k context)
- Cannot be adjusted by users
Desired Behavior
- User-configurable buffer size (absolute tokens or percentage)
- Default can remain at 45k for safety, but allow reduction for those who want it
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗