Addy Osmani: give your coding agent ways to check its own work

addyosmani · x · 2026-10-05

Addy Osmani outlines how to get high-quality output from coding agents by equipping them with self-verification. His recommendations: write end-to-end tests simulating real user flows as ground truth; use property-based testing to specify what must never happen and auto-generate thousands of adversarial cases; when replacing a system, diff old vs new on random inputs; and keep tests fast and deterministic—unreliable loops teach the agent to retry rather than actually fix the problem. As he puts it: examples say what should happen, properties say what must not.

Original post →

More from coding & agent

coding & agent channel →