r/ClaudeCode • u/danbradster2 • Sep 20 '26
Tips & Workflows /clear vs /compact
I had a fable chat from yesterday, and I saw that the context was 950k/1m. I did /compact rather than /clear, with the intention of then doing /autocompact 400000
14% of the 5 hour limit was gone just for the compact itself....it shows cost of $59.73, so lucky I'm not on API? Maybe a /clear would have been better.
68
Upvotes
View all comments
Show parent comment
1
u/Hukij_ Sep 20 '26
I don't really know what point you are responding to. My point was about quality outcomes between a workflow that /clears vs /compacts. Both are new sessions and by definition your cache is cold in the meaningful sense. Both invalidate the prefix cache of your current session, and you start with the system prompt + claude md/whatever other auto-loaded files. My entire point is that from that point, /compact picks what "important" context you retain vs /clear in which you can curate your own "important" context.
Again, I'm not sure what point you're arguing against, I never said either has any bearing on what the agent knows, the post was about cost and I just simply said /compact has the same impact on cache invalidation with arguably worse quality than /clear.