Compress versus Clear Commands Explained | Generated by AI

Home 2026.05

Yes, that’s the right mental model:

The practical difference matters because /compress injects the summary as a system message so the model still “remembers” decisions, file paths, errors found, etc. /clear means the model knows nothing about prior turns.

One nuance: /compress isn’t free — it still costs tokens (the summary itself). If the conversation is short or the next task is truly unrelated, /clear is cheaper and cleaner. /compress shines when you’ve had a long multi-step session and want to continue without losing the thread.


Back Donate