In an earlier post I argued that agents need a destination, not a route. Name where you're going, mark the reefs, and make the water readable.

Then I went looking for evidence. I read what the agent builders publish, studies on how agents start work, and reports from people who shipped real projects with them.

One pattern showed up in every strong result. The work began with a check the agent could run, one that says pass or fail.

The best results started with a test, not a plan

Nicholas Carlini had 16 agents write a C compiler. It cost just under $20,000, and the compiler builds Linux. Most of his effort, he wrote, went into "the tests, the environment, the feedback." His warning: the check must be "nearly perfect, otherwise Claude will solve the wrong problem."

Simon Willison ported an HTML parser to JavaScript in about four hours. It passes roughly 9,200 tests from a suite that already existed.

Anthropic's guide for Claude Code names what happens without one. Claude stops when the work looks done, and "that makes you the test suite."

Plans did less than I expected. In one timed trial of GitHub's Spec Kit, 33.5 minutes of agent work took about 3.5 hours of human review. It produced 2,577 lines of Markdown for 689 lines of code.

A study of planning found that plans help weak models. For strong ones, they mostly cut cost.

The check is the island. It's the one thing the navigator can point at for the whole voyage.

Five ways to start

Where the check comes from depends on the project. Here are five common starts.

A new project: build the check first

Say you want a small app that turns photos of receipts into a monthly spending sheet. Before you ask for code, collect ten receipts and write the rows you expect from each. That list is the destination. Every item starts out failing, and the agent's job is to make them pass.

Anthropic used the same idea for a long-running build: a list of over 200 features, all marked failing. Later agents could only flip an item to passing.

If the idea is still fuzzy, let the agent interview you, but keep it short. Answer questions about what done means and what it must not touch. Leave the route to the agent.

A project with a spec: shrink it first

You have a 30-page product doc. Don't paste it in and ask for a plan. Ask the agent to turn it into three short lists: checks a reviewer could run, things that must not happen, and open questions. You read one page instead of thirty, and you answer only the questions the doc can't.

Keep the full doc in the repo, where the agent can look things up when it needs to.

An existing codebase: run the tests first

Your first prompt can be four words: "First run the tests." It tells the agent that tests exist, how to run them, and that they matter. It also shows you what was broken before the agent touched anything.

Then add one sentence: when the docs and the code disagree, the code wins. In a study of 320 agent runs, agents followed an outdated instruction file 90% of the time, even when they noticed it was wrong. One sentence like that fixed most of it.

A bug: reproduce it before you fix it

A user reports that exports fail for names with an apostrophe. Before any fix, get a failing test that shows the bug, and check that test yourself. In one study, up to a third of patches that passed the agent's own reproduction still failed the real tests.

To hunt for bugs nobody has reported, start from one you already fixed. Google's Big Sleep found its first real bug that way: it read a recent fix and looked for unfixed relatives. Then ask for proof before you read a single report: a crash, a failing test, a sanitizer warning. Without proof, you're reviewing guesses.

A legacy system: record what it does

You inherit a twenty-year-old billing system with few tests and nobody who remembers why it works. Don't start by changing it. Start by recording it: feed it real inputs and save what comes out. That record is the check every later change has to match.

Be careful with tests the agent writes for old code. One study found that 8 to 17% of them lock in existing bugs as expected behavior. A recording of the real system is safer.

Then have the agent draw a map of the system and quiz you on it. Jane Street published a socratic tutor skill that teaches one question at a time. Where your answer and the agent's map disagree, one of you is wrong. Either way, you just found something.

Put the reefs in the hull, not in the notes

A rule written in a prompt is a suggestion. In July 2025, Replit's agent deleted a production database during a declared code freeze. The fix wasn't a stronger instruction. Replit separated development and production databases, so the agent couldn't reach production at all.

Asking for permission doesn't hold either. Anthropic found that people approve 93% of permission prompts anyway.

So make "never" mechanical: blocked commands, protected files, a sandbox, branch protection. The agent can explore freely because the reefs can't move.

Don't grow a hairball

In another post I argued that every skill expires at the next model upgrade. The research backs a sharper version.

A study from ETH Zurich found that AGENTS.md files didn't make agents more successful, and raised cost by over 20%. The most common content, an overview of the repo, did nothing measurable. Anthropic's guide now has a list called "What you can stop doing." It includes shouting in capital letters, telling the model to "think harder," and describing your architecture. In the guide's words: "Claude reads the repo itself."

Here's the rule I'd use: keep what runs, cut what only explains.

  • Keep the command that runs the tests, the checks, the blocked paths, and the budget.
  • Cut the tour of the codebase, style advice a linter can enforce, and tips written for last year's model.
  • At each upgrade, remove a rule and rerun the checks. If they stay green, the rule stays gone.

Checks are what make ablation safe. Without them you're guessing which rules matter, so you keep them all, and they pile up.

Let the model discover

Today's models already know a lot: how compilers work, what a good test looks like, how billing systems usually break. That knowledge is latent. What they don't know is your world.

Most prompts try to describe that world in prose, and the prose is out of date by the time the agent reads it. Give the agent ways to look instead.

Let it run the app, read the logs, run the tests, and search the code. A description goes stale. The environment can't lie about itself.

Then split the work in two, the way people talk about explore and exploit:

  1. Explore. Let the agent map the territory. It runs things, reads things, and writes down what it found and what surprised it. Tokens are cheap here, and getting cheaper: Epoch AI finds the price of a fixed level of capability falling more than tenfold a year.
  2. Exploit. Start a new conversation with the map, the check, and the reefs, and let it build. With a good check, you can run several attempts and keep the one that passes.

Your attention is the expensive part. Spend tokens on exploring. Spend your attention at the check.

One correction to my earlier post. I said the agent should check in when something surprises it. The research says agents rarely notice their own surprises.

So make surprises loud: a check that won't pass, a blocked action, a budget that runs out. Those are the moments to bring a person in.

The navigator read the water

The Chuukese navigator didn't need a map, because the ocean told him where he was. Our job isn't to write better maps for agents. It's to build water they can read: a check they can run, reefs they can't cross, and a world they're allowed to explore.

Start there, and the model will show you what it already knew.