eca icon indicating copy to clipboard operation
eca copied to clipboard

Auto-compact

Open zikajk opened this issue 10 months ago • 3 comments

Allow auto-compact. I think it should be configurable on root level but can be overridden or only on model level (in %).

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.[/+]

zikajk avatar Jan 07 '26 18:01 zikajk

I believe we could have this with a default in 95% at least right otherwise in 100% one would not be able to run /compact

ericdallo avatar Jan 07 '26 22:01 ericdallo

Yes, default can be 95% but it should be configurable and auto-compact can be disabled.

zikajk avatar Jan 15 '26 13:01 zikajk

Done! Added autoCompactPercentage config with default of 85 (after checking claude and others, they use something like that).

For now the auto compaction check happens only after tool is called, I found a little bit hard to check in other places but after testing, it seems this is ok since tool calls are called all the time, LMK what you think

ericdallo avatar Jan 21 '26 18:01 ericdallo