Projects & coding · Tutorial 01

Claude Code: set up your first project session

Open a practice folder, inspect its files, and establish how the agent will make and check changes before building.

A paper coding arm edits repository file cards as failed and passing code strips circle a test loop.
Reading time
8 min
Last updated
November 2026

0 of 3 complete

Complete & next →

Essentials · Step 2 of 3 · View the route

Official sources checked and lesson updated: November 27, 2026. This refresh adds an explicit planning-mode start, recovery steps, and a review checklist. The exercise is authored practice; no authenticated Claude Code session was run for this refresh.

A coding agent can work with project files and run commands. That makes the first useful skill knowing which project it is working in and how you will check what it changes.

Bring the SPEC.md from the project-scope lesson. You will finish this lesson with a working session in a practice folder and a reviewed implementation plan.

Install and verify access

Follow Anthropic’s official quickstart for the installation method that matches your operating system. It covers terminal installation, authentication, and supported access arrangements. Follow the account route you actually use; a subscription and API billing are different arrangements.

After installation, run this in your terminal:

claude --version

It should print the installed version. If it fails, use the quickstart’s installation troubleshooting before continuing. Do not solve an installation failure by pasting unrelated commands from a different platform.

Create a new folder named expense-practice with your file manager. Put only SPEC.md inside it. Open a terminal in that folder, then start:

claude --permission-mode plan

This explicitly selects Plan mode, rather than relying on the starting mode configured on your machine. Anthropic documents it for exploring files and proposing changes before editing source. Planning can still involve shell commands; it is not a sandbox. Start without permission-bypass flags.

Check the working directory shown by the app. Follow the sign-in flow if needed. Installation and access requirements are documented in the quickstart; check them before making a purchase.

Inspect the workspace before writing

Send this first:

Read SPEC.md in this practice folder.
Do not create, change, move, or delete files yet.
Tell me the project directory, the files you found, the expected total,
and the behavior required for empty or invalid input.

Compare the response with the file you wrote. The sample project’s grand total is 35.00. If the agent reports a different directory or cannot find the file, correct that before proceeding.

A workspace is useful context, not proof that every possible tool action is confined to it. Inspect the app’s active permission mode. Review consequential operations, especially commands affecting other folders or external services.

Recover before adding more instructions

If the folder is wrong, end this session, open a terminal in expense-practice, and run the same Plan-mode command again. Avoid asking the agent to move files into place: the first task is to establish which folder you are using.

If SPEC.md is missing, check its filename in your file manager. A text editor may have saved SPEC.md.txt. Correct the name yourself and repeat the inspection prompt. If the file is present but the answer uses different totals, ask the agent to quote the relevant input rows before planning.

If installation or sign-in fails, keep the exact error and use Anthropic’s troubleshooting guide. Do not include credentials or account tokens in a shared error report. A blocked login is not evidence that you need a different paid plan.

Ask for a small implementation plan

Plan a one-page local expense summary from SPEC.md.
Use the smallest approach that can demonstrate the requested behavior.
List the files to create, how to open the result, and how to run the checks.
Explain any software installation you think is necessary before installing it.
Do not add accounts, external services, deployment, or extra features.
Do not implement yet.

For this exercise, a plan that proposes a database, an account system, or a paid service has expanded the task. Ask the agent to return to the brief.

Keep the plan understandable: what reads the sample rows, what calculates the totals, and what displays them? You do not need to know every syntax rule to notice that the plan has added a server you never asked for.

Agree on what evidence to keep

Ask the agent to retain the check command and its actual result, plus instructions for opening the page. “Tests pass” is less useful than a command you can run again.

Anthropic recommends giving Claude a concrete check to run and reviewing the result against your specification. It also documents CLAUDE.md for persistent project instructions. For this small exercise, a clear SPEC.md and direct instructions are enough. Claude Code best practices.

Use this review card before accepting the plan:

CheckEvidence to look for
Correct workspaceThe reported directory ends in expense-practice, and the agent found your SPEC.md.
Small scopeThe proposed file list explains each file and how you will open the local page.
Correct calculationThe plan checks food 20.00, travel 5.00, supplies 10.00, and grand total 35.00.
Failure casesIt includes empty input returning 0.00 and non-numeric input producing a visible error.
Repeatable verificationIt names the check command, or gives exact manual steps if the page needs no test runner.

These are expected outcomes from the fictional brief, not results already obtained. During the build, record what actually happened next to each expectation. For a manual check, keep the input and visible result; for an automated check, retain the command, output, and any failure. Ask for the page-opening steps separately so a passing calculation test does not replace looking at the page.

Ready to build

You are ready when the agent is in the intended folder, has read the correct brief, and has proposed a local implementation with concrete checks. Copy the reviewed plan into a file beside the brief yourself. Keep the session in Plan mode until you are ready to implement. In the terminal, Shift+Tab cycles permission modes; check the displayed mode before submitting a build request. Anthropic documents Manual mode as asking before most edits and commands, so it is a useful choice for reviewing your first build step by step. Permission-mode controls.

Continue to build the expense summary. If you already use another coding agent, you can follow that exercise with it. The required evidence stays the same.

For historical analysis of the September 2026 usage-limit announcement, see the dated usage-limit benchmark record. It is background material, not a prerequisite or a current quota promise.

Sources and review scope

Official Anthropic documentation checked November 27, 2026:

The expense totals and review card are this lesson’s acceptance criteria. Documentation review verifies the described controls; it does not establish that your installation, account, or eventual build will pass them.

Check your understanding

Q1.The agent reports a different working folder. What comes next?
Q2.The plan adds an account service to the local expense exercise. What should you do?
Q3.What evidence should accompany a passing test claim?
Q4.What is the deliverable for this setup lesson?