ع
Start Topics Teams Reference What's new Saved
Core

Running a session well

When do I clear the chat vs keep going?

Short answer

A session is one continuous conversation with Claude — everything it can still see. Start a new session for a new task. Use /compact when a long thread is getting forgetful but isn't finished, and /clear when you're moving on to something unrelated.

A session is the whole conversation Claude can still see: every message you’ve sent, every file it has opened, every command it has run and what came back. Claude has no recollection of what you did last Tuesday — it has this thread. That is why “keep going or start fresh?” is a real decision with real consequences, rather than a matter of tidiness.

Space in that thread isn’t free. Everything sitting in it competes for the model’s attention, so a long session that has wandered through three unrelated tasks tends to get vaguer, slower, and more expensive than a short one pointed at the job in front of you. The two tools for that are opposites in a useful way: /clear throws the thread away and starts over, and /compact summarizes it and keeps working on top of the summary. If you’re unsure which you want, the comparison below is the one to read first — the short version is that clearing is right when the next thing is genuinely new, and compacting is right when the thread is still relevant but has grown heavy.

On Desktop most of this is clicking rather than typing. Opening a new chat is a clear, and your past conversations are sitting in the sidebar, so you resume one by clicking it. The two terminal commands below — claude -c and claude -r — exist to do what the sidebar already does for you, and belong to the Power Track; you can safely ignore them unless you’re working from a terminal.

The habit worth building is small: a new task deserves a new session. Starting clean keeps the dead ends and irrelevant file reads of the last job from bleeding into the next one, and it costs you nothing but one click. And when a session produced something you want to keep — a decision, a diagnosis, a piece of reasoning worth sharing — /export writes the whole exchange out to a file or your clipboard before you clear it away.

Commonly confused with

Two things people mix up here, and the difference that actually matters.

Read more

How to do it

What you want On Desktop (no code) Command line (Power Track)
Start a new task cleanly Open a new chat, or clear the current one /clear
  • /clear Wipe the conversation and start with a clean context window.
  • /compact Summarize the conversation so far to free up room — keeping the gist.
  • claude -c Pick up your most recent conversation right where you left off.
  • claude -r Reopen an earlier conversation from a list of your recent sessions.
  • /export Save the current conversation to a file or your clipboard.