MiaAInow
How AI Works·

Why Is Claude Code So Good? It's the Harness

The harness around Claude Code is something you can tune yourself: below is my instructions-file template, plus a little experiment where you remove one part at a time and watch where the AI crashes.

Remove one part

The task: sort the photos in the Downloads folder into folders by month. Four switches: loop, hands, desk, brakes. Turn one off and watch which step goes wrong. It's a scripted simulation of the four things from the video, not a real AI call.

ExperimentHarness TeardownOpen →

The instructions-file template

The three small things from the end of the video, written up as a template. In Claude Code, save it as CLAUDE.md in the project root; Codex, Cursor and Gemini CLI read AGENTS.md; in a chat window, paste it into custom instructions or the project description. Replace the (example) lines with your own.

CLAUDE.md / AGENTS.md · template

This project

Where things are

  • (example) Photos live in Photos/, one folder per year-month, e.g. Photos/2024-03/
  • (example) Deliverables go in Output/

Rules

  • Never delete an original file; move or copy only
  • Before doing anything, show me a list of the steps you plan to take

How to check your work

  • When you're done, check it yourself before telling me (example: open the page and look / run the tests / count the files in each folder)
  • If the check fails, keep fixing; don't say "done"

Stop and ask me before

  • Deleting or overwriting files
  • Spending money (payments, orders, subscriptions)
  • Sending anything out (email, messages, posts)

Mia's tips

  • Write it like a map: where things are, what the rules are. Not an encyclopedia; the longer it gets, the less it can hold on to.
  • The "how to check your work" section is the most valuable part: giving it a way to check its own work beats you hunting for mistakes afterwards.
  • Not sure what to write? The thing you find yourself reminding it of every single time is exactly what belongs in here.

For jobs that run for hours, add this

Based on Anthropic's approach when AIs hand a big project over to each other: a feature list, a progress log, and a save after every item.

Long tasks · extra section

How to run a long task

  • First time: list the features to build in features.md, each marked "not passing yet"
  • After that, pick one feature per session, and mark it "passing" only after testing it by hand, like a real user would
  • After each feature, write one line in progress.md (what's done, what's next) and save (git commit)
  • Before starting, read progress.md and features.md; don't judge "already done" by feel

Questions? Join the discussion on YouTube