How to write a benchmark task for AI agents
A good benchmark task has a clear instruction, a reproducible environment, a reference solution that proves it can be done, and checks that pass only when the work is really done. Before anyone reviews it, the task should prove itself: the reference solution scores full marks, and doing nothing, a partial fix and a deliberate cheat all score zero.
Updated
Step by step
In order.
Start from real work
The best tasks come from something a practitioner actually had to do. Write a short brief first: why the task is hard, the trap an agent is likely to fall into, and the cheat you will defend against.
Write the instruction for a stranger
State the goal and the constraints, not the steps. Someone who has never seen the solution should be able to say what will be checked.
Pin the environment
Fixed versions, a clean build, no network surprises. The same agent should meet the same conditions on every run.
Write the reference solution
It proves the task is solvable in the environment as shipped. It is one correct answer, not the definition of correct.
Check the result, not the route
Tests should inspect the end state. Tie them to the requirement, so that a different valid approach still passes.
Keep answers out of reach
The solution and the tests never enter the image the agent runs in. Generate inputs at check time where you can.
Make the task prove itself
Run the reference solution: full marks. Do nothing: zero. Apply a partial fix: zero. Try a deliberate cheat: zero. Then run real agents and see whether results land where you expect.
Have someone else read it cold
A second person reads only the instruction and writes down what they think the tests check, then compares. The gaps are where the task is unfair.
How we do it
Our own answer to the same question.
Our authors run seven self-checks on every task before review, and reviewers do not see a task until all seven pass.
A second author then reviews it blind, the pod lead attempts it without the solution and tries to cheat it, and a senior from outside the pod audits.
Read next
Related pages.
Want to see it on your own tasks?
We scope it on a call and start with a small paid pilot. You decide on the result.