You've used Claude in a chat. A coding agent is Claude with hands: it works inside your project folder, reads your files, edits them, runs your commands and looks at what happened. Claude Code is Anthropic's coding agent, and it's the one this course and the build-along courses use.
Verified claude-code 2.1.317
Mechanically it's an agent loop over a fixed tool set: read, search, edit and write files, run shell commands, fetch the web, plus whatever skills and MCP servers you add. Each tool result is appended to the context and the model picks the next call, until it ends its turn. The quality of the result is bounded by what it can read and what it can check.
ReadIt looks around: the files you named, your CLAUDE.md, a search for the code that matters.
step 1 of 5
To install it on macOS, Linux or WSL (checked November 2026):
curl -fsSL https://claude.ai/install.sh | bash cd your-project claude
On Windows PowerShell it's irm https://claude.ai/install.ps1 | iex. One honest note: Claude Code needs a paid Claude plan or an API (Console) account. The free claude.ai plan doesn't include it. This lesson's exercise runs here for free.
By default Claude Code asks before it edits a file, runs a command or goes online. Press Shift+Tab to cycle modes, including plan mode, where it researches and proposes but doesn't touch your code.
Three things decide most outcomes: the search space (named files or a pattern to follow beat "somewhere in src/"), the success signal (a reproducing test, a typecheck, a script that diffs output; anything with an exit code), and evidence (ask for the command it ran and its output rather than "done"). Anthropic's guide traces "said it was done and wasn't" to a missing check, and "built something different" to information it couldn't get from the repo.
Your turn. Moon Café's website shows Sunday as "open" when the café is closed. The opening-hours logic is in src/hours.ts, its tests are in tests/hours.test.ts, and pnpm test runs them. Rewrite the vague brief so an agent could do it right first time, and ask for a plan before any change. This sandbox Claude can't see a repo, so its reply is the plan it would follow.
Goal Brief an agent with where to look, what's wrong, how to prove it's fixed, and a plan first
What good looks likeThe coach checks the reply
- Says where to looknot checked yet
- Says what's wrongnot checked yet
- Says how to check itnot checked yet
- Asks for a plan firstnot checked yet
- Ran at 1.0not checked yet
- Replies with a plannot checked yet
- Describes the symptom a user sees, not only “a bug”not checked yet
- Gives a pass-or-fail check: a failing test to write, or a command to runnot checked yet
- Keeps the job to this one bugnice to have
- The reply is a plan of steps, not finished codenice to have
Run your prompt and the replies land here.
Try sending the vague draft first. What does Claude have to guess?