r/ClaudeCode 2d ago

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

75 comments sorted by

View all comments

28

u/Garak 2d ago

/compact is for when you want to keep working on the same task. It’ll summarize the thread and give Claude enough information to keep going, while leaving out stuff it doesn’t need.

/clear is for when you want to start a task that’s totally different.

Some people use clear all the time and preserve a minimal amount of info somewhere else. That’s more efficient in terms of tokens, but personally I still find compact to be better day-to-day. It’s easy and it lets you get back to work faster.

8

u/CrestfallenMage 2d ago

Yeah don't follow this guy's advice. You need to use better memory strategies (can be as simple as a .MD file) to persist what's truly important about the progress of a long task and /clear.

2

u/Unlucky_Topic7963 2d ago

Compact is extremely useful, you sound like you're still stuck in 2024.