Session

A session in Claude Code is a saved conversation tied to the project folder where you started it. Claude Code saves it on your computer as you work, so you can pick it up again after closing the program, with claude --continue or claude --resume. A new session starts with an empty context, without the history of earlier conversations.

A conversation with Claude, with everything that was discussed in it. It stays saved even after you close Claude, so you can resume it later (for example with “claude -c”). A new session starts from zero.

You’ll also find it as: sessions

How it shows up in Claude Code

Every time you start claude, a session begins. The conversation is saved continuously under ~/.claude/projects/, separately for each project. When you come back you have several options: claude -c (--continue) reopens the most recent conversation in the current folder, claude -r (--resume) shows a list to choose from, and from inside a conversation you type /resume. With /rename you give the session a name so it’s easy to find later. When you resume a session, the full history, the model it used and its checkpoints come back, so /rewind still works.

Example

Yesterday you started the menu page for a café and named the session:

/rename cafe-menu

Today you open the terminal in the same folder and type:

claude --resume cafe-menu

Claude has all of yesterday’s discussion in front of it. You can simply ask “where were we?” without explaining the project again.

Common mistakes

  • Thinking /clear deletes the conversation. It empties the context and starts a new conversation, but the old one stays saved; you get it back with /resume.
  • Resuming from a different folder. claude --continue looks for the latest conversation in the current folder. Start it from the project folder.
  • One session for everything. A new task is better in a new session with a clean context. Things Claude must always know live in CLAUDE.md, not in the history.
  • Relying on sessions that are months old. By default, Claude Code deletes conversations after about 30 days.

Related terms and where you learn it

A session has its own context, uses tokens and can be summarized with /compact or emptied with /clear. For parallel work on the same project there is the worktree. You learn it in the lesson “How do you pick up a conversation from yesterday?” in module 04, The working method, step by step.

Source: Claude Code documentation: Manage sessions

How it appears in the course

A session is a conversation with Claude, with everything that was discussed in it. You can pick up yesterday’s conversation at any time.

How do you pick up a conversation from yesterday? · Module 04, The working method, step by step

In the desktop app: in a Local session in the Code tab, type /status. The “Claude Code” row shows you the version.

How to install it, step by step · Module 00, Installation and first steps · free

On the web, at claude.ai/code, there are two kinds of sessions (working conversations).

Where can you use Claude Code? · Module 00, Installation and first steps · free

Learn Claude Code from zero, in plain English

12 modules with 1–2 minute lessons, which you can also do on your phone. The first two modules are free.