Teach Your Agent to Prove It's Done — Nick Nisi & Zack Proser, WorkOS
- Source
- youtube.com
- Publisher
- AI Engineer
- Author
- AI Engineer
- Date
Context
Nick Nisi and Zack Proser of WorkOS, a company that sells sign-on and user-management tools to software makers, argue in an AI Engineer workshop that a 's report that it has finished is only worth trusting if the agent can check the running application the way a developer would. Their demo app, a waitlist page called Midnight Snack Club, makes the point. Nisi enters an email, the page shows a success message and the address appears on screen, so a test that looks only at the page would pass. Reload the page and the list is empty, because nothing was ever saved. An agent that wrote that code could truthfully say it builds, runs and passes its tests, and still be wrong.
Their fix is a built for the specific app, which the agent can run as often as it likes. For the workshop they wrote one called Snack. It starts and stops the app and runs a quick health check on its dependencies. It can also act like a user, joining the waitlist, reloading or resetting the data, and show the agent what a developer would look at: a JSON snapshot of the page, browser storage, console logs and screenshots. A prove command runs a browser test with Playwright that adds an email and confirms it was saved. Prose instructions such as reminding an agent to reload and check leave room for interpretation, while a single command returns the same kind of output every time, and an explicit error tells the agent what to fix before it tries again. The moment the storage check comes back empty, as the speakers put it, is when the agent learns it is not done.
Exact checks have a limit, which the speakers handle with a second kind of check. If the page says the visitor is in and their seat is confirmed where the test expects the word waitlisted, a strict text match fails even though the feature works. For that they use a fast, inexpensive judging model that decides whether the result means the right thing without matching it word for word. They also warn that a screenshot attached to a pull request is not proof by itself unless the agent really took the steps to reach that state, since it may have followed a path no user could take.
The tool has to be built for each application, which is why they do not offer a general one, and the case for it rests on the speakers' own experience rather than measured results. Proser says the people producing very large numbers of pull requests, citing the developer Lauren Tan, whose line that nothing else matters if an agent cannot verify its own work the speakers quote early on, describe this kind of tool as what unlocked their speed. On how to make agents use the checks, one speaker leans toward enforcing them in continuous integration because a model may ignore a skill file, while the other suggests an instruction in the repository's file to run them before opening a pull request. This explanation is based on a machine transcript of the workshop.
- Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
- CLI tool — A command-line capability an agent can discover and compose through shell commands.
- Repository instructions — Versioned guidance that tells agents how a repository is structured and verified.
- Large language model — A model trained on large amounts of data to process and generate language.






