Drive Claude Code through a complete frame โ plan โ approve โ build โ review โ test โ commit loop, scaffold THG Radar, and learn when agents shine vs. when they wreck things.
spine step: scaffold THG RadarD2 Spec Simulator10-question quiz ยท pass 8/10
A coding agent is an unusually fast, unusually literal engineer. It will build exactly what you said โ which is rarely exactly what you meant. Your job splits cleanly:
| You own | The agent owns |
|---|---|
| Frame โ what & why, constraints, non-goals | Exploring the codebase |
| Approving the plan | Writing the code |
| Reviewing the diff (M3 teaches the 10%) | Running mechanical fixes |
| Deciding to commit / deploy | Drafting tests |
Claude Code's plan mode is read-only: the agent researches your codebase and proposes an implementation plan, but cannot edit files or run mutating commands until you approve. Shift+Tab cycles permission modes (default โ acceptEdits โ plan). (Verified against code.claude.com docs, 2026-09-03.)
Heuristic: the agent is safest where a mistake is cheap to see and cheap to undo. That's why git commits are your undo button and why steps stay small.
The spine project starts now. THG Radar = internal tool tracking client integration go-lives (Cloudflare Worker + Hono; D1 and UI come in later modules). Real commands:
mkdir thg-radar && cd thg-radar && git init
npm create cloudflare@latest . -- --type hello-world --lang ts
claude # start Claude Code in the repo
First prompt โ notice it frames, constrains, and states non-goals:
We're building THG Radar: a small internal tool tracking client
integration go-lives. Stack: Cloudflare Worker + Hono, D1 later,
plain HTML UI later.
For now, in PLAN MODE first: propose the minimal scaffold โ
a Hono app with GET /health returning {"ok":true} and a static
index page saying "THG Radar". Nothing else.
Non-goals for this session: no database, no auth, no UI framework,
no extra dependencies beyond hono.
Approve the plan โ let it build โ review the diff (git diff) โ test locally (npx wrangler dev, hit http://localhost:8787/health) โ commit:
git add -A && git commit -m "scaffold: hono worker with /health"
Pick a feature, choose a vague vs a sharp spec, and see the plausibly different agent outputs side by side, divergences called out. The lesson: output quality is set before the agent types.
Pass = 8/10 (80%). Unlimited retries; only passes are recorded.