• Home  
  • Claude Code for Beginners: What the AI Coding Agent Does and How to Start
- Software and Applications

Claude Code for Beginners: What the AI Coding Agent Does and How to Start

Claude Code is Anthropic’s AI coding agent that works in your terminal. Install it, sign in, and make your first code change with plan mode and checkpoints.

A developer's hands typing on a laptop showing plain abstract code blocks, with a printed checklist and a coffee cup beside the keyboard in bright daylight.

Claude Code is Anthropic’s AI coding agent. It runs in your terminal, reads your whole codebase, and turns plain-language instructions into real code changes: new features, bug fixes, refactors, tests and documentation. You describe the task, it shows you the change, and you approve it before anything is written to your files.

Key takeaways

  • Claude Code edits files, runs commands and works with git, inside your terminal, your editor, a desktop app or the web.
  • You need a paid Claude plan or a Console account. The Free plan does not include Claude Code.
  • Install it with the native installer, check it with claude --version, then start it in a project folder with claude.
  • Plan mode lets Claude Code research and propose a change without touching your files until you approve it.
  • Checkpoints let you rewind code and conversation to an earlier prompt. They do not replace git: rewind cannot undo shell-command changes.

What Claude Code is, and what it is not

Anthropic describes Claude Code as an AI-powered coding assistant that understands your entire codebase and can work across multiple files and tools. You can ask it to explain a function, find a bug, add a feature across several files, write tests for the change, and commit the result. It shows you exactly what it changed so you can review it.

It is not a replacement for a developer, and it is not unsupervised. Claude Code can misunderstand a requirement, pick the wrong file, or write code that looks right and fails in an edge case. That is why it is built around approvals: permission modes decide what it may do without asking, plan mode makes it propose before it edits, and checkpoints let you rewind. Review every change before you accept it, as you would review a colleague’s pull request. Coding agents are a crowded field: Cursor built its Composer 2 model on Kimi K2.5, while Claude Code is Anthropic’s own agent, built around its Claude models.

What you need before you start

Three things: a code project to work in, a terminal, and an account that includes Claude Code. The account is the part beginners most often get wrong, so check it first. Claude Code is included in all paid Claude plans. It is also available through a Console account with pay-as-you-go API credits, or through cloud providers such as Amazon Bedrock and Microsoft Foundry.

PlanPrice, checked 27 November 2026Claude Code
Free0 dollarsNot included
Pro20 dollars a month, or 17 dollars a month billed annuallyIncluded
Max100 dollars a monthIncluded, 5 times the Pro usage
Ultra200 dollars a monthIncluded, 10 times the Pro weekly usage
Enterprise20 dollars per seat a month, plus usage at API ratesIncluded

Prices come from Anthropic’s pricing page and can change.

Install Claude Code in five minutes

Anthropic recommends the native installer. Open a terminal, run the install command for your system from the Claude Code documentation, and wait: the installer shows no progress while it downloads, which is normal. When it finishes, open a new terminal window and run claude --version. A working install prints a version number. If your shell says claude is not found, the install directory is not on your PATH yet, and the documentation has a fix-your-PATH guide for that error. Alternatives include Homebrew, WinGet, and apt, dnf or apk on Linux. On native Windows, install Git for Windows too, so Claude Code can use the Bash tool. Start in a project you can afford to break, with git set up and a clean working tree.

Start your first session

Move into your project folder and type claude, then press Enter. On first use, Claude Code asks you to sign in; follow the prompts to complete authentication in your browser. If you have set the ANTHROPIC_API_KEY environment variable and you approve the key when asked, the login prompt is skipped. Claude Code stores your login; re-authenticate with /login when you switch accounts. Once the prompt appears, it shows the version, the current model and the working directory above it.

Your first prompts should be questions, not changes. Ask Claude Code to explain the project structure, or to summarise what a particular file does. Then make a small first change, such as fixing a typo in a comment or adding a missing check to a function. Describe what you want in plain language: Claude Code finds the file, shows you the change, and asks for approval if your permission mode requires it. Say yes, then run your tests.

Your first three tasks

Three tasks cover most of what beginners use Claude Code for. First, explore: ask it to map the codebase or explain a module. Second, change: ask for a bug fix or a small feature, and review the diff before you accept it. Third, use git through conversation: ask it to summarise your changes or write a commit message. A few commands are worth memorising: claude "fix the build error" starts a session with a task already given, claude -p "explain this function" runs one question and exits, and claude -c continues your most recent conversation. Inside a session, /clear starts a new conversation and /exit leaves Claude Code.

Stay in control: permission modes and plan mode

Permission modes are the safety system. A mode sets what Claude Code may do without asking you first. Press Shift+Tab in the terminal to cycle through the modes. New terminal sessions start in auto mode, where a separate classifier reviews most actions instead of asking you. Auto mode reduces prompts, but Anthropic’s own documentation warns that it does not guarantee safety, so do not treat it as a substitute for reviewing changes.

ModeWhat runs without askingWhen to use it
Default (manual)Reads only; edits and most commands ask firstLearning the tool
Accept editsReads, file edits and common file commandsRoutine work with tests and git
PlanReads and exploration only; no edits until you approve the planChanges you are unsure about
AutoMost actions, reviewed by a classifier instead of youFast iteration
Bypass permissionsEverythingIsolated containers only

Plan mode is the single most useful feature for a beginner. Enter it with /plan or Shift+Tab, and Claude Code will read files, search the project and run commands to explore, then write a plan and wait for your approval before touching any source file. Start a session in plan mode with claude --permission-mode plan, and use it for every change where the cost of a mistake is higher than the cost of reading a plan first. In VS Code, the plan opens as a document where you can add inline comments before work begins. You can also pre-approve safe, repetitive commands such as running your test suite. Never run with permissions bypassed on your main machine, and never approve a command you do not understand.

Undo mistakes with checkpoints and rewind

Claude Code saves a checkpoint of your code before each prompt you send that starts a turn. If a change goes wrong, press Esc twice on an empty prompt, or run /rewind, pick the message to go back to, and choose what to restore: code and conversation, conversation only, or code only. Checkpoints travel with the conversation, so rewind works after you resume a session.

Know the limit, because it catches people out. Checkpointing tracks only edits Claude Code makes with its own file-editing tools. A file deleted with a Bash command such as rm is not tracked, so rewind cannot bring it back. That is why git is the real safety net: commit before a risky step, and treat checkpoints as an undo for ordinary edits, not as version control.

Teach Claude Code about your project

Claude Code remembers a project through a file called CLAUDE.md, which you write in the project root. It loads at the start of every session, so it is the right place for the things you would otherwise repeat in every prompt: how to build and test the project, which commands are safe, the coding style to follow, and anything it should never do. Keep it short and specific; a few dozen lines of real project rules beat pages of generic advice. Current models run with a 1-million-token context window in Claude Code, according to Anthropic’s model documentation, so long sessions are possible, but start a fresh session with /clear for a genuinely new task.

Once the basics are comfortable, three extensions are worth knowing about. MCP servers connect Claude Code to outside tools and data sources. Skills package repeatable workflows, and hooks run small automated checks at set points in a session. None of these is needed on day one. AI tools keep expanding beyond code, too: Gemini Notebook turns research notes into interactive sites. More practical software guides live in our Software and Applications archive.

Five beginner mistakes to avoid

  1. Approving everything without reading it. Auto mode and accept-edits mode are conveniences, not supervision. Read the diff and run the tests before you move on.
  2. Starting with a huge task. A vague request such as “rebuild the auth system” invites a vague result. Break the work into small steps and approve each one in plan mode.
  3. Skipping git before risky work. Commit first, then experiment. Checkpoints cannot undo a shell deletion, and a clean commit is the only undo that always works.
  4. Assuming it knows your project. Claude Code reads what is in the folder, not what is in your head. Write the build commands, the test commands and the rules that matter into CLAUDE.md.
  5. Leaving one session running for everything. Long conversations accumulate stale context. Use /clear for a new task and /resume to return to an old one.

Frequently asked questions

Is Claude Code free?

No. Claude Code is included in all paid Claude plans, starting with Pro at 20 dollars a month billed monthly, and through a Console account with pay-as-you-go API credits. The Free plan does not include it. Usage shares the same limits as the rest of your plan.

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

You need enough to review what it produces. Claude Code writes the code, but you are responsible for the result, so you should be able to read a diff and run tests. It works best as an accelerator for someone who can already follow code.

Is it safe to let Claude Code edit my files?

It is safe when you set it up that way: work in a git repository with a clean tree, use plan mode for changes you are unsure about, and review every diff. Never run it with permissions bypassed on your main machine.

Sources and Further Reading

1 Comment

  1. […] need Claude Code installed and signed in; if you have not set it up yet, our Claude Code for Beginners: What the AI Coding Agent Does and How to Start covers installation, sign-in and your first code change. You also need a terminal open in a project […]

Leave a comment

Your email address will not be published. Required fields are marked *