Setup
Complete this before the session — takes about 10 minutes.
Primary surface: VS Code with the Claude Code extension.
Every step is shown using the VS Code extension.
The same steps also work in the Claude Code CLI —
CLI-specific commands are noted where they differ.
What you need
- Claude Code CLI The command-line tool. The VS Code extension does not install it separately. Install →
- VS Code + extension Install the Claude Code extension, then sign in with your work account. Install →
- uv Runs the MCP server and the ruff formatter hook. Install →
- git Required for all tasks. Windows: install Git for Windows — it includes Git Bash, which the hook needs. Install →
Choose a project to work in
All tasks run inside a project folder. Pick the option that suits you — your choice is remembered if you navigate away.
signup-api (sample project)
You'll create signup-api — a small web API with a known validation bug.
It makes the sample project feel realistic — small enough to hold in your head.
Create the project folder and initialise git.
Create a signup-api folder, then open it in VS Code: File → Open Folder.
Initialise git. In the VS Code integrated terminal (Terminal → New Terminal):
git init
Create .python-version — one line, no quotes.
Create .python-version.
Paste the content and save (Cmd+S / Ctrl+S):
3.12
Create pyproject.toml.
Create pyproject.toml.
Paste the content and save (Cmd+S / Ctrl+S):
[project]
name = "signup-api"
version = "0.1.0"
description = "Lightweight sign-up validation service."
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115",
"uvicorn>=0.32",
]
[dependency-groups]
dev = [
"httpx>=0.27",
"pytest>=8",
"ruff>=0.8",
]
[tool.pytest.ini_options]
pythonpath = ["."]
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "I", "B", "UP"]
Create main.py — the sign-up endpoint and validation.
Create main.py.
Paste the content and save (Cmd+S / Ctrl+S):
"""Sign-up validation service."""
from fastapi import FastAPI
from fastapi.responses import JSONResponse
from pydantic import BaseModel
app = FastAPI(title="signup-api")
class SignUpRequest(BaseModel):
email: str
name: str
def _validate_email(email: str) -> str | None:
"""Return an error string, or None if the email looks valid."""
if "@" not in email:
return "must contain @"
local, domain = email.split("@", 1)
if not local:
return "local part is empty"
if "." not in domain:
return "domain must contain a dot"
return None
def _validate_name(name: str) -> str | None:
"""Return an error string, or None if the name looks valid."""
if not name:
return "must not be blank"
return None
@app.post("/signup")
def sign_up(body: SignUpRequest):
"""Register a new user.
Returns 200 {"message": "signed up"} on success, or
400 {"error": "<field>: <reason>"} on bad input.
"""
if err := _validate_email(body.email):
return JSONResponse(status_code=400, content={"error": f"email: {err}"})
if err := _validate_name(body.name):
return JSONResponse(status_code=400, content={"error": f"name: {err}"})
return {"message": "signed up"}
Create test_main.py — existing tests that must keep passing after your fix.
Create test_main.py.
Paste the content and save (Cmd+S / Ctrl+S):
"""Tests for the sign-up endpoint."""
from fastapi.testclient import TestClient
from main import app
client = TestClient(app)
def test_valid_signup():
r = client.post("/signup", json={"email": "user@example.com", "name": "Alice"})
assert r.status_code == 200
assert r.json() == {"message": "signed up"}
def test_name_with_spaces():
# Existing clients send full names; must not regress.
r = client.post("/signup", json={"email": "user@example.com", "name": "John Smith"})
assert r.status_code == 200
def test_missing_at_symbol():
r = client.post("/signup", json={"email": "notanemail", "name": "Alice"})
assert r.status_code == 400
assert r.json()["error"].startswith("email:")
def test_empty_name():
r = client.post("/signup", json={"email": "user@example.com", "name": ""})
assert r.status_code == 400
assert r.json()["error"].startswith("name:")
def test_error_shape():
# Error response must always be {"error": "<field>: <reason>"}.
r = client.post("/signup", json={"email": "bad", "name": "Alice"})
body = r.json()
assert set(body.keys()) == {"error"}
assert ":" in body["error"]
Install dependencies and verify the tests pass.
In the VS Code integrated terminal:
uv sync
uv run pytest -q
Open the project in VS Code and open the Claude Code panel.
The workspace root is signup-api/. All tasks happen inside this folder.
Keep this page open in a browser tab alongside VS Code — you'll copy settings snippets from here during the session.
Your own project
Use any project you already have — any language, any stack.
The only requirements are:
- No existing Claude Code setup in the folder (no
.claude/, noCLAUDE.md, no.mcp.json) - Small enough that you can focus on it during a 40-minute hands-on — not because Claude Code needs it, but because you do
- You can open it as a folder in VS Code
Open your project folder in VS Code.
File → Open Folder, then open the Claude Code panel.
Confirm there is no existing Claude Code setup.
Check that your project root does not already contain:
CLAUDE.md.claude/folder.mcp.json
If any of these exist, pick a different project — the tasks build these from scratch and would conflict with what's already there.
Keep this page open alongside VS Code.
Every task has an "On your own project" note with the exact adjustments to make — for example, substituting your own test and lint commands wherever the sample project's are shown.