Quick answer: Claude Code is an AI coding assistant from Anthropic that works inside your project. You describe a task in plain language, and it reads your files, plans the change, edits code, runs commands and tests, and shows you the result for approval. It runs in the terminal, in VS Code and JetBrains, in a desktop app and in the browser. This guide explains every part a beginner needs, step by step, using only facts I checked in Anthropic’s official documentation in November 2026.
What is Claude Code?
Claude is Anthropic’s AI assistant. Claude Code is the version built for software work. Instead of pasting code into a chat window, you start it inside your project folder. It can see your files, search them, change them, run your tests and use git. Think of it as a very fast junior developer who sits in your terminal: it does the typing and the checking, while you decide what is built and what is accepted.
It is not only for experts. Beginners use it to understand an unfamiliar project, fix an error message, write tests or create small tools. Because it works in any folder, people also use it on notes and documents, not only on code.
How Claude Code works (the simple loop)
Every task follows the same loop. You describe the goal. Claude reads the relevant files, makes a plan, edits files and runs commands. If a test fails, it reads the error and tries again. You review the diff and approve or reject. You stay in control through permission prompts, plan mode and an undo command.

What you need before you start
- A computer with a terminal (macOS, Linux, Windows with PowerShell or CMD, or WSL).
- A Claude account with a paid plan that includes Claude Code, for example Pro, or an Anthropic Console account. Most surfaces need one of these.
- A project folder. For Windows, installing Git for Windows is recommended so Claude Code can use its Bash tool.
- Basic comfort with opening a terminal. If you have never used one, search for the official terminal guide on the Claude Code docs.
How to install Claude Code
The recommended way is the native installer, which also updates itself in the background.

macOS, Linux or WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
Windows CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
The installer shows little output while it downloads. When it finishes, open a new terminal window and run claude --version. If you see a version number, it works. If the terminal says the command is not found, the install folder is not on your PATH yet, and the official troubleshooting page explains the fix.
Other options: Homebrew (brew install --cask claude-code) and WinGet (winget install Anthropic.ClaudeCode). These do not update automatically, so you upgrade them yourself from time to time.
Your first session in 5 minutes
- Open a terminal and go to a project:
cd your-project - Start Claude Code:
claude - Log in when it asks (browser sign-in with your Claude account).
- Ask something harmless first: give me an overview of this codebase
- Go deeper: how is authentication handled? or find the files that handle user login
Starting with questions is the safest habit. You learn the project, and Claude learns your wording, before it changes anything.
Where you can use Claude Code
All surfaces share the same engine, so your project instructions, settings and connected tools work everywhere.

| Surface | Best for |
|---|---|
| Terminal (CLI) | Full features, scripting and automation |
| VS Code and Cursor extension | Inline diffs, @-mentions and plan review inside your editor |
| JetBrains plugin | IntelliJ, PyCharm, WebStorm and other JetBrains IDEs (needs the CLI installed) |
| Desktop app (Code tab) | Visual diff review and several sessions side by side. Needs a paid plan |
| Web and mobile (claude.ai/code) | Long tasks without local setup, working on repos you do not have on your machine |
The permission modes: how much freedom Claude gets
Claude Code asks before it does risky things. You choose how often it asks.

| Mode | What runs without asking | Caution |
|---|---|---|
| Manual (default) | Reads only | Asks before most edits and commands |
| acceptEdits | Reads, file edits and common file commands inside the working folder | Protected paths still ask |
| plan | Reads only. It proposes a plan | No edits until you approve the plan |
| auto | Most actions, reviewed by a separate classifier model | Reduces prompts but is not a guarantee of safety |
| dontAsk | Only pre-approved tools | Good for CI. Anything else is denied |
| bypassPermissions | Everything | Use only in isolated containers or virtual machines |
In the terminal, press Shift+Tab to cycle between modes. To start in plan mode, run claude --permission-mode plan. As a beginner, use plan mode for big changes: Claude shows what it intends to do and waits for your approval.
--dangerously-skip-permissions (the same as bypassPermissions) on your everyday computer. It is meant for disposable containers.Prompt recipes that work
These patterns come from the official workflows and my own client projects. Adapt the wording to your project.
Understand a new codebase
give me an overview of this codebase
explain the main architecture patterns used here
what are the key data models?
Fix a bug
users report login fails after the session times out.
look at token refresh in src/auth/, write a failing test that
reproduces it, then fix it
Write tests
find functions in the notifications service that are not covered by tests
add tests for them, run the tests and fix any failures
Commit and open a pull request
commit my changes with a descriptive message
create a pr
Point at files and images
- Type
@and a path, for exampleexplain the logic in @src/utils/auth.js, to include that file. - Paste a screenshot of an error or a design with
Ctrl+V(on Windows and WSL alsoAlt+V) and ask what is wrong or to build the layout.
The more specific your prompt, the fewer corrections you need. Name the file, describe the symptom and say what "fixed" looks like.
CLAUDE.md: give Claude a memory for your project
CLAUDE.md is a plain text (markdown) file that Claude reads at the start of every session. Put what Claude cannot work out alone: how to run tests, naming rules, folders to avoid and team decisions.

Run /init and Claude analyzes your project and writes a starter file. Then trim it. The docs recommend staying under about 200 lines, because every line takes some of Claude’s attention. Make instructions checkable: "Run npm test before committing" is better than "test your changes".
# Build
- Install: pnpm install
- Test: pnpm test (run before every commit)
- Lint: pnpm lint
# Layout
- API handlers: src/api/handlers/
# Rules
- Never edit files under generated/
Personal notes that should not be shared go in CLAUDE.local.md, which you add to .gitignore.
The commands every beginner should know
Inside a session, type / to see commands. These are the ones I use most.

| Command | What it does |
|---|---|
| /init | Creates a starter CLAUDE.md |
| /clear | Starts a new conversation with empty context. Use it between unrelated tasks |
| /compact | Summarizes the conversation to free space |
| /resume | Returns to an earlier conversation |
| /model | Switches the model |
| /effort | Sets how deeply Claude thinks |
| /plan | Enters plan mode |
| /diff | Shows the changes in your working tree |
| /code-review | Reviews your current changes for bugs |
| /security-review | Checks your branch for security problems |
| /rewind | Rolls code and conversation back to a checkpoint |
| /context | Shows what fills the context window |
| /usage | Shows cost, plan limits and activity |
| /doctor | Checks your setup and suggests fixes |
Useful flags from your shell: claude --continue resumes the latest session in this folder, and claude --resume lets you pick one.
Best practices for better results
- Give Claude a way to check its work. A test command, a linter or a build. Without a check, "done" only means it looks done.
- Plan first for big changes. Use plan mode and read the plan before approving.
- Keep sessions focused. Run
/clearwhen you switch tasks. Long mixed conversations cost more and confuse the answer. - Steer early. Press Esc to stop Claude when it heads the wrong way. Press Esc twice (or run
/rewind) to go back to an earlier point. If you corrected the same mistake twice, clear the session and write a better first prompt. - Review every diff. You are responsible for the code you merge.
- Ask for evidence. Request the command it ran and its output, not just "tests pass".
Go further: connect tools and automate
MCP: connect other apps
The Model Context Protocol connects Claude Code to tools such as Notion, Jira, Slack or Google Drive. Example from the docs:
claude mcp add --transport http notion https://mcp.notion.com/mcp
Run /mcp to see connected servers. Turn off the ones you do not need, because they add to the context.
Skills, hooks and subagents
- Skills: saved procedures, such as a release checklist, that you can run with a slash command.
- Hooks: commands that run automatically at fixed points, for example formatting a file after every edit. Use hooks for rules with no exceptions, because instructions in CLAUDE.md are guidance that Claude can still weigh.
- Subagents: helpers with their own context, good for research or independent review. They use extra tokens, so use them when the benefit is clear.
Run in scripts and in parallel
Non-interactive mode runs a prompt and exits, which fits scripts and CI:
git log --oneline -20 | claude -p "summarize these recent commits"
To work on two things at once without edits colliding, give each session its own git worktree: claude --worktree feature-auth. The repository needs at least one commit first.
Protect your secrets
Use permission rules to block files Claude must never read. A deny rule applies in every mode:
{
"permissions": {
"deny": ["Read(./.env)", "Read(./secrets/**)"]
}
}
Save that in .claude/settings.json in your project. Never paste passwords, API keys or customer data into prompts, and never give it production access you would not give a new intern.
Cost and limits
Claude Code usage counts against your plan limits. Run /usage to see where it goes. Habits that save usage: clear the context between tasks, give specific prompts, use a lighter model for simple jobs and avoid leaving loops or many subagents running without a reason.
Common beginner mistakes
- Starting in the wrong folder, so Claude sees the wrong files.
- Giving a vague goal like "make it better".
- Approving changes without reading the diff.
- Using bypass mode on a personal computer.
- Never writing CLAUDE.md, then repeating the same instructions every day.
- Keeping one endless conversation for many tasks.
A 7-day practice plan
| Day | Practice |
|---|---|
| 1 | Install, log in, ask for a codebase overview |
| 2 | Fix one small bug with a failing test first |
| 3 | Run /init, shorten the CLAUDE.md it creates |
| 4 | Try plan mode on a medium change and review the plan |
| 5 | Add tests for one untested function |
| 6 | Create a commit and a pull request with Claude |
| 7 | Connect one MCP tool and add one deny rule |
Frequently asked questions
Is Claude Code free?
The tool installs for free, but most surfaces need a Claude subscription that includes it, such as Pro, or an Anthropic Console account. Check the pricing page for current plans.
Do I need to know how to code?
It helps, because you must judge the result. Beginners can still use it to learn a codebase, ask questions and make small changes with careful review.
Is Claude Code safe to use?
It asks permission by default and has modes, deny rules and a sandbox. Safety depends on your settings and on you reviewing changes, so avoid bypass mode outside isolated containers.
What is the difference between Claude and Claude Code?
Claude is the AI assistant you chat with. Claude Code is the tool that lets it work on your files and commands. See my Claude AI beginner guide for the chat side.
Does Claude Code work in VS Code?
Yes. Install the Claude Code extension, open the Command Palette and choose Claude Code to open it in a tab.
Can it work without the internet?
No. It needs a connection to Claude’s models, so plan for being online.
Official sources used: Overview, Common workflows, CLAUDE.md, Permission modes, Commands and Best practices.
Want Claude Code and AI automation working for your business?
I build AI automations and help with SEO, Meta and Google ads and Facebook account recovery. See my AI automation services, contact me or book a consultation. My AI books are on the books page.
Need a website for your project? I host my own sites on Hostinger. Use my link hostinger.com/Monirul and coupon code Monirul for a discount (affiliate link: I may earn a commission at no extra cost to you). See the hosting guide.
