Part 5 · Advanced and specialisedLesson 19 of 22
Advanced~11 min

Claude Code

In short: Claude Code is an AI coding agent in your terminal. It reads your files, proposes changes you approve, and runs the whole build loop, one approved step at a time.

What you'll be able to do: Understand what Claude Code is, how its approve-first loop works, and run it on a small task in a real codebase.

Everything so far has lived in a chat window or in Cowork. This lesson steps onto different ground: Claude Code, an AI agent that works in your terminal and edits real code. It is the most technical tool in the course, and the most powerful for one job: building and changing software.

You do not have to be a developer to get value from this lesson. Plenty of business people run small scripts, tweak a website, wrangle a spreadsheet of data, or work with a technical team and want to understand what their engineers are now using every day. Even if you never open a terminal, knowing what Claude Code is and how it behaves will sharpen how you talk about AI at work. And if you are comfortable poking around, this is the lesson where AI stops answering questions and starts doing the work.

Last checked: July 2026. Claude Code changes quickly. Prices, commands, and features may have moved on; treat the specifics as a snapshot and check the linked docs for the current detail.

What Claude Code actually is

Claude Code is a coding agent that runs in the terminal. The terminal (also called the command line) is the plain text window where you type commands to your computer instead of clicking buttons. Claude Code lives there. You describe what you want in plain English, and it reads your files, writes and changes code, runs commands, and works through multi-step jobs, checking its own results as it goes.

Three things make it different from a chat about code:

It is the same agent idea from lesson 1.1, pointed squarely at software: give it a goal, and it plans and carries out the steps rather than handing you a to-do list.

How Claude Code works You type in the terminal to Claude Code, which reads your files, works with Git and GitHub, and runs tests and commands, asking before it changes anything. You, in the terminal Claude Code Your files Git & GitHub Tests & commands Asks before it changes anything

Who it is for, and why a non-coder might still care

The honest answer: Claude Code is aimed at people who work with code, and it is happiest in the hands of someone who can read a diff and knows roughly what "run the tests" means. Anthropic says you do not need to know how to code to use it, and that is true for small, self-contained tasks. But the further you get from things you can check, the more you are trusting output you cannot judge, and that is where trouble hides.

So here is a fair way to place yourself:

The rule of thumb: the value of an AI that writes code is capped by your ability to tell whether the code is right. Claude Code raises the ceiling on what you can build; it does not remove your responsibility for the result.

Getting in: install and first run

Setup is short. You install Claude Code once with a single command for your operating system (macOS, Linux, or Windows), then sign in with your Claude account. The linked quickstart walks through the exact command, which changes often enough that it is not worth reprinting here.

Once installed, the pattern is always the same:

cd my-project
claude

That is: move into the project folder, then start Claude Code. It opens a prompt right there in the terminal, already able to see the project around it. There is no upload step, which is the first thing that surprises people coming from chat. You are not handing it files; you are standing it inside your workshop.

From there you just talk. Type a message, press Enter. A good first line is not "fix everything", it is something small and legible:

Explain what this project does and how it is organised. Keep it to a short tour.

Type /help at any time to see the built-in commands. You do not need most of them on day one.

The core loop: ask, review the diff, approve

This is the part worth slowing down for, because it is what separates a useful session from a scary one.

When you ask Claude Code to change something, it does not silently rewrite your files. It shows you a diff, a side-by-side of exactly what it wants to add or remove, and waits. You get three choices:

The same gate applies to running commands. This approve-first loop is the safety model: nothing touches your files or your machine until you say so. New users should stay in approve-first mode until they have a feel for how the agent behaves on their project.

The approve-first change loop You ask, Claude Code proposes a diff, you choose Yes, Yes and stop asking, or No, then it applies the change and can run the tests, and the loop repeats. Ask in English Proposes a diff You choose Yes / Yes, stop asking / No Applies the change and runs tests, then repeat

What it can do beyond single edits

If it only edited one file at a time, Claude Code would be a fancy autocomplete. The power is that it strings steps together into real work:

A realistic first task, start to finish, might read:

Read issue #142. Draft a plan to fix it, wait for my okay, then make the change on a new branch and run the tests. Do not open a pull request until I have reviewed the diff.

Notice how much of that sentence is control: plan first, new branch, wait, review before the PR. That is the shape of a good instruction to an agent.

Give it standing context: CLAUDE.md, skills, and connectors

Everything you learned about context in Part 2 applies here, with a coding twist.

The theme is consistent across the whole course: the more standing context you give it, the less you repeat yourself, and the closer its first attempt lands.

Where it fits: chat, Cowork, or Claude Code

You now have three ways to put Claude to work, and picking the right one is a real skill.

Chat versus Cowork versus Claude Code Chat answers in the window; Cowork works on the files on your computer; Claude Code works in a real codebase in the terminal. Chat Answers, drafts, and thinking Best for: a fast reply Cowork Files on your computer, no terminal Best for: documents Claude Code A real codebase, in the terminal Best for: code

Use chat for a quick answer, a draft, or thinking something through. Use Cowork when the work is files on your computer: a spreadsheet, a deck, a folder of documents. Use Claude Code when the work is code in a real project, and you want it read, changed, tested, and committed. They share the same brain; they differ in where they reach.

Staying safe and in control

Claude Code is powerful precisely because it can act, so a few habits matter more here than anywhere else in the course:

Cost and plans

Claude Code comes with the paid Claude plans: Pro and Max include it with usage limits that scale with the tier, and teams can also bill usage through the Claude API. Heavy, long-running sessions use more than a quick chat, so keep an eye on usage the same way you learned to keep the context window lean in Part 4. As always, the linked pages carry the current numbers.

Try it

If you have a terminal and a small project handy, this takes ten minutes. If you do not, read it as a walkthrough so the shape is familiar when you need it.

  1. Open your terminal, move into a small project folder (cd into it), and start Claude Code.
  2. Ask it for a short tour: "Explain what this project does and how it is organised." Read the reply. This alone is often a revelation on unfamiliar code.
  3. Now ask for a tiny, safe change, for example: "Add a short comment at the top of the main file explaining what it does. Show me the diff first."
  4. When the diff appears, read it, then choose Yes or No. Feel the checkpoint. That pause is the whole safety model.
  5. If you use Git, ask it to "commit this on a new branch with a clear message." You have now run the core loop end to end.

The goal is not the comment. It is to feel how an agent proposes, waits, and acts, so you trust the loop before you point it at something that matters.

(General exercise. Role and industry versions come once accounts are in.)

Key terms

Quick quiz

Question 1 of 5

Five questions on how Claude Code works and how to stay in control. Ace them and you finish Part 5's first lesson.

1. Where does Claude Code run?

Further reading