People keep asking me how to start with agents. This is the list I'd hand them.
Some items come from posts I've written here. The rest come from research I read for my last post, where someone measured the thing instead of guessing. Each one fits on an index card.
Before the agent starts
Price the nail first. Agents make every task look worth automating. Before anyone writes code, estimate what the work is worth, how much of it the agent can take, and how often it will succeed. More on this.
Start with a check, not a plan. Give the agent a test it can run that says pass or fail. The strongest results I found all started that way. More on this.
Name the destination and the reefs. Say what done looks like and what must never happen. Leave the route to the agent. More on this.
Tell it the code wins. In one study, agents followed an outdated instruction file 90% of the time, even when they noticed it was wrong. One sentence fixed most of it: when the docs and the code disagree, the code wins.
Ask fewer, better questions. If the agent interviews you, cap it. In one study of customer-service agents, a limit of one to three questions kept about 90% of the benefit and cut the person's effort by a third or more. Jane Street's tutor skill says it well: "a confirmation costs one word."
While it works
Give it ways to look. Let it start the app, read the logs, run the tests, and click through the product. Write scripts just for the agent if you have to. A description of your system goes stale. The system itself can't lie.
Put the reefs in the hull. People approve 93% of permission prompts anyway, so prompts protect less than they seem to. Block what must never happen instead: a sandbox, protected files, production kept out of reach.
Don't let it grade its own homework. Kent Beck watches for agents "disabling or deleting tests." A self-improving research agent once faked a log that said its tests had passed. Keep the checks where the agent can't edit them, like your CI.
Make error messages teach. OpenAI's Codex team writes lint rules whose errors explain how to fix the problem, so the agent corrects itself. Factory puts it best: "Advice does not cause builds to fail."
Write progress to a file. Long tasks outlive any one conversation. Anthropic's long-running agents keep a feature list in JSON, every item starting as failing, because models are less likely to mangle JSON than Markdown. Let automatic compaction do its job, and start a fresh conversation when you move from exploring to building.
Run several attempts when the check is good. In one experiment, an agent solved 42% of tasks on its first try and 71% when it got 16 tries. Tokens are cheap. Your attention isn't.
After it's done
Measure, don't trust the feeling. In METR's study, developers were 19% slower with AI but believed they were 20% faster. If the agent feels worse this week, rerun last week's tasks before you blame the model.
Review is the new bottleneck. In a study of 802 developers, pull requests grew 3.1 times while reviewers grew 1.5 times. The share where a person left a review comment fell from 39% to 21%. Ask for evidence with every change, like tests run, screenshots, and logs. Then read the code where the evidence is thin.
Show what changed, not everything. Agents make more output than anyone can read. Separate signal from noise before it reaches a person. More on this.
Record old systems before you change them. For legacy code, save what the running system does with real inputs. In one study, 8 to 17% of the tests an agent wrote for old code locked in existing bugs.
Hunt bugs from a fix, and ask for proof. Start from a bug you already fixed and look for its relatives. Accept only findings that come with a crash or a failing test. As unproven reports piled up, curl's share of valid bug reports fell below 5%, and it ended its bug bounty.
Delete at every upgrade. Each skill is a workaround for one model. When a new one ships, turn the extras off, rerun your checks, and add back only what fails. More on this.
Half of this will expire
The models will make some of these lessons obsolete, and I'll delete those items the way I'd delete a skill.
I expect the ones about the environment to last: a check, the reefs, and a world the agent can read. As I wrote about agent factories, the robots will change. The floor won't.