How to use Claude Code, in one line: install it with one terminal command, run claude inside your project, describe what you want in plain English, and review the plan and the diff before you accept the work. That's the whole loop. Everything else is making that loop faster and safer.
Claude Code is Anthropic's coding agent. Unlike a chat window, it works directly in your project. It reads your files, runs commands, edits code, and makes commits, and it asks before doing anything risky.
This guide covers the setup, the first session, the handful of controls worth knowing by heart, and the habits that separate a good session from a frustrating one.
The Short Answer
- Install it. One command on macOS, Linux, or Windows.
- Start it in your project.
cdinto the folder and typeclaude. - Ask before you change. Have Claude explain the code first.
- Plan, then build. Use plan mode for anything bigger than a small fix.
- Give it a check to run. Tests, a build, or a linter, so Claude knows when it's actually done.
- Review the diff. Then commit.
| Step | What you do | Why it matters |
|---|---|---|
| Install | Run the installer, then claude --version | Confirms it's on your machine |
| First session | cd your-project then claude | Claude Code works on the folder you start it in |
| Explore | "what does this project do?" | Claude learns the code before touching it |
| Plan | Shift+Tab to plan mode, or start a prompt with /plan | You approve the approach before any edits |
| Check | Tell it the test or build command | Claude can confirm its own work |
| Review | Read the diff, then commit | You stay in charge of what ships |

How to Install Claude Code
You need a terminal, a code project, and an account. Anthropic's quickstart lists a Claude subscription (Pro, Max, Team, or Enterprise among them), a Claude Console account with API credits, or access through a supported cloud provider.
On macOS, Linux, or WSL, Anthropic's recommended install is one line:
curl -fsSL https://claude.ai/install.sh | bashOn Windows PowerShell it's irm https://claude.ai/install.ps1 | iex. Homebrew (brew install --cask claude-code) and WinGet work too.
Open a new terminal and run claude --version. If it prints a version number, you're set. The native install updates itself in the background. Homebrew and WinGet installs don't, so you update those yourself (Claude Code docs, accessed Nov 9, 2026).
Prefer not to live in the terminal? Anthropic also ships Claude Code for VS Code, JetBrains, a desktop app, and the web. The habits below apply everywhere.
Your First Session
Go to your project and start it:
cd /path/to/your/project
claudeThe first time, Claude Code asks you to log in through your browser. After that it remembers you.
Start by asking, not changing. Good first prompts:
- "what does this project do?"
- "where is the main entry point?"
- "explain the folder structure"
Claude Code reads files as it needs them. You don't have to paste code in.
Then try a small change, like "add input validation to the signup form." Claude finds the right file, shows you the edit, and asks for approval if your permission mode requires it.
Be specific. "Fix the bug" gets you a guess. "Fix the login bug where users see a blank screen after entering the wrong password" gets you a fix. Name the file, the symptom, and what "fixed" looks like.
The Controls Worth Knowing by Heart
There aren't many. Learn these and you can steer almost any session.

Shift+Tabcycles permission modes. Anthropic's docs say new terminal sessions start in auto mode, where a separate safety check reviews risky actions before they run. PressShift+Tabto move through manual (you approve every edit and command), accept edits, and plan (permission modes).- Plan mode makes Claude research and propose a plan without editing your code. You approve it, or keep planning and tell Claude what to change. Use it for anything that touches more than a file or two.
Escstops Claude mid-action and keeps the work so far, so you can redirect./rewind(orEsctwice on an empty prompt) rolls the code, the conversation, or both back to an earlier point. That makes it cheap to try the bold approach first (checkpointing)./clearstarts fresh. Use it between unrelated tasks.claude -ccontinues your last conversation.claude -rpicks an older one.
Set Up CLAUDE.md (Keep It Short)
CLAUDE.md is a file in your project that Claude Code loads at the start of every session. Run /init and Claude writes a first version from your codebase. Then cut it down.
Anthropic's best practices are clear on what belongs there: only what Claude can't figure out by reading the code.
- The exact test, typecheck, and lint commands
- Code that's misleading, like an old pattern new code shouldn't copy
- Decisions that aren't written down, like how deploys work
- Anything you've corrected twice
Skip the architecture tour. Claude reads the repo itself. Anthropic's memory guide recommends keeping the file under 200 lines (memory docs). Personal preferences go in CLAUDE.local.md, which you keep out of git.
The Ask, Plan, Check, Review Loop
Most bad sessions fail the same way. Claude builds something you didn't mean, or says it's done when it isn't. A simple loop fixes both.

- Ask. Have Claude explain the relevant code first. You both start from the same picture.
- Plan. Switch to plan mode and read the plan like a design review. This is where wrong assumptions are cheapest to catch. We wrote a full guide on reviewing an AI agent's plan.
- Check. Give Claude something that passes or fails, like "run the auth tests and keep going until they pass." Ask for the command it ran and the output, not just "all tests pass."
- Review. Read the diff yourself before you commit. For bigger changes, a second reviewer that didn't write the code catches more. Here's how to set up quality gates for AI-generated code.
The one-minute rule. Watch the first minute of every task. If Claude heads the wrong way, press Esc. If you've corrected the same thing twice, run /clear and write one better prompt instead of a third correction. Anthropic gives the same advice in its own docs.
Common Beginner Mistakes
- Approving without reading. After the tenth prompt in manual mode, people stop reading. Auto mode or a short allowlist is safer than approving on autopilot.
- Giant first tasks. "Rebuild the billing system" goes worse than three smaller asks in order.
- No way to check the work. Without a test or build to run, "looks done" is all Claude has.
- One endless conversation. Use
/clearbetween tasks. A focused session gives better answers and costs less. - Skipping git. Commit before big changes. Checkpoints help, but Anthropic notes they don't cover files changed only by shell commands.
Running More Than One Claude Code Session
Once Claude Code clicks, you'll want two things going at once: one session fixing a bug while another writes tests. The catch is that two agents editing the same folder will step on each other.
The fix is a git worktree, a separate copy of your code for each session. Claude Code supports this with claude -w <name> (worktrees docs). We go deeper in how to run multiple Claude agents without conflicts.
That's the workflow Unstoppable Code was built around:
- Start each parallel task in its own worktree to keep its changes separate.
- Plan approval and a diff view are built in. You approve the plan, then review and revert changes file by file.
- Claude Code terminal mode runs the real Claude Code experience inside the app if you prefer it.
- Use your own account. Sign in with your Anthropic subscription or an API key. Add Codex with your ChatGPT login or an OpenAI key and run both side by side.
- Code Review pipelines give every change a second look before it ships.
You still supervise every step. It's just all in one place instead of five terminal tabs.
Frequently Asked Questions
How do I start using Claude Code? Install it with Anthropic's one-line installer, open a terminal in your project folder, and type claude. Log in through your browser the first time. Then ask it to explain the project before asking for changes.
Do I need a paid plan to use Claude Code? Yes. Anthropic's quickstart lists a paid Claude subscription (such as Pro, Max, Team, or Enterprise), a Claude Console account with API credits, or access through a supported cloud provider. Check Anthropic's pricing page for current plans.
What is plan mode in Claude Code? Plan mode tells Claude to read your code and propose a plan without editing anything. You approve the plan, or keep planning and tell Claude what to change. Enter it with Shift+Tab or by starting a prompt with /plan.
What should go in CLAUDE.md? Only what Claude can't learn from the code: test and build commands, misleading code to avoid copying, unwritten team decisions, and anything you've had to correct twice. Run /init to generate a first draft, then trim it.
Can I use Claude Code without the terminal? Yes. Anthropic offers Claude Code in VS Code, JetBrains IDEs, a desktop app, and on the web. Apps like Unstoppable Code also run Claude Code with a visual plan and diff, and can isolate tasks in separate worktrees.
How do I undo something Claude Code did? Press Esc to stop it, then use /rewind to roll back the code, the conversation, or both. Commit to git before big changes, since checkpoints don't cover files changed only by shell commands.
Can I run more than one Claude Code session at once? Yes. Give each session its own git worktree so they don't edit the same files. Claude Code's claude -w flag does this, and in Unstoppable Code, start each task in its own worktree.
Sources
Claude Code quickstart, Best practices for Claude Code, Permission modes, Checkpointing, Memory and CLAUDE.md, Worktrees, all Anthropic, accessed Nov 9, 2026.
