The eval suite comes first and the prompt comes second. Here is the order we work in, and why the failing test is the thing we hand over at the end.

Every workflow we have shipped since 2023 started the same way: someone writes ninety historical cases with known-correct answers, and then we write the thing that has to pass them. It sounds backwards. It is the only reason we can put an agent into a client account and sleep.
A prompt written before the tests is a prompt written against imagined inputs. You end up with something that handles the cases you thought of at 11pm on a Tuesday, which are rarely the cases that arrive on a Monday morning.
Writing the suite first forces the argument to happen early, with the client in the room. What counts as correct here? What must never happen? The answers are usually more specific than anyone expected, and they are much cheaper to discover before the build than after.
Three groups, in this order:
If the suite passes on the first run, it is not a good suite. It means the cases were chosen to flatter the prompt rather than to break it.
Writing ninety cases takes about three days of one person’s time, most of it spent reading history rather than writing code. Against a six week build that is a rounding error, and it is the part clients keep once the engagement ends.
No agent reaches a client account without a failing test written first and a costed baseline beside it. That is the whole method. Everything else is detail.
Two weeks watching the real work, with the eval suite written before anything ships.
Two weeks. If we can’t find 500 hours a year to return, it’s free.
hello@agentiq.studio
+1 (415) 555-0138
410 Fremont Street, Suite 300
San Francisco, CA