Have an agent grow property tests and hunt bugs

A testing agent helped engineers build fuzz tests that uncovered bugs they had not already seen.

Done with Custom agent· Advanced

What they did
The team began by writing down a property they wanted the system to satisfy, then let a coding agent generate random test inputs around it. After each run, the agent used the failures and coverage results to adjust its generators and keep iterating. In the SQLite example, it first focused on creating valid database files, and later the engineers pointed it toward other properties and features. The agent also grouped duplicate reports during review.
How it went
Over 26 open source systems, the project turned up 535 previously unknown bugs. Maintainers accepted 373 and patched 313 of them. For SQLite, 37 test rounds pushed coverage from 35.9% to 74.1% and uncovered 26 bugs.
Tips
The researchers still checked each report themselves before filing it. They also say Ephyra is experimental, and they have not yet evaluated its cost or reliability.

Try it yourself with Claude Code

Inspect [module or file path] in my codebase and create property-based tests for it using [Hypothesis / fast-check / your preferred library]. Target invariants like round trips, idempotence, and edge cases, then run the tests and keep refining the generators from the failures and coverage data. For every failing case, give me the smallest input that reproduces it and say whether it seems to reveal a real bug or just a bad assumption. Before you delete files, submit anything, send data anywhere, or make other irreversible changes, stop and ask for my approval. Finish with a concise list of confirmed issues and anything still uncertain.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.