Guide / Tutorial

Claude Code for Beginners: From Install to Your Own Apps

Claude Code now builds working apps on your own computer from a desktop app and an empty folder. This guide covers setup and four first builds, the habits that prevent surprise rewrites, your first agents, self-checks with tests and hooks, how tokens and limits work, and four paid apps you can rebuild in an evening.

Claude CodeThis guide is about Claude Code.
Claude Code for Beginners: From Install to Your Own Apps

A complete beginner’s path through Claude Code in the desktop app: setup and four first builds, CLAUDE.md, permissions and plan mode, your first two agents, making Claude check its own work, tokens and limits, working hands-off, and four paid apps you can rebuild in an evening.

Reading map

  • Part I — Setup and your first four builds: installing, choosing a folder, Opus plans and Sonnet builds, screenshots, narrow edits and approvals (sections 1 to 7).
  • Part II — Rules and plans: two daily habits, CLAUDE.md, permissions, plan mode, explicit prompts and the four-part brief (sections 8 to 13).
  • Part III — Your first agents: what makes an agent, workflow files, a research agent and a repurposing agent (sections 14 to 17).
  • Part IV — Make Claude check its own work: tests first, linters and hooks, browser checks, skills and MCP (sections 18 to 21).
  • Part V — Tokens, limits and hands-off work: plans and prices, context, sessions, sub agents, worktrees and scheduled runs (sections 22 to 25).
  • Part VI — Rebuild the apps you pay for: a focus timer, a notch panel, a subscription tracker and a workout tracker (sections 26 to 29).
  • A comparison table, a final perspective, a quick reference and a FAQ close the guide.

Why This Path Works

Installing Claude Code used to take three tools and a terminal. Now it is one desktop app and an empty folder, and you can describe an app in plain English and watch it appear. That part is easy. What trips beginners up is everything after the first demo: Claude rewriting code that already worked, limits running out halfway through a job, and code that nobody checked before it was called “done”.

The guide follows the order in which those problems show up, and ends by rebuilding four apps people usually pay for.

Claude builds fast. Your job is deciding what gets built, what gets cut, and whether the result is any good.

Part I — Setup and Your First Four Builds

1. Install the desktop app and check your plan

Go to claude.ai/download, install the desktop app for Mac or Windows, and sign in. Use the installed app rather than the browser version: it is the one that works with folders on your own computer.

Before you start, check your plan: Claude Code needs a paid plan, Pro or higher, and the free tier will not open it. Next to the send button is the model menu. In the recording, Opus 5.5 is the default on Pro, with Sonnet right beside it. Leave Opus selected for your first questions; you will learn below when to switch on purpose.

The pricing page and the model menu next to the send button
The pricing page and the model menu next to the send button • 00:00:56

2. Give every project its own folder

Open the Code tab, choose Local, and select a folder. Claude treats it as its workspace: it can read, edit and run anything inside. So create a new, empty folder for each project instead of pointing Claude at your desktop or downloads; a focused folder gives the right context and keeps Claude away from unrelated files.

To test the connection, type “what files are in this project?” If Claude lists the contents or tells you the folder is empty, you are set.

Choosing a local folder as the workspace
Choosing a local folder as the workspace • 00:01:26

3. Opus plans, Sonnet builds

The first build is a one-page site for a podcast. It is small on purpose: the fastest way to see the whole loop from an empty folder to something in your browser, and a safe place to learn the pattern used on almost every project.

  1. Plan with Opus. Opus is the slower, deeper model and costs more per token. It spends time reasoning and catches edge cases before a single file exists. It returns a plan and a list of files, and nothing has been created yet. Read it: this is the cheapest moment to change your mind, because moving a section in a plan costs nothing.
  2. Build with Sonnet. Switch the model menu to Sonnet and say “follow the plan exactly and build it.” Sonnet writes code fast and costs less, which is the right fit for construction.
  3. Look at the result. Open the preview, or drag index.html into your browser.
Opus returns a plan and a file list before anything is built
Opus returns a plan and a file list before anything is built • 00:02:38

For one page, planning is overkill; you do it once so the hand-over becomes a habit.

4. Fix what looks off with a screenshot

When something looks off, you do not need to know which file controls it. Take a screenshot of that part, drop it into the chat and write “fix this.” Claude sees the image and the whole project at once, finds the right file itself, and often updates the matching elements too, so the page stays consistent.

A screenshot of the page dropped into the chat with a request to change it
A screenshot of the page dropped into the chat with a request to change it • 00:04:16

5. Know when not to use the expensive model

The second build is a Chrome extension: highlight a sentence on any page, right-click, and save it as a quote with the page title and link; a small pop-up lists everything and copies it as clean notes. The scope is small and clear, so skip the planning step and go straight to Sonnet. Knowing when not to use the expensive model is half of the pattern.

To install it: Chrome’s extensions page → Developer mode → Load unpacked → the project folder.

Before you change code you did not write, or wrote weeks ago and forgot, ask Claude to explain it: “explain what happens after I click save quote, in plain English.” Then make the edit narrow. “Rewrite this” gives Claude permission to touch everything, including parts that already work. A good edit says three things:

Part Example
What the code does now The pop-up shows all quotes in one list
What you want instead Group them by website
What must stay exactly as it is Nothing else changes, especially the context menu and the Markdown button
A narrow edit request and the change it produced
A narrow edit request and the change it produced • 00:06:22

6. Approve commands with a rule, not a reflex

The third build is a Python script that watches your downloads folder and moves each new file into the right subfolder: PDFs, images, installers, spreadsheets and everything else, adding a number when two files share a name. It has more moving parts, so go back to Opus for the plan, then let Sonnet build.

This is where Claude stops acting like a chat. It does not hand you commands to paste; it runs them itself. With auto mode switched off, it shows each command and waits for your approval. Have a rule for those approvals:

Kind of command Examples What to do
Routine Installing a well-known package, starting a local server, running tests Approve quickly
Risky Deleting files, overwriting data, pushing something live Read slowly; ask whether it can be undone
Something looks wrong Any time Hit the stop button; it interrupts the command right there

When the script breaks, paste the whole error message, not your summary of it; Claude traces it to the right line and proposes a fix you review in the diff.

Before it runs a command, Claude shows it and asks for approval
Before it runs a command, Claude shows it and asks for approval • 00:09:46

7. One file, small refinements

The fourth build is a subscription tracker that runs entirely in your browser, with one constraint on purpose: everything goes into a single HTML file. No server, no build step; double-click the file and it opens.

Then refine it one short request at a time: paint renewals in the next seven days red, and show a yearly total next to the monthly one. Small requests keep each diff easy to read.

The single-file subscription tracker after two small upgrades
The single-file subscription tracker after two small upgrades • 00:12:40

Across these builds your job changed: you decide what gets built, what gets cut, and whether the result is good. Claude has no opinion on whether your page looks cheap.

Part II — Rules and Plans

8. Two habits from day one

Commit before every session, so Git always has a clean point to go back to, and read each diff before you say yes. Claude Code is an agent, not a chat window: a wrong edit is already sitting in your project, and a clean commit undoes it with one command.

Our summary: commit before the session, read the diff before every yes
Our summary: commit before the session, read the diff before every yes

9. CLAUDE.md: what to put in it

By the fourth project you keep telling Claude the same things, and Claude does not remember between sessions. The fix is a CLAUDE.md file in the project root, which Claude reads whenever it works on that project.

Ask Claude to draft it from the project (or run /init), then add your own rules: a few lines of project context, who you are and the tone you want, your rules, and your folder layout. For the subscription tracker, four lines were enough:

- Plain JavaScript, no frameworks
- Full words in names, no abbreviations
- Everything stays in one file
- Never add a library without asking me first

Ask for a new feature afterwards and Claude follows those rules without being reminded.

Claude drafts a CLAUDE.md from the project
Claude drafts a CLAUDE.md from the project • 00:13:50

10. CLAUDE.md: what goes wrong

The file is loaded in every session, so every extra line is a small cost on every prompt. Five mistakes are common:

  1. Keeping the draft as the finished file. For each line ask: “would Claude get something wrong without this?” If not, cut it.
  2. Describing instead of deciding. “The project uses React” tells Claude nothing it cannot see in package.json. “Use pnpm, never npm” does real work, because mixing the two leaves you with two lock files.
  3. Writing every rule on day one. Good rules come from corrections: Claude does something you did not want, you fix it, you add one line.
  4. Letting it go stale. When you switch a library or drop a folder, update the file in the same commit; Claude follows an outdated rule with total confidence.
  5. Putting everything in one file. Backend-only rules can live in a CLAUDE.md inside the backend folder; personal preferences go in ~/.claude/CLAUDE.md. /memory opens these files.

Keep three things out completely: passwords and API keys, style rules your linter already enforces, and long documentation.

A CLAUDE.md with rules that decide things
A CLAUDE.md with rules that decide things • 00:42:34

11. Permissions: allow little, deny clearly

Out of the box Claude asks before every command. /permissions lets you allow the commands you trust, like the tests or the linter, and deny the ones you never want; the rules can be committed in the project’s .claude folder for the whole team.

Keep the allow list narrow: allow what is read-only or easy to undo, and keep the prompt for anything that deletes, deploys or touches the database.

12. Plan mode, and how to read a plan

Shift + Tab cycles normal mode, accepting edits and plan mode. In plan mode Claude reads and searches but changes nothing, then writes a plan.

Skip it for a one-file fix you already know; use it when a task touches several files or you are unsure how to do it. Fixing a plan costs one message; fixing the code costs a review, a revert and a second run.

Read it like a pull request from someone new to the project, and send it back when you see:

  • vague steps like “update the related components” (Claude has probably not found the code yet);
  • a new library when you already have one that does the job;
  • files or cleanups that have nothing to do with the task;
  • no step that says how the result will be checked.

Be specific when you send it back: “In step three, use the date library we already have. Drop step five. Run the existing tests at the end.” Ctrl + G opens the plan in your editor.

Our summary of when plan mode pays off
Our summary of when plan mode pays off

13. Explicit prompts and the four-part brief

Claude is good at doing what you say and much worse at guessing what you meant. Name the files with @, name the library, and say what done looks like. Compare:

Add dark mode.

Add a dark theme using the CSS variables in @src/style/theme.css. No new
dependencies. Put the toggle in the header next to the profile menu, remember
the choice in local storage, and don't touch the email templates.

The second prompt tells Claude where to look, what is off-limits and what done means, so it reads less and guesses less. When you do not know all of that yet, tell Claude to ask you questions before it writes the plan.

For a bigger job, write a brief with four parts: the goal, the constraints, what counts as finished, and what you specifically do not want added. With a real brief, a small content calendar came out of one message, and your job switched to testing it.

A brief turned into a working content calendar in one message
A brief turned into a working content calendar in one message • 00:15:46

Part III — Your First Agents

14. Three levels of working with AI

Level What you do Limit
1. Chat Ask a question, get an answer A sophisticated search engine
2. Builder Ask Claude to make things: a script, an email, an analysis You still manage every step
3. Agentic Hand over a complete outcome The agent plans, asks, executes and reviews

A real agent does three things a chatbot does not. It follows a process: gathers context, forms a plan, executes step by step, reviews its own output. It handles uncertainty: when it does not understand, it stops and asks instead of guessing. And it clarifies before it acts, because most bad AI output comes from a wrong assumption about audience, format, scope or tone.

Our diagram of the three levels
Our diagram of the three levels

15. Three parts of an agent system

  1. A workflow file: a Markdown document describing the process in plain English: the goal, the steps, the rules, the output format and what to do if something goes wrong. Think of it as a standard operating procedure.
  2. The agent: Claude reads the workflow file and coordinates, deciding what to do next, what to ask and when to pause for input.
  3. The tools: what Claude can do in the workspace: reading and creating files, organizing folders, searching documents, editing text. For most beginner workflows these built-in tools are enough.

The workflow file matters most: the intelligence is in the instructions, and anyone can write instructions. Add a planning rule to CLAUDE.md too: “Always present a written plan and wait for approval before beginning any multi-step task.”

A workflow file written in plain English
A workflow file written in plain English • 00:28:50

16. A research agent

Open a new conversation in your workspace and do not give it a topic yet. Describe the system you want:

I want to design a research workflow. When I give you a topic, first ask me
clarifying questions about scope, audience and desired depth. Then form a
written plan. Once I approve it, research the topic, organize the findings
into clear sections, and save a structured report to the output folder.
Before we build this, show me your plan for the workflow itself.

Claude proposes a structure and, once you agree, saves it as a workflow file such as research-agent.md.

To run it, open a new session and ask for a report, for example on AI agents in 2026. Answer its questions specifically (a non-technical audience, a conversational tone, about 1,500 words), approve the plan, and it researches, writes and saves the report. Refinements are fast: “trim the executive summary to three key points.”

The research agent asks its scoping questions first
The research agent asks its scoping questions first • 00:33:04

17. A repurposing agent, and five mistakes

The second agent takes one long script from an input folder, picks the three strongest moments, writes each as a 60-second short with its own hook, writes an X thread, a LinkedIn post and an Instagram caption, and saves every piece as a PDF. In the recording, one prompt produced four files in under two minutes.

The repurposing agent's output folder
The repurposing agent’s output folder • 00:35:02

Five mistakes break most agent setups:

  1. Skipping CLAUDE.md: every session starts from zero.
  2. Vague goals: “research AI” gets you a Wikipedia article; a specific audience and focus gets you something usable.
  3. Skipping the plan review: two minutes of review saves ten minutes of cleanup.
  4. Not requiring clarifying questions: the agent assumes, and assumptions cause most mediocre output.
  5. Building everything at once: start with one workflow, make it reliable, then build the next.

Part IV — Make Claude Check Its Own Work

18. Tests first

When Claude says “done”, the model stopped; that does not mean the code works. Ask for the tests first, check they describe what you want, then let it write the code. Tests written afterwards describe whatever the code does, bugs included. Add one line to CLAUDE.md: “tests only change when I say so.”

A worked example: a discount code still works after it expires.

  1. Ask for a test that reproduces it: a code that expired yesterday, applied today, must be rejected.
  2. Run it. It should fail, which proves the test catches this bug.
  3. Ask for the fix with one condition: the test stays as it is.
  4. When it goes green, the fix handles that exact case, and the test stays in the project so the bug cannot sneak back.

Test the logic that would hurt if it broke, not every line.

Our diagram of the expired-code test
Our diagram of the expired-code test

19. Linters, type checks and hooks

Make the type check and the linter part of the definition of done. A hook makes it automatic: a command Claude Code runs at fixed points, such as after every file edit. Hooks can also block things, like any edit to .env or the migrations folder.

20. Browser checks and a second opinion

Claude writes CSS but never sees the page. Give it a browser (the Chrome integration or a Playwright MCP) to click through and take screenshots, but save that for the final pass: screenshots are heavy on tokens.

For a free second opinion, open a new session or a sub agent, paste the original task, and ask it to review the diff; a clean context notices what is missing.

Claude opens the app in a browser and reports what it saw
Claude opens the app in a browser and reports what it saw • 00:51:56

21. Skills versus MCP servers

A skill is know-how: a folder with a SKILL.md file holding a name, a one-line description and the steps. Only the description stays in context, so write it as a “when to use” line. A skill costs almost nothing until needed; CLAUDE.md is read every session.

An MCP server is access: it lets Claude reach something outside your code, like a database, an issue tracker, a design file or a browser.

The problem The fix
Claude does a task the wrong way Write a skill
Claude cannot see the thing it needs Add an MCP server
The tool already has a command line (GitHub CLI, your database client) Let Claude run it in the shell

Part V — Tokens, Limits and Hands-off Work

22. What you pay for

Pro costs about $20 a month and suits a few sessions a week; Max plans start around $100. The pay-per-token API sounds cheaper, but a long Opus planning session can cost a few dollars, so switch only once you know your usage.

Claude Code counts tokens, not prompts: everything it reads, writes and gets back from tools. Usage runs in a rolling five-hour window with a weekly limit on top.

23. Keep the context clean

The same tokens fill the context window, and quality slips well before it is full: early instructions get less attention, Claude repeats checks or quietly undoes a decision you made an hour ago.

Command What it shows or does
/context What sits in the window: system prompt, tools, MCP tools, memory files, skills, messages, free space. Run it in a fresh session to see what every session costs before your first word
/mcp Connected servers; switch off whatever this project does not need
/usage How much of the five-hour window and the weekly limit you have used, and when they reset
/compact Summarizes the session; tell it what to keep (“keep the API decisions and the list of failing tests”)
/clear Starts a clean window for the next task
/model Switch models; the “opusplan” setting uses Opus in plan mode and Sonnet for the edits

Give each task its own session. Before you clear, ask for a short handoff file (what is done, the decisions and why, what is left) and start the next session from it. If two fixes for the same bug failed, start fresh: a clean context beats a long one full of wrong guesses.

Our summary of the context commands
Our summary of the context commands

24. Sub agents and worktrees

A sub agent is a separate Claude instance the main session hands one job to, like digging through docs or reviewing a diff. It works in its own context window and sends back only a summary. Sub agents are Markdown files in .claude/agents/:

name: diff-reviewer
description: Use after a feature is finished to review the diff against the original request
tools: Read, Grep, Glob
model: sonnet

This reviewer can only read and search and runs on Sonnet. The catch: several sub agents in parallel eat your limits several times faster.

A Git worktree is a second copy of the project on its own branch, so two sessions cannot overwrite each other; a toggle under the input box creates one. Every parallel session still draws from the same limit and still needs your review.

A sub agent defined as a Markdown file
A sub agent defined as a Markdown file • 01:01:14

25. Scheduled and unattended runs

  • /loop repeats a prompt at an interval, but only while your session stays open.
  • A goal tells Claude to keep working until something is true, for example every test passes and the type check is clean.
  • claude -p runs a single prompt without an interactive session. For a real overnight job, a scheduler such as cron or a scheduled CI job calls it.

Give unattended runs narrow jobs you can check: a nightly test run that reports failures is a good fit; building a whole feature while you sleep is not. Run the command by hand a few times on a clean checkout before you schedule it.

And when the change is three lines you already know how to write, just write it; explaining it costs more time and tokens.

Part VI — Rebuild the Apps You Pay For

26. A focus timer

An empty folder and one prompt: a single-page web app with 25-minute work sessions and 5-minute breaks (both adjustable), a big start/pause button and a skip button, a sound when a session ends, every finished session saved in the browser, today’s total focus time and a 7-day bar chart, in a dark, minimal design. Most of that prompt is simply a description of what you expect to see on the screen.

One fix makes it trustworthy: browsers slow down background tabs, so ask Claude to save the start timestamp and compute the remaining time from the real clock.

From the timer prompt to the working app
From the timer prompt to the working app • 01:06:52

27. A MacBook notch panel

A step up: a native macOS app in SwiftUI that turns the notch into a Dynamic Island style panel. You need Xcode installed; Claude Code handles the rest from the terminal. Collapsed, it is a small black shape that blends into the notch. On hover it expands into a panel with four tabs: now playing from Spotify or Apple Music, a quick notes field that saves automatically, the last 20 things you copied, and today’s remaining calendar events with a countdown, with battery status in the corner. On a Mac without a notch it shows the same island as a floating pill.

The notch panel's music tab
The notch panel’s music tab • 01:10:46

28. A subscription tracker

The first app with real structure, so the prompt reads like a short spec: three screens (a dashboard with totals per month and per year, the next five renewals and a category breakdown; a list with add, edit and delete; settings with currency and JSON export and import), correct monthly and yearly conversion for weekly, monthly and yearly billing, renewals in the next seven days highlighted, data stored in the browser, and a clean mobile-first design.

The export button matters: the data lives in your browser, so one downloaded file is your backup and your way to another device.

The tracker's dashboard with monthly and yearly totals
The tracker’s dashboard with monthly and yearly totals • 01:16:56

29. A workout tracker, and the honest count

The biggest of the four: a single-page web app with a Today screen (start from a saved routine or from scratch, log sets with weight and reps), routines, history by date, and a progress chart of best weight and total volume per session, with JSON export and import. An app this size rarely lands in one go; the second pass makes it yours: a rest timer that starts after each set and beeps, last session’s weight and reps on every exercise, a badge for a new personal record, and bigger buttons.

The workout tracker during a session
The workout tracker during a session • 01:19:30
App Typical subscription
Focus timer $5 / month
Dynamic Island notch app $10 / month
Subscription tracker $5 / month
Workout tracker $15 / month
Total $35 / month, $420 / year
One Claude Pro plan $20 / month, $240 / year

All four builds fit on the $20 plan by keeping one app per session. The honest part: none of them sync between devices, there is no cloud backup or support line, security is whatever you set up, and none are in an app store. For simple tools you use alone, that trade is fine. For anything with sensitive data or other people in it, the paid service still earns its price.

Subscriptions will split rather than die: the apps that last sell other people, licensed content, syncing and accountability, not just code.

Comparison: Which Tool for Which Job

Situation Use Why
Small, clear task Sonnet directly Fast and cheaper; planning would be overkill
Several files or unclear approach Opus plan → Sonnet build, or plan mode The plan is the cheapest place to catch mistakes
One-file fix you already know Write it yourself Explaining costs more than typing
Rules you repeat every session CLAUDE.md Read every session; keep it short
A long, detailed routine A skill Costs almost nothing until needed
Claude cannot reach a system An MCP server (or its CLI) Access, not know-how
Separate job with its own context A sub agent Keeps the main session clean
Two tasks at once A worktree Separate copies cannot overwrite each other
Unattended checks claude -p from a scheduler Narrow, checkable jobs only

Final Perspective

Claude Code removed the setup barrier that used to stop beginners in the first five minutes. What it did not remove is judgment. The habits in this guide all protect that judgment: a folder per project, plans before big changes, narrow edits, diffs you actually read, a CLAUDE.md built from real corrections, tests before code, and a fresh session for every task.

It will not replace an engineering team on a banking backend. What changed is who gets to start: build a rough version of your idea in an afternoon and show it to real users.

Quick Reference

Goal How
Start a project Desktop app → Code → Local → a new empty folder
Plan, then build Opus for the plan → switch to Sonnet: “follow the plan exactly”
Fix a visual issue Screenshot + “fix this”
Change existing code Explain first; then now / instead / must stay
Standing rules CLAUDE.md (draft with /init), edit with /memory
Fewer prompts /permissions: allow read-only and tests, deny the rest
Plan mode Shift + Tab; Ctrl + G edits the plan
Bigger job Brief: goal, constraints, done, not wanted
Self-checks Tests first; type check + linter; hooks; browser pass at the end
See costs /context, /mcp, /usage
Long sessions /compact with what to keep; handoff file; /clear
Undo Esc Esc or /rewind (not shell changes); Git for the rest
Old sessions claude --continue, claude --resume
Parallel work Sub agents in .claude/agents/; worktree toggle
Unattended /loop (session open), goals, claude -p from cron

FAQ

Do I need to know how to code to use Claude Code?

No. You describe what you want in plain English and review the result. What helps most is knowing what good looks like: clear requests, reading plans and diffs, and testing the result.

Which Claude plan do I need for Claude Code?

A paid plan, Pro or higher; the free tier does not open Claude Code. Pro at about $20 a month is enough for a few sessions a week and for small apps like the ones in this guide. Max plans start around $100 a month for heavier use.

What should go into CLAUDE.md?

Short rules that prevent real mistakes: commands to run, folders to leave alone, libraries to use instead of others, plus a little project context. Leave out anything Claude can see in the code, API keys, linter style rules and long documents, and add new rules after you correct Claude.

Why does Claude Code run out of limits so fast?

It counts tokens, not prompts: everything it reads, writes and receives from tools. Large file reads, many connected MCP servers, long sessions and parallel sub agents use the most. Check /context and /usage, keep one task per session, and disconnect MCP servers you do not need.

Can apps built with Claude Code replace my paid subscriptions?

Simple personal tools, yes: a timer, a tracker or a notch panel can be rebuilt in an evening. They will not sync across devices, back up to the cloud or come with support, so keep paying for services that depend on other people, licensed content, syncing or trust.

Further Reading

  • Anthropic’s Claude Code documentation: CLAUDE.md, permissions, plan mode, hooks, skills, sub agents and MCP.
  • On AIBotRadar: more guides on Claude, Claude Code and AI coding tools.

Plans, prices, limits, model names and menus change often; check the current ones before you buy or rely on them.

Claude Code GUIDES

More Claude Code guides

Continue with practical guides about Claude Code.

View all Claude guides
In this guide