Mastering Claude Code — From Zero to 10x — 1. Discover Claude Code and install it

17 min read min de lecture
Chapter 01

Discover Claude Code and install it

Chapter 1 of 10 · 10%

Chapter objectives

  • Understand what sets Claude Code apart from simple autocomplete
  • Install the tool and launch your first session
  • Choose between the VS Code extension and the terminal

Why Claude Code changes the game

Most AI coding tools just complete a line. You type the start of a function, the tool guesses the rest. That's useful, but it's passive assistance: all the orchestration intelligence — what to do, in what order, how to verify — stays in your head. Claude Code does something different: it's an agent. It reads your files, runs commands in your terminal, writes code, launches tests, and reasons across multiple steps to reach a goal you give it in plain language.

The difference is fundamental. A classic chatbot replies with text you have to copy-paste yourself. An autocomplete suggests the next line. Claude Code acts: if you ask it to "fix the bug in the publishing script," it will find the relevant file, read the code, understand the error, propose a fix, apply it, then rerun the script to confirm it works. You supervise. It's the shift from being the doer to being the director.

For Lea, that means she won't be "asking an AI for snippets of text." She'll hand it a complete mission — "publish this topic across my 4 networks" — and Claude orchestrates everything: research, writing, visuals, publishing. And as you'll discover, what makes this approach truly powerful is that it compounds: every automation you build stays available forever.

The agentic loop: read, execute, write, reason

Under the hood, Claude Code runs in a loop: it observes the state of your project, decides on an action, executes it, observes the result, then decides what comes next. The loop continues until the goal is reached — or until it needs you to make a call. It's exactly like delegating to a colleague: you give the mission and the constraints, they handle the intermediate steps.

flowchart LR
  U["You: mission in plain language"] --> C["Claude Code"]
  C --> L["Reads your files"]
  C --> X["Runs commands"]
  C --> W["Writes code"]
  L --> R["Reasons and chains the steps"]
  X --> R
  W --> R
  R --> OK["Goal reached"]
An agent: a mission as input, then a read / execute / write / reason loop until the result is in.

This loop has an important practical consequence: the quality of what you get depends on the quality of the mission you give. "Write me a post" will produce something mediocre. "Write a 150-word LinkedIn post about zero waste, warm tone, ending with an open question" will produce something usable. This whole course teaches you to encode those specifics once and for all, instead of retyping them every time.

The goal of this course — to go from "I've heard about AI" to "AI saves me several hours every week," with frameworks you reuse endlessly.

Installing Claude Code

Claude Code installs via npm, the Node.js package manager. So you need Node.js 18 or later — if you don't have it, download the LTS version from the official Node.js site; installation takes two minutes. Then open a terminal and run:

bash
# Check that Node.js is installed (18+ required)
node --version

# Install Claude Code globally
npm install -g @anthropic-ai/claude-code

# Move into your project folder
cd my-project

# Launch Claude Code
claude

On first launch, Claude Code asks you to sign in to your Anthropic account. Two options: a Claude subscription (Pro or Max), or an API key from the Anthropic console billed by usage. To get started, the subscription is simpler: a predictable monthly quota, no surprises. Once authenticated, you're ready.

On Windows, Claude Code runs natively in PowerShell, but many users prefer to launch it inside WSL (Windows Subsystem for Linux) or Git Bash to get a more standard Unix command environment. If a shell command behaves strangely, that's the first thing to check.

Always launch claude from your project folder, not from your home directory. Claude Code uses the current folder as its working root: that's where it reads files, and where it will look for your configuration (.claude/, CLAUDE.md) in the coming chapters.

Your first session

Once inside a session, you talk to Claude in plain language, like a colleague. But a few built-in commands — the ones starting with / — are worth knowing from day one:

  • /help — lists all available commands.
  • /init — analyzes your project and generates a first CLAUDE.md file (the project memory; we dedicate chapter 8 to it).
  • /clear — wipes the conversation to start from a clean context.
  • /model — shows and changes the model in use.
  • Esc — interrupts Claude mid-action if you see it heading in the wrong direction.
  • @path/to/file — references a specific file in your message so Claude reads it.

Take five minutes to play: ask it to "list the files in this folder and describe what you understand about the project." You'll see the mechanics live: it proposes running a command, asks for your permission, runs it, reads the result, and gives you a summary. That systematic permission prompt can feel heavy — which is exactly the subject of chapter 2.

VS Code extension or terminal?

Claude Code works two ways inside VS Code: the official extension (sidebar interface) or the integrated terminal (the claude command). Both run exactly the same engine — the difference is purely ergonomic.

VS Code extension (recommended)Clean, guided interface, visual diffs of every change, ideal for 99% of people. Handles everything this course covers.
TerminalVim mode for faster editing, scriptable, plus advanced options like the browser mode that lets Claude test your web apps. For users comfortable on the command line.
This entire course works identically in the extension and in the terminal. Start with the extension if you're new: you'll see file changes as colored diffs, which helps enormously in understanding what Claude is doing.

Which model should you use?

Claude Code lets you pick the model via /model. The simple rule: use the most capable model available for almost everything — technical reasoning, building skills, API integrations, debugging. These tasks require sustaining a chain of reasoning over many steps, and that's exactly where the most powerful models pull ahead.

Reserve the lighter (and cheaper) models for simple, repetitive tasks: reformatting a file, renaming variables, generating variants of text that's already approved. For this course, keep the most powerful model everywhere — orchestration and subagent coordination benefit from it directly. One reasoning error in the middle of a 10-step chain costs far more in time than the price difference between two models.

What you'll build in this course

Each chapter adds a brick to Lea's system. Chapter 2: the settings that make work flow. Chapter 3: a first /post skill that publishes to one network. Chapter 4: the brand voice so the posts sound human. Chapter 5: a hook that blocks any non-compliant publication. Chapter 6: subagents that publish to 4 networks in parallel. Chapter 7: the capstone command /plan-week that schedules an entire week. Chapter 8: the project memory that makes everything survive from one session to the next.

The order isn't arbitrary: it's the natural progression of any serious automation. First make it work once (skill), then make it reliable (hook), then scale it (subagents), then capitalize on it (memory). You'll be able to replay this exact sequence on any other project — accounting, customer support, competitive intelligence.

🛠️ Your turn

Context

You're starting Lea's project. Before writing any automation, you need a working environment and a hands-on feel for what separates an agent from a chatbot. It's also the moment to verify that your authentication and basic tools are in place — everything else in the course builds on them.

Instructions

  1. Install Node.js 18+ if you haven't already (node --version to check), then install Claude Code with npm install -g @anthropic-ai/claude-code.
  2. Create a folder called marketing-ai and launch claude inside it.
  3. Sign in to your Anthropic account when the tool asks you to.
  4. Ask Claude: "introduce yourself and tell me what you can do in this folder."
  5. Ask it to create a README.md file describing Lea's project, and watch the permission prompt followed by the diff.
  6. Type /help and browse the list of built-in commands.
  7. Note the difference from a simple chatbot: it has access to your files and your terminal, and it chains actions on its own.
Hint — If the claude command isn't found, check that npm's global folder is in your PATH (npm config get prefix shows its location), or simply restart your terminal.

In summary

  • Claude Code is an agent: it reads, executes, writes, and reasons in a loop across multiple steps.
  • A chatbot replies with text; an agent acts on your files and your terminal under your supervision.
  • One-command npm install (Node.js 18+ required), then claude inside your project.
  • Always launch Claude Code from the project folder: that's its working root.
  • Commands to know: /help, /init, /clear, /model, Esc to interrupt.
  • The VS Code extension suits most people; the terminal offers Vim and advanced options.
  • Use the most capable model for technical work; lighter models for repetitive tasks.

Quiz — check your understanding

1. What best distinguishes Claude Code from a classic autocomplete?

Claude Code is an autonomous agent capable of chaining actions, not just completing text.

2. For most users, which interface is recommended?

The extension offers a guided interface with visual diffs that covers the whole course. The terminal remains an advanced option.

3. Why should you launch claude from your project folder?

Claude Code uses the current folder as its root: that's where it reads your files and your project configuration.

4. Which key interrupts Claude mid-action?

Esc interrupts the current action — essential when you see Claude heading in the wrong direction.

5. When should you use a lighter model instead of the most capable one?

Multi-step reasoning benefits from the most powerful model; simple repetitive work can run on a lighter, cheaper one.

Auteur(s)

R

REHOUMA Haythem

Haythem Rehouma est un ingénieur et architecte IA et cloud, formateur et enseignant technique, avec un profil orienté IA médicale, AWS, MLOps, LLM/RAG et vision par ordinateur.