Discover Claude Code and install it
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"]
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.
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:
# 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.
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 firstCLAUDE.mdfile (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.
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.
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
- Install Node.js 18+ if you haven't already (
node --versionto check), then install Claude Code withnpm install -g @anthropic-ai/claude-code. - Create a folder called
marketing-aiand launchclaudeinside it. - Sign in to your Anthropic account when the tool asks you to.
- Ask Claude: "introduce yourself and tell me what you can do in this folder."
- Ask it to create a
README.mdfile describing Lea's project, and watch the permission prompt followed by the diff. - Type
/helpand browse the list of built-in commands. - Note the difference from a simple chatbot: it has access to your files and your terminal, and it chains actions on its own.
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
claudeinside your project. - Always launch Claude Code from the project folder: that's its working root.
- Commands to know:
/help,/init,/clear,/model,Escto 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?
2. For most users, which interface is recommended?
3. Why should you launch claude from your project folder?
4. Which key interrupts Claude mid-action?
5. When should you use a lighter model instead of the most capable one?