How to Trust AI Coding Agents: A Verification Playbook in Nine Steps

Most teams using AI coding agents hit the same ceiling. One agent feels magic, three feel busy, and by the tenth you are reading diffs all day, which means you are the bottleneck again. Lauren Tan, an engineer at Cursor, says she got past that ceiling by changing what she trusts: not the model, but the checks around it. Her slide reads "i shipped 3000+ PRs in 5 months". This guide rebuilds her method as nine steps, with her on-screen material quoted exactly, and shows how a small team can borrow it.

AI agent verification: you can't run 100 agents if you read every diff. Nine steps from Lauren Tan's Cursor workshop on trusting AI coding agents.

The playbook in one table

Layer Steps What it gives you
Verification 1 to 3 The agent proves its own change on the running app
Skills and evals 4 and 5 Engineering judgment written down and tested
Scale 6 Trusted work moves from your laptop to the cloud
Architecture 7 and 8 The codebase makes the right path the easy one
Cost 9 Spend judged on return, not on habit

Why we care about checks more than cleverness

I've built, scaled, and sold three companies, generated over $85 million in the last seven years in my own companies. Every system that scaled had a check a junior person could run without me in the room. Agents are no different.

Evidence Source
"i shipped 3000+ PRs in 5 months" (3,159 commits shown) Lauren Tan's slide, Aug 12, 2026
create- and maintain-verification-skill added to pstack github.com/cursor/plugins, commit e42d29f, Jul 12, 2026
Grok 4.6: $2.00 per 1M input tokens, $6.00 per 1M output docs.x.ai model page, checked Oct 25, 2026

How to trust AI coding agents: the verification layer

The core idea of ai agent verification is simple: before a human looks at a change, the agent should have already run the real product, clicked through the feature, and shown evidence that it works.

Step 1: Know where you sit on the trust curve

Her first drawing plots "trust" against "number of agents", with ticks from "1" and "1 to 5" up to "hundreds" and "thousands". Be honest about your position. If you read every line an agent writes, your trust is low and your agent count will stay small no matter how good the model gets. The goal of the rest of the playbook is to move you along that curve.

Step 2: Give your agents verification, hands and eyes on the real app

Her slide asks "how do i trust my agents more?" and answers with three bullets: "verification", "high quality skills that teach agents to work like real software engineers: e.g. pstack", and "refactoring/rewriting architecture to be agent friendly". For verification, she showed a skill called Control Glass, whose doc begins:

Drive a running Cursor dev build over CDP: inspect the DOM, take screenshots, click, type, read the accessibility tree, evaluate JS, profile, throttle CPU/network, stream console or network output, manage worktree-isolated parallel instances.

Your version depends on your product. For a web app it is a browser driver such as Playwright. For an API it is a script that calls real endpoints. The test is whether the agent can see what your users see.

Step 3: Write a feature map so the agent knows how to reach every feature

Hands without directions are useless. Her first verification attempts clicked around aimlessly. The fix was a map, one file per feature:

This directory maps every user-facing Glass feature from the user's point of view: what it is, how to get to it, how to use it, and how to drive it over CDP.

A feature map for ai agents also turns vague bug reports into routes: a screenshot from a customer becomes "open this panel, press this shortcut, check this element".

AI agent verification at scale: skills, evals and cloud agents

Step 4: Package engineering judgment as skills, with pstack as the example

A skill is a markdown file of instructions the agent loads when it needs them. Her team publishes a free bundle, pstack, which includes create-verification-skill and maintain-verification-skill. Per the commit that added them, they write a verify skill plus a feature map for your app and prove it once end to end. You can write your own instead; the point is that judgment lives in a file, not in your head.

Step 5: Test skills with evals and hill climb the score

She compares an eval to unit testing, only for agents. Give a sub agent a realistic task with the skill loaded, have another agent grade the result, and run it across the models you use. Then iterate: change the skill, rerun, and keep going until the scores stop improving. Without this, every edit to a skill is a guess.

Step 6: Start local, then move trusted work to cloud agents

Her bug agent, Benny, picks up reports from Slack, reproduces them, and replies. One reply on screen reads "Reproduced but already fixed on main". She ran this kind of work on her own machine first and only moved it to cursor cloud agents once the local results held up. Scaling an untrusted process just multiplies waste.

Hard checks: ai agent verification in the codebase

Step 7: Make the architecture agent friendly so the easy path is the right one

Her framework doc lists what an agent tends to do, including "copy the nearest working pattern;" and "choose the shortest path that compiles;". Instead of fighting that, the design uses it. Two of its five rules: "The conventional path requires fewer decisions than a shortcut." and "Forbidden dependencies fail mechanically." If agents take the shortest path, make the shortest path correct.

Step 8: Enforce standards in hard layers, then turn review comments into rules

Her stack of enforcement, top to bottom: "1. codebase 2. static analysis (lint/compiler/ci) 3. rules/bugbot 4. skills 5. "style guide"". Only the first two turn CI red. The rest are soft, and agents skip them now and then. Her team bans some patterns outright in CI. And when you catch yourself writing the same PR comment twice, treat it as a missing rule and encode it.

Step 9: Judge the token bill on ROI

Asked whether this only works with unlimited tokens, she said "it's a question of ROI". Setting up verification, maps and evals costs tokens up front. The return is that cheaper, simpler agents can then ship safely. Price it against an engineer's hour, not against zero.

Where this pays off for a small team

You don't need hundreds of agents to benefit from ai agent verification. A three person product team can start with one verification skill for its most fragile flow, a five file feature map, and one CI rule for the mistake that keeps coming back. That alone moves review time from reading code to reading evidence.

Worked example: a booking widget team

A five person team runs a booking widget used by 400 clinics. They use two coding agents and review every diff, about 6 hours a week.

  1. Trust curve: they sit at "1 to 5" and want 10.
  2. Verification: a Playwright skill that opens the widget, books a slot, and screenshots the confirmation.
  3. Feature map: eight files (search, slot picker, payment, reminders, and so on), each with the route and the selectors.
  4. Skill: the verify skill plus a short "how we test payments" file.
  5. Eval: three sample tasks, graded on whether the screenshot evidence matches the request. Two rounds of edits lift the pass rate from 1 of 3 to 3 of 3.
  6. Local first for two weeks, then a cloud agent that reproduces new support tickets overnight. 7 and 8. A lint rule blocks direct database calls from the UI folder; the most common review comment becomes a CI check.

  7. ROI: if review time falls from 6 hours to 2, the setup tokens pay back within the first month at typical rates.

Want verification built into your AI workflow?

We set up one verified agent workflow for your product: a verification skill, a feature map for the flows that matter, and the CI checks that make it stick, under /services/ai-automation-agency/.

Free tools

One free, MIT-licensed skill for Claude, Codex and Grok comes with this guide: Verify Kit (checks a feature map has how to reach each feature, its selectors and what correct looks like; scores a skill's eval rounds and flags where a judge model disagrees; turns repeated review comments into hard checks; enforces a directory boundary in JavaScript and TypeScript; and works out the token bill against the review hours saved). Download the skill (free zip)

FAQ

What is ai agent verification?

Having the agent run and check its own change on the real product, and show evidence, before a person reviews it.

Do I need Cursor or pstack?

No. The ideas work with any agent that can run tools. pstack is one free example, built for Cursor.

Is this only for big teams?

No. Start with one skill and one flow; see the small team section above.

Can verification still be wrong?

Yes. Lauren Tan herself wrote on X (Oct 12, 2026) that it is an approximation. Keep hard checks in CI.

Sources

What would you ship if the agent proved its own work?

Book a call and we'll map the one check that would let you stop reading every diff.

Book an AI Automation Call