First steps with Claude Code
5 minClaude Code reads a project, plans a change and edits files for you. In the first hour, go slowly: let it explain, write your rules, agree a plan, change one thing, check it, commit.
Lesson video
Tastebud · 5:02 · Captions on screen
Ask it to explain the project, agree a plan, then make one small change you check and commit.
- Why. It writes fast and sounds sure. Unless you've read the plan and opened the page yourself, you can't tell a right change from a confident wrong one.
- Real example. A new session shows ⏵⏵ auto mode on. Press Shift+Tab once and it reads ⏸ manual mode on, so each edit and command waits for your yes. (Claude Code, Nov 2026)
- When to break it. Go back to auto mode once your work is committed and the task is routine, like renaming one label across ten files. Then read the whole diff at the end.
- Common mistake. Opening with 'build my whole portfolio site'. You get a pile of files you haven't read, and when the hero breaks on a phone you don't know where to look.
Our take. Switch Claude Code to Manual for your first week, even though it now starts in auto mode. Approving each edit yourself is how you learn to read the code it writes.
Switch to Manual before your first prompt
Claude Code now starts in auto mode, where a second model approves its actions instead of you. One press of Shift+Tab switches to Manual, where each edit and command waits for your yes. Two more presses reach plan mode.
Each Shift+Tab moves to the next mode, then back to auto
- ⏵⏵ auto mode on. Where every new session starts. A classifier model approves routine actions and blocks ones it judges risky, so edits land before you've read them.
- ⏸ manual mode on. One press from auto. Claude asks before most edits, shell commands and network requests, which suits you while you're learning the project.
- ⏵⏵ accept edits on. Two presses. File edits go through without asking, and you review them afterwards with git diff.
- ⏸ plan mode on. Three presses. Claude reads the files and writes a plan, and your source files stay as they are until you approve it.
Write rules it can follow in CLAUDE.md
CLAUDE.md is a file of instructions Claude reads at the start of every session. Type /init and it writes a first version from your project. Then add your own rules, each one specific enough to check.
- Format code properly
- Test your changes
- Keep it accessible
- Be careful with my files
- Use 2-space indentation
- Run npm run dev and tell me the URL to open
- Use a real <button> for anything people click
- Change only the files I name
Keep the file under 200 lines. Longer files get followed less closely.
Check the page, then commit
The summary tells you what Claude meant to do. Open the page, use the change the way a person would, and read git diff, the list of lines that changed. Commit only when all three agree.
The check catches what the summary missed
- You to Claude Code: Plan: button says Tapped 0 times. In plan mode, so nothing changes yet.
- Claude Code to You: Edit src/counter.js, one line. You approve with Yes, manually approve edits.
- You to Browser: npm run dev, click once. Use a second terminal, since Claude Code holds the first. The page opens at http://localhost:5173.
- Browser to You: Tapped 1 times. If you see this, the summary never mentioned it.
- You to Claude Code: Say 1 time, not 1 times. One more small loop, checked the same way.
- You to Git: Commit with a clear message. Such as: Rename counter to Tapped N times.
Try it
Your first session, one choice at a time
You've made the Vite starter page in a new folder. At each step, pick what you'd do and see what it costs later.
Quick check
It's your first week with Claude Code, on a project you don't know yet. The status bar shows ⏵⏵ auto mode on. What do you do before the first prompt?
Watch next
Watch it for Claude Code reading a codebase and making changes from the terminal. The video is from launch, so the screens look older than the ones in this lesson.
Watch it for How people at Anthropic set up CLAUDE.md, ask for a plan first and check the work before they keep it.
Connects to: 5.1 Git basics · 13.3 Reviewing AI code · 13.5 Coding agents in a real codebase
Sources · checked Nov 2026
- Claude Code Docs: QuickstartInstall commands for macOS and Windows PowerShell; claude --version prints a version followed by (Claude Code); start with claude in the project folder; first prompts such as 'what does this project do?'; Shift+Tab switches permission mode; a Claude subscription (Pro, Max, Ultra, Team or Enterprise) or Console account is needed
- Claude Code Docs: Advanced setupNative install commands for macOS (curl ... install.sh | bash) and Windows PowerShell (irm ... install.ps1 | iex); open a new terminal and run claude --version, which prints a version such as '2.1.211 (Claude Code)'; requires a Pro, Max, Ultra, Team, Enterprise or Console account, and 'The free claude.ai plan does not include Claude Code access'
- Claude Code Docs: Choose a permission modeSince v2.1.283 auto mode is the built-in starting mode in the terminal and VS Code; in auto mode a separate classifier model reviews actions and blocks ones it judges risky; from auto the first Shift+Tab goes to Manual (default), then accept edits, then plan, then back to auto; status bar labels ⏵⏵ auto mode on, ⏸ manual mode on, ⏵⏵ accept edits on, ⏸ plan mode on; Manual asks before most actions that edit files, run shell commands or reach the network; plan approve options 'Yes, and use auto mode', 'Yes, manually approve edits', 'No, keep planning'; claude --permission-mode manual (alias for default)
- Claude Code Docs: Common workflows, Plan before editingIn plan mode Claude reads files and proposes a plan but makes no edits until you approve; press Shift+Tab until the status bar shows ⏸ plan mode on
- Claude Code Docs: How Claude remembers your project (CLAUDE.md)Claude reads CLAUDE.md at the start of every session; /init writes a starting file from the codebase; concrete instructions ('Use 2-space indentation', not 'Format code properly') are followed more reliably; aim for under 200 lines
- Claude Code Docs: Checkpointing/rewind undoes Claude's file edits, but a file that only Bash commands changed isn't tracked; checkpoints are not a replacement for version control such as Git
- Claude Code changelogClaude Code 2.1.332 is the current version
- Vite Guide: Scaffolding your first Vite projectnpm create vite@latest <name> -- --template vanilla; --no-interactive skips the prompts; the dev server runs at http://localhost:5173; Vite 8.4.0
- create-vite: vanilla template sourceindex.html loads src/main.js; src/counter.js sets the button text to 'Count is ${counter}'; npm run dev runs vite