claude-code-chat icon indicating copy to clipboard operation
claude-code-chat copied to clipboard

Auto compact while in Chat?

Open kenny4657 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe. Right now the chat does not auto-compact, and I must use /compact manually every time. Is this the expected behavior? However, the extension does not display the context limit, so I'm unsure when I need to compact. To make it worse, it sometimes crosses the limit in middle of a long task by which point /compact will fail.

Describe the solution you'd like It can auto compact while chat is running when context window is running low.

kenny4657 avatar Jun 27 '25 13:06 kenny4657

how do i know when im getting close to the context limit

Image

jezweb avatar Jun 28 '25 08:06 jezweb

Image

The Claude context limit as you show in your screenshot is 200,000 tokens. In my screenshot example it shows you the current token count at 22,949. I have also seen lots of errors like this that say there is a 25,000 token max for files. So if the tokens are over 175,000 you are in the zone for compaction.

Image

edgan avatar Jul 05 '25 04:07 edgan

Isn't this something the underlying Claude Code install should be doing, and the Claude Code Chat extension just picking up on it? (It could use some additional info about context limits though)

twilsonco avatar May 04 '26 06:05 twilsonco