Claude Code Tutorial: How to Use Claude Code in 9 Steps
One weekend, nine steps and a one-page site for a dog-grooming salon, in the terminal, VS Code or the desktop app, plus 10 Claude Code tips and fixes for common problems.
By Yotam DahanUpdated 16 min readClaude Code
Here is how to use Claude Code: start it in a project folder, describe the result you want in plain English, let it plan, approve or review what it changes, and check the result yourself before you move on. This Claude Code tutorial for beginners shows how to use Claude Code step by step on one small, real project you can finish over a weekend: a one-page website for a local business. You will see exactly what to type, how permissions and plan mode work, and how to undo a step that went wrong.
How to use Claude Code in five moves
The example business, Muddy Paws Grooming, a dog-grooming salon, is made up: swap in your own or a friend's and you finish with something useful.
Brief
Describe the page in plan mode and answer Claude's questions
Build
Approve each file in Manual mode
React
Give short, specific feedback like a client would
Undo
Rewind any step that made things worse
Review
Ask for a check with evidence, then check it yourself
Where the evidence comes from: the screenshots are from our interactive session of October 20, 2026 (Claude Code 2.1.303 with Opus 5.5), and the questions, times and costs from logged runs on November 1 (English) and November 6, 2026 (Spanish, Portuguese, French). The Step 5 feedback exchange is an example, not a transcript, and every label and price was re-checked on November 6 for version 2.1.318.
What you need before you start
- Claude Code installed and signed in. The official installer is
curl -fsSL https://claude.ai/install.sh | bashin the Mac Terminal orirm https://claude.ai/install.ps1 | iexin Windows PowerShell; the steps to install Claude Code on Mac and Windows cover the desktop app and the usual errors. - A paid Claude plan, since the free plan doesn't include Claude Code. (If you're wondering how to use Claude Code for free, the FAQ below covers the open-model workaround and its limits.)
- The business details: name, what it sells, three services with prices, opening hours, area, phone number, a booking link if there is one, and two or three real customer reviews.
- A couple of focused sessions: one on Saturday to build, one on Sunday to polish.
I use the terminal below; the section after Step 9 shows the same controls in VS Code and the desktop app.
What this tutorial costs
| What you use | Price | What to know |
|---|---|---|
| Claude Free plan | $0 | No Claude Code |
| Claude Pro | $20 monthly, or $200 for a year (about $17 a month) | The cheapest plan with Claude Code |
| Claude Max | $100 a month | 5x Pro's usage |
| Claude Ultra | $200 a month | 10x Pro's weekly usage, no 5-hour limit once verified |
| API billing (Claude Console) | Per token | Our plan and build steps: $0.61 at list prices |
Prices from Claude's pricing page, before tax, checked on November 6, 2026.
Saturday morning: how do you set up a Claude Code project?
You set up a Claude Code project in three moves: start Claude Code in an empty folder, switch it to Manual mode, and write the brief in plan mode so Claude asks its questions before it touches a file.
Step 1: start Claude Code in a project folder
Claude Code can read everything inside the folder you start it in, so a clean folder keeps your other files out of reach. Here is how to use Claude Code in Terminal, the Mac's built-in command app:
mkdir -p ~/claude-projects/muddy-paws
cd ~/claude-projects/muddy-paws
claude
On Windows, in PowerShell:
mkdir -Force "$HOME\claude-projects\muddy-paws"
cd "$HOME\claude-projects\muddy-paws"
claude
Step 2: pick a permission mode
Claude Code has permission modes: settings that decide which actions it can take without asking you. You cycle through them with Shift+Tab (Alt+M on some Windows setups), and the line under the prompt shows the current one. Current versions open each new terminal or VS Code session in auto mode, so switch before you build.
| Mode | The status line shows | What happens | Use it when |
|---|---|---|---|
| Manual | ⏸ manual mode on | Reads freely, asks before every file edit and command | First projects, anything sensitive |
| Accept edits | ⏵⏵ accept edits on | Edits files and runs file commands such as mkdir, mv and even rm without asking; asks for anything else | You trust the direction and review after |
| Plan | ⏸ plan mode on | Explores and writes a plan; your files stay untouched until you approve | Changes you can't describe in one sentence |
| Auto | ⏵⏵ auto mode on | A separate AI reviewer approves routine actions and blocks risky ones | Longer tasks, once you know the ropes |
The Claude Code accept edits vs auto mode difference is the one that matters: accept edits skips the questions only for file changes and simple file commands, while auto mode runs other commands too, after its safety check.
To never start in auto by accident, pick the mode at launch, as Claude Code's own help screen shows:

When Claude Code needs your OK, it shows a prompt like this one, from a real session of ours:

- Yes approves this one action.
- Yes, and don't ask again saves a rule, so that command stops asking in this project (file-edit approvals last until the session ends).
- Yes, and switch to auto mode hands routine approvals to the background reviewer.
- No declines, like Esc; press Tab first to add a note such as "No: use the photos in the images folder".
Step 3: write the brief in plan mode
Press Shift+Tab until the status line reads ⏸ plan mode on, or type /plan at the start of your message. Then paste a brief like this one, with your details filled in:
I want a one-page website for Muddy Paws Grooming, a dog-grooming salon in [TOWN].
Audience: busy dog owners who live nearby and mostly book from their phones.
Goal: get them to tap "Book a groom" ([BOOKING LINK]) or call [PHONE NUMBER].
Sections, in this order:
1. Headline saying what we do and where, with the booking button
2. Three services with prices: [SERVICE AND PRICE] x3
3. Opening hours and address
4. Two customer reviews: [PASTE REAL REVIEWS]
5. Contact: phone, email and a map link
Style: friendly and clean, lots of white space, large text, easy to use on a phone.
Constraints: one index.html file and one styles.css file. No frameworks. No photos I haven't approved.
Done means: I can open index.html in my browser and everything above is there and readable on a phone.
Before you write anything, ask me up to five questions about what's missing, then propose a plan.In our logged re-run of November 1, 2026, Claude (Opus 5.5, the default model on paid plans) asked five questions: opening hours, the street address for the map link, the contact email, brand colours or a logo, and whether prices were fixed or "from" prices that change with the dog's size. Its plan listed both files, every section in order, a phone-width check and one extra: a Book and Call bar fixed to the bottom of the screen on phones.
In our October interactive session, the questions came as tabs with suggested answers:

Yes, and use auto mode
Approve the plan and let the background reviewer handle routine actions.
Yes, manually approve edits
Approve the plan and review every edit yourself. Pick this one for your first project.
No, keep planning
Nothing gets built yet: type what Claude should revise in the plan first.
Saturday afternoon: how do you build the page and give feedback?
Build in Manual mode so you approve each file, open the page in your browser, then react like a client: one short, specific change per message, and rewind any change that makes things worse.
Step 4: approve the build step by step
Claude now creates index.html, then styles.css, and before each file it shows what it is about to write and waits for your answer. Approve when it matches the plan, and look closer at any command that deletes files or reaches outside the folder.

When it finishes, double-click index.html to open the page, or on a Mac type ! open index.html in Claude Code: the ! runs it as a plain command instead of a request to Claude.
Our logged re-run, from the first prompt to two finished files with no approvals to wait for:
in plan mode: five questions and a plan, with no project files touched
to write index.html and styles.css, 436 lines in total
for both steps at API list prices; on a paid plan it counts toward your usage instead
Our re-run, November 1, 2026: Claude Code 2.1.303 with Opus 5.5, unattended (plan mode, then Accept edits), times and cost from Claude Code's own run report. In Manual mode, add the time you spend reading and approving each file.
Every section, price, review and link matched the brief, and the page fit a 390-pixel phone screen without sideways scrolling. With nobody at the keyboard, though, Claude's request to screenshot the page at phone width never got its OK, so it skipped that check and said so.
In a normal session you approve that request. In our October interactive session we did, and Claude's closing message listed what was still placeholder:

The result held when we changed the business and the language: same brief and model, local salons and prices, logged on November 6, 2026.
| Logged run, November 6, 2026 | Guadalajara, Spanish | Curitiba, Portuguese | Nantes, French |
|---|---|---|---|
| Questions before the plan | 5 | 5 | 5 |
| Prices and reviews kept word for word | Yes | Yes | Yes |
| Page language set without being asked | es-MX | pt-BR | fr |
| No sideways scroll at 360 to 390 px | Yes | Yes | Yes |
| Booking button | WhatsApp link with a ready message | WhatsApp link with a ready message | The booking link |
| Both steps at API list prices | $0.42 | $0.43 | $0.39 |
None of the three added a legal notice, which French law requires on a business site (French administration's list): check your own country's rules before you publish.
Step 5: give feedback like a client
This is where most of the value comes from. React like a picky client: short, specific, one thing at a time. The exchange below is an example of that style, written for this guide, not a logged session:
- You:
The booking button disappears under the photo on my phone. Move it directly under the headline and make it full width on small screens.
- Claude Code:
I'll move the button below the headline in index.html and add a rule to styles.css so it spans the full width on narrow screens.
- You:
Good. Now make each price bold and line them up on the right of each service name.
- Claude Code:
Updated the services list: names on the left, bold prices on the right. Refresh the page and check it at phone width.
Type @ and a file name, such as @brand.txt, to point Claude at that file, or paste a screenshot (Ctrl+V in most terminals) to show a problem. A correction typed mid-task is read after the current step; Esc stops it at once.
Step 6: undo the last change with rewind
Sooner or later a change makes things worse. You have three ways back:
- Ask. "Undo that last change" works for simple cases.
- Rewind. Press Esc twice while the prompt is empty, or type
/rewind(/undodoes the same), pick the message from before things went wrong, and choose what to restore. - Go back to a saved version, if you use git, a free tool that stores named snapshots of a project.
Here is the Claude Code rewind screen from another practice project, after picking a message:

For a proper safety net, ask for one. Most Macs include git already; on Windows, install Git for Windows first.
Turn this folder into a git repository and save the current version with a clear description of what works.Sunday: how do you make the page solid before it goes live?
Make it solid with three habits: write your decisions into CLAUDE.md, ask Claude for a review with evidence and then check the page yourself, and decide where it will be published.
Step 7: write down what you agreed on
Save the decisions you made about colors, tone and "always check phone width" so you never repeat them:
Create a CLAUDE.md file for this project with the business details, the style rules we settled on, and a rule to check the page at phone width before saying you're done.CLAUDE.md is a plain text file of standing instructions that Claude Code loads whenever a session opens in this folder (edits made mid-session apply after /clear or in the next session). The built-in /init command drafts one from your files, but only the prompt above captures the decisions you made together; the guide to the CLAUDE.md file has templates.
Step 8: ask for a review with evidence
Review the page like a picky client. Check that every section in my brief is there, every link and the phone number work, text is readable at phone width, images have alt text, and no name, price or time differs from my brief. Fix what you can, then list what you changed and what you still need from me.Then check it yourself: click every link, narrow the window to phone width and compare every price with your list. With git set up, /diff shows what changed since the last saved version.
Step 9: decide where it goes live
Publishing is its own job: a domain, hosting, a privacy notice where the law asks for one, and settings so search engines find the page. The landing-page module of our Claude Code course (early access, open for pre-order) covers it, with lessons on accessibility and privacy and on publishing on Vercel.
How to use Claude Code in VS Code or the desktop app
The nine steps work the same outside the terminal; only these controls move, per Anthropic's VS Code docs and desktop quickstart (checked November 1, 2026):
| What you do | Desktop app (Code tab) | VS Code extension |
|---|---|---|
| Switch to Manual or Plan | Mode selector under the prompt box | The mode label in the prompt box's bottom row (Accept edits is called Edit automatically there) |
| Approve an edit | In Manual, a diff with approve and decline buttons | In Manual, a side-by-side diff: accept, reject or say what to do instead |
| Undo a step | Ask Claude to undo it, or go back to your git version | Hover over a message and click the rewind button |
10 Claude Code tips for beginners
- One outcome per message. "Make the booking button full width on phones" beats five wishes in one paragraph.
- Point, don't describe.
@styles.cssmakes Claude read the right file instead of searching. - Let it interview you. For anything bigger than a tweak, end with "ask me questions until you have what you need".
- Plan what you can't say in one sentence. For small fixes, planning only adds steps.
- Stop early. Press Esc the moment it heads the wrong way.
- Two strikes, fresh start. Corrected the same thing twice? Run
/clearand write a better first prompt. - One task per session.
/clearbetween unrelated jobs;/resumefinds old conversations. - Ask for evidence. "List the files you changed" beats "is it done?".
- Keep side questions aside.
/btwanswers without adding to the main conversation. - Let the tool teach you.
/powerupruns short lessons, and our Claude Code cheat sheet lists the shortcuts, plus the commands for skills, MCP, hooks and subagents.
Common problems and fixes
The snags beginners hit most, worded as in Anthropic's error reference:
| What you see | What it means | Fix |
|---|---|---|
| Esc twice clears your text instead of opening rewind | Double Esc only opens the menu on an empty prompt | Press Esc twice again, or type /rewind; Up brings your text back |
| A file is still gone after you rewound | A command such as rm changed it; rewind only tracks file edits | Restore it from git or your copy |
Context limit reached · /compact or /clear to continue | The conversation is too long | /compact, or /clear and restart from CLAUDE.md |
You've hit your 5-hour limit (session limit before version 2.1.312) | This window's share of your plan is used | Wait for the reset time; /usage shows your limits |
Once the loop feels routine, add one feature at a time, when a real task asks for it: a skill for a procedure you repeat, an MCP connection to an app such as Notion, a hook that runs a check after every edit, or a subagent for a side job such as checking every link.
Quick check0 of 3 correct
Which mode lets Claude explore and propose a plan without editing your files?
Not quite.
In plan mode your files stay untouched until you approve the plan.
A change made things worse. What opens the rewind menu?
Not quite.
Esc twice on an empty prompt, or the /rewind command, lets you restore code, conversation or both.
What is the best kind of feedback to give?
Not quite.
Short, specific messages let Claude change exactly one thing, and they are easy to undo if needed.
What to do next
Run the loop once more this month on a second small job you would otherwise pay for or keep postponing: brief in plan mode, build in Manual, review with evidence, save what you learned in CLAUDE.md. Pick one from our Claude Code project ideas, sized from one hour to one weekend, and start from the weekend worksheet below this guide: the blank brief, the prompts in order and the 15-point review checklist. If you would rather be walked through it, the Claude Code course takes the same loop to a published landing page, an AI video and an invoice agent, and our roundup of the best Claude Code courses compares free and paid options.
Weekend project worksheet
A fill-in project brief, the full prompt sequence from this tutorial, a 15-point review checklist and an approve-or-stop table for permission prompts, ready for your next small build.
Enter your email and the full section opens right here.
Frequently asked questions
How long until I can build something useful with Claude Code?
About one weekend for a first small project like this one. In our logged run Claude needed 28 seconds to plan and 64 seconds to write the files; the rest of the time goes into your brief, your feedback and your own checks. Skills, connectors and automation are easier to pick up later, one at a time, when a real task needs them.
What happens if I close the terminal in the middle of a task?
The task stops, because a normal local session only runs while Claude Code is open, but the conversation is saved on your computer. Open a terminal in the same folder and run claude --continue to pick up the most recent conversation, or claude --resume to choose an older one.
Does Claude Code remember what we did in an earlier session?
Not by default: every new session starts with a fresh context. Knowledge carries over through your CLAUDE.md file and the auto memory notes Claude Code keeps, and you can reopen an old conversation with /resume.
Where do I get the Claude Code extension for VS Code?
In VS Code's Extensions panel, look up Claude Code and pick the one published by Anthropic. It requires VS Code 1.94 or newer, and the same extension installs in Cursor. Open it with the Spark icon and sign in with your Claude account. JetBrains editors such as IntelliJ and PyCharm have a plugin too.
Can I run two Claude Code sessions at the same time?
Yes. You can open Claude Code in two terminal windows, or run sessions side by side from the desktop app's sidebar. If both work on the same files at once, give each its own folder or git worktree so their edits don't collide.
Can I use Claude Code for free?
Not with Claude's own models: the free Claude plan doesn't include Claude Code, so you need a paid plan or API credits. Ollama can connect Claude Code to free open models running on your own computer, but they are weaker than Claude and need a powerful machine, so treat that as an experiment rather than the same tool.
Keep reading
Install Claude Code on Windows and Mac in 4 Steps (2026)
Install Claude Code on Windows or Mac with Anthropic's official installer or the desktop app, sign in, run a safe first task and fix errors. No coding needed.
Claude Code · 14 min readCLAUDE.md File: Best Practices, Examples and 3 Templates
What is a CLAUDE.md file? Its role in Claude Code memory, where it goes on Mac and Windows, best practices, 3 copy-ready templates and fixes when it fails.
Claude Code · 16 min readClaude Code Commands Cheat Sheet (2026): Shortcuts and Flags
Claude Code commands cheat sheet: 60+ slash and CLI commands, 20+ shortcuts, config files and fixes, plus a free printable one-pager. Checked November 2026.
Claude Code · 19 min read