promptgarten ๐ŸŒฑ
๐ŸŒ ES

Command reference ยท Claude Code

/clear

Starts a new conversation with an empty context; the previous one remains available via /resume.

Starts a new conversation with an empty context; the previous one remains available via /resume. With a name, the previous conversation is labeled accordingly in the /resume picker. To just free up context in an ongoing conversation, use /compact instead. Aliases: /reset, /new.

โœ… WHEN TO USE IT?

Start a new conversation on a completely different topic

/clear

Set aside the old conversation under a name

/clear bugfix-session

โ›” WHEN NOT TO?

Just freeing up context during ongoing work

/clear starts a brand-new conversation with empty context - per the docs, /compact is meant for simply freeing up context during ongoing work.

Better: /compact

SOURCES