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

> Canonical: https://skillalmanac.com/learn/claude-code-first-session-workflow | Updated: 2026-11-25 | Index status: index-eligible

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.

## Facts

- Checked 2026-11-25: Native installs update in the background, while Homebrew and WinGet installations require manual upgrades (https://code.claude.com/docs/en/quickstart)
- Checked 2026-11-25: On native Windows, Git for Windows is recommended for the Bash tool; without it Claude Code uses PowerShell (https://code.claude.com/docs/en/quickstart)
- Checked 2026-11-25: Shift+Tab cycles permission modes, and claude --permission-mode plan starts a Plan-mode session (https://code.claude.com/docs/en/common-workflows)
- Checked 2026-11-25: claude --continue resumes the most recent session in the current directory; claude --resume opens the session picker (https://code.claude.com/docs/en/common-workflows)
- Checked 2026-11-25: CLAUDE.md provides persistent instructions, while enabled auto memory loads up to the first 200 lines or 25KB of MEMORY.md (https://code.claude.com/docs/en/memory)

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](/learn/install-claude-code), 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](/skills/skill-almanac/spec-driven-build) with implementing written specifications, [reviewing-code-changes](/skills/skill-almanac/reviewing-code-changes) with review requests, and [systematic-debugging](/skills/skill-almanac/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.

## Related skills

- [spec-driven-build](https://skillalmanac.com/skills/skill-almanac/spec-driven-build.md): Platform Score 56/100 (provisional)
- [reviewing-code-changes](https://skillalmanac.com/skills/skill-almanac/reviewing-code-changes.md): Platform Score 47/100 (provisional)
- [systematic-debugging](https://skillalmanac.com/skills/skill-almanac/systematic-debugging.md): Platform Score 57/100 (provisional)

## Related guides

- [CLAUDE.md examples: four stack templates, rules, imports](https://skillalmanac.com/learn/claude-md-examples.md)
- [Install Claude Code: Native, Homebrew, WinGet, or npm](https://skillalmanac.com/learn/install-claude-code.md)
- [How to Use an AI Agent on a First Task You Can Check](https://skillalmanac.com/learn/how-to-use-an-ai-agent.md)
- [Cursor vs Claude Code: Editor or Terminal Workflow](https://skillalmanac.com/learn/cursor-vs-claude-code.md)
- [Claude Code git workflow: branches, commits and PRs](https://skillalmanac.com/learn/claude-code-git-workflow.md)
- [Claude Code Pricing: What Drives Cost and Plan Options](https://skillalmanac.com/learn/claude-code-pricing-explained.md)

## Sources

- https://code.claude.com/docs/en/quickstart
- https://code.claude.com/docs/en/common-workflows
- https://code.claude.com/docs/en/memory

Platform Scores report our assessment under a published method. They are not a safety guarantee.
