/compact and /clear

/compact summarises the conversation to free up context; /clear starts fresh.

Also called: /clear, context full

Source
Claude

In plain English

Use /clear when you switch to an unrelated task, so old details don't confuse the new one. /compact can take a hint: /compact keep the deployment steps.

Example

The session got long, so I ran /compact and kept working with a summary.

Learn more

Related terms

Added 2026-11-30 · Last reviewed 2026-11-30