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.

How Claude Code works: describe, read, plan, edit, run tests, review and approve
The Claude Code loop: you set the goal, Claude does the work, you approve the result.

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.
Plans: on the official pricing page, Pro ($20 per month, or $17 per month billed yearly) adds Claude Code, and Max starts at $100 per month with about 5x the usage of Pro. Prices can change, so check claude.com/pricing before paying.

How to install Claude Code

The recommended way is the native installer, which also updates itself in the background.

How to install Claude Code on macOS, Linux and Windows in three steps
Install, check the version, then start Claude Code in your project folder.

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

  1. Open a terminal and go to a project: cd your-project
  2. Start Claude Code: claude
  3. Log in when it asks (browser sign-in with your Claude account).
  4. Ask something harmless first: give me an overview of this codebase
  5. 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.

Claude Code works in the terminal, IDEs, desktop app, web and mobile, and CI tools
One engine, many places: terminal, IDE, desktop, web and mobile, CI and chat.
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.

Claude Code permission modes from Manual to bypassPermissions
Permission modes from the most careful to fully automatic.
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.

Safety rule: never use --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 example explain 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 also Alt+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.

CLAUDE.md file locations and a short example for Claude Code
CLAUDE.md can live at organization, user, project and local level.

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.

Cheat sheet of useful Claude Code slash commands
A cheat sheet of the most useful slash commands.
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

  1. 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.
  2. Plan first for big changes. Use plan mode and read the plan before approving.
  3. Keep sessions focused. Run /clear when you switch tasks. Long mixed conversations cost more and confuse the answer.
  4. 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.
  5. Review every diff. You are responsible for the code you merge.
  6. 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.

Digital marketing consultationGet a clear growth plan for your businessA one-on-one session on SEO, ads, analytics and AI automation.Book a consultation
HOSTINGER DEALExtra 10% OFFNew customers · eligible annual plansUse code MONIRULClaim offer →
Affiliate link: I earn a commission if you buy through it, at no extra cost to you.
Sheikh Monirul Hasan
About the author
Sheikh Monirul Hasan
AI-Powered Digital Marketing Consultant
Sheikh Monirul Hasan is a Digital Marketing Consultant, Growth Strategist, AI Automation Specialist, and Industry Leader with over 7 years of professional experience. He is the founder of SMH Digital, helping businesses, startups, and entrepreneurs achieve sustainable growth through data-driven marketing, SEO, Google & Facebook Ads, web analytics, and AI-powered automation.

Throughout his career, he has served 150+ global clients, managed 2,000+ marketing campaigns, trained 6,000+ students, and contributed to over $100M in client revenue impact. He is passionate about digital transformation, business innovation, and helping organizations leverage modern technologies to generate qualified leads, increase revenue, and scale their businesses.
error: You Don\'t Have The Rights To Copy The Content !! This website is under the copyrights law of Bangladesh

Pin It on Pinterest

Share This