How well do agents use test/verification techniques?
TL;DR Highlight
Naming test techniques to coding agents didn't beat default; they apply them superficially
Who Should Read
Backend developer who tells coding agents to use TDD or fuzzing and wants to know whether that actually improves code correctness
Core Mechanics
Community Reactions
- Reproducibility concerns
- One commenter said the experiment is nearly worthless without the exact prompts and test setup.
- Another asked whether a repo exists to reproduce it.
- Audit and cross-model review worked
- Several commenters reported good results auditing code with LLMs from different families.
- One used adversarial review in a fresh context with good results.
- TDD and Hypothesis stay shallow
- One commenter found the Superpowers skill's TDD produced low-value tests like checking a button exists.
- Another found agents struggled to connect Hypothesis tests to business rules and obsessed over floating-point edge cases.
- Verus worked once specs were solid
- One commenter said agents left alone write specs that just restate the implementation.
- After careful spec work, Claude proved the code and found a few bugs.
- Automate mutation testing instead
- One commenter suggested a mutation framework that fails the build, since agents can't ignore build failures.
- Another argued code architecture like DI/hexagonal matters more than the testing framework.
How to Apply
- Add mutation checks to agent-written tests
- Run cargo-mutants or your language's mutation tool on one module today.
- Count surviving mutants to see whether the tests catch code changes.
- Tell agents what to stop doing, not a technique name
- Replace "use fuzzing" with rules like no repeated identical inputs and no invalid-only inputs.
- This mirrors the author's skill that nudged away from default behavior and did OK.
- Audit with a separate context
- After implementation, have a different model in a fresh context audit the code and list bugs.
- Feed that list into a fix pass.
- Skip long tutorial-style skills
- Shorten any skill over 20k tokens and compare against Default.
- Remove it if correctness doesn't improve.
Try It
# Paste into Claude Code or Codex (simplified test-audit prompt based on the article's findings)
Audit the tests of {{module}}.
- Find tests that feed the same value to multiple inputs (e.g. all streams identical).
- Find tests with symmetric/palindromic inputs that can't catch ordering or swap bugs.
- Find always-true assertions (A => A) or property tests that only hit invalid inputs.
Rewrite each bad test, then inject a deliberate bug to confirm the test fails, and revert it.
Next: run this in a fresh session separate from the one that wrote the code and compare results.Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles