Claude Code first session: a plan, edit, review loop

Run a first Claude Code session: install, confirm the project and permission mode, plan, make one change, test, inspect the diff, commit safely, and resume later. Commands checked on 2026-11-25.

Updated · Markdown version

Claude Code's terminal interface reads the project you start it in and can edit files or run commands subject to the active permission mode. A good first session is a short loop of orienting, planning, making one small change, testing, and reviewing before anything is committed.

Before you start

Install Claude Code first by following the install guide, then confirm the claude command runs in a new shell. This guide starts where the install ends.

Start the session

  1. Change into the project root with cd, then run claude. Subscription and Console users normally follow the browser authentication prompts on first use. If ANTHROPIC_API_KEY is already set and you approve its use, Claude Code skips that login prompt.
  2. Confirm the working directory shown above the prompt is the intended project, check the active permission mode, and type /help to see the commands available in the session.

The first hour: plan, edit, review

  1. Orient. Ask "give me an overview of this codebase," then narrow to the area you will change, such as "how is authentication handled?"
  2. Plan before editing. Press Shift+Tab until the status bar shows ⏸ plan mode on, or start the session with claude --permission-mode plan. Ask for the plan, read it, and request changes until it matches what you want.
  3. Make one small change. Use the mode selector or Shift+Tab to leave Plan mode, verify which mode is now active, and request one change, such as "add input validation to the registration form." Whether an edit prompts depends on that mode and existing permission rules.
  4. Test. Ask Claude to run the relevant tests. If no test exists, request one for the behavior you care about. If a required test still fails, stop the commit step and preserve the output for debugging rather than treating the task as complete.
  5. Review and commit. Ask "what files have I changed?" and "review my changes and suggest improvements." Then inspect the actual diff and staged file list yourself and confirm the required tests passed. If any file, generated artifact, secret, or failure is unexpected, stop before committing. Only after those checks should you request a descriptive commit.
  6. Save your place. /clear starts a new conversation, and /resume returns to an earlier one. Outside the session, claude --continue picks up the latest conversation in the same directory.

Check that it worked: the startup prompt shows the version, model, and working directory, so confirm that directory is your project. Run git status and inspect the diff in a second terminal, comparing both with Claude's report. Confirm the test command and its result appear in the transcript. Success means the intended files changed and required tests passed; unexpected files or a nonzero test result mean stop before commit.

Pitfalls

  • Wrong starting folder. Claude works from the directory where you launched it. If you started it in your home folder, every file search runs there too. Restart from the project root.
  • Bash-style commands on Windows without Git for Windows. A failed command that looks correct is often a shell mismatch. Install Git for Windows, or say in the prompt which shell to use.
  • Stale installs. Homebrew and WinGet installs do not update themselves. Run brew upgrade claude-code or winget upgrade Anthropic.ClaudeCode periodically.
  • Large unplanned edits. A broad prompt can touch many files at once. If the change list is longer than you expected, stop, go back to plan mode, and split the task into smaller prompts.
  • Expecting memory to hold everything. Put standing rules in CLAUDE.md, which loads every session. Auto memory reads only the first 200 lines or 25KB of its MEMORY.md, so long notes past that point may not be seen.

When to use a skill instead

A skill can package repeatable guidance, but it does not guarantee the result or replace Plan mode, permission controls, tests, or human diff review. The catalogue associates spec-driven-build with implementing written specifications, reviewing-code-changes with review requests, and systematic-debugging with uncertain or flaky failures. The first and third have only provisional three-task, single-run LIFT records dated 2026-11-21; the review skill has no supplied efficacy evidence.

FAQ

What is Claude Code?

It is a coding assistant available through a command-line interface and other surfaces. In a terminal session it reads the project you start it in and can edit files or run commands; whether a call prompts, runs automatically, or is denied depends on the permission mode and rules. The quickstart describes it as a way to explore a codebase and make a first change.

Is Claude Code free?

The quickstart says it requires a Claude subscription, a Claude Console account with prepaid credits, or access through a supported cloud provider. Check current plan details on the pricing page, since prices and limits change.

How do I continue yesterday's session?

Run claude --continue from the same directory to resume its most recent conversation, or claude --resume to choose from a list. If that directory has no conversation to continue, claude --continue prints No conversation found to continue and exits.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Next steps

  1. CLAUDE.md examples: four stack templates, rules, imports Read next.
  2. Install Claude Code: Native, Homebrew, WinGet, or npm Read next.
  3. Claude Code compatibility Install evidence per tool.
  4. All guides by topic Browse everything.

Sources