Vibeleaderboard
← All Intel
Intel / post

Start with verification: make agents prove their own work

Source
x.com
Date
lauren@poteto

okay now that we're past that tired discussion, let's talk about how we get agents to write more correct code (note: this won't mean the code will be Good, but it should at least work) this is the entrypoint into your most basic agentic loop: verification. it means giving your agent the ability to verify its own work, most commonly by actually running and interacting with it like a real user would. whether your interface is a cli/api/ui/whatever, you want to start here so that your agents can close the loop. if you want you can even have your agents model the problem in TLA+ and attempt to verify if you have things like state machine bugs. the point is to give yourself confidence in the agents' work by them producing some kind of artifact that proves that 1) that the work is correct, 2) that it matches what you intended, and 3) is easier to review than reading the whole PR. most commonly this would be a video and/or screenshots for UI work. everything else like skill packs are really bonus and optional, all you need is a way for your agents to verify their own work to start using them more autonomously. some caveats are that not all domains can be verified easily yet, and that…

Read the full post on X

Context

In a post on getting agents to write more correct code, the author, who posts as lauren, argues that the first thing to give a is a way to verify its own work, most often by running the software and using it the way a real user would, whether the interface is a , an API or a UI. The post calls this the entry point to the most basic : the agent changes the code, exercises the result and sees whether it works, so it can close the loop. In the author's view, everything else, packs included, is a bonus and optional; a way for agents to verify their own work is all you need to start using them more autonomously.

What the author wants the agent to produce is an artifact that proves the work is correct, shows it matches what you intended, and is easier to review than reading the whole pull request. For UI work that is most commonly a video or screenshots. For state machine bugs, the post suggests the agent can even model the problem in TLA+, a language for writing a system's design precisely enough that a tool can check it. In a later post, the same account announced a pstack release that adds a meta-skill that generates formal verification suites, with TLA+ for state machines as one example. The author is explicit about what verification buys: code that should at least work, not necessarily good code. Not every domain can be verified easily yet, and verification is an approximation that can still be wrong, which the author compares to trusting that a human actually ran the code they wrote.

Terms in this piece · Glossary
  • Agent mode — A mode in which one agent can inspect, edit, run commands, and iterate toward an outcome.
  • Terminal and shell — A text interface for navigating files and running programs.
  • agentic loop — The cycle an agent runs in: decide, call a tool, read the result, decide again — repeating until the goal is met or a stop condition fires.
  • agent skill — A reusable instruction file that teaches an agent how to do one job well — the procedure, the tools, and what counts as done.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from lauren
Recommended reads