- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · runs shell
- What's inside
The options
Same job, different trade-offs. Pick one in Try it.
| Option | AConfig · v27.1.0+wwfix.3cargo-mutants mutation testing for Rust (27.1.0) | BConfig · v3.8.0+wwfix.1mutmut mutation testing for Python (3.8.0) | CConfig · v10.0.0+wwfix.1StrykerJS mutation testing for JS and TypeScript (10.0.0) | Dcli_tool · v10.0.0Stryker mutation testing CLI |
|---|---|---|---|---|
| How you use it | A setting in your project | A setting in your project | A setting in your project | cli_tool |
| What it can do | installs software · writes files · network · runs shell | installs software · writes files · network · runs shell | installs software · writes files · network · runs shell | installs software · network |
| What's inside |
- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · runs shell
- What's inside
- How you use it
- A setting in your project
- What it can do
- installs software · writes files · network · runs shell
- What's inside
- How you use it
- cli_tool
- What it can do
- installs software · network
- What's inside
What this thread does
As of November 2026, mutation testing can expose bugs that an agent’s green tests miss. Do first: run the normal tests, then scope the mutation tool below to the changed files (Stryker configuration, mutmut docs, cargo-mutants diff mode).
Why
Agent-written tests often pass because they restate the implementation, not because they check behaviour. Coverage does not reveal this: a line can be covered by a test that asserts nothing useful. Mutation testing does. The tool changes the code in small ways (flip < to <=, drop a call, return a default) and reruns the tests. A surviving mutant is a bug your tests would not catch.
Addy Osmani listed mutation testing on 30 Jul 2026 among the gates worth adding for agent-written code; it is cheap to try on just the files an agent touched.
The loop
1. The agent makes its change and the normal tests pass. 2. It runs the mutation tool on the changed files only (full runs on big projects take a long time). 3. For each surviving mutant it adds or sharpens a test, without changing the code under test, and reruns. 4. Mutants that cannot be killed (equivalent behaviour) are listed for you instead of hidden.
Put the instruction in AGENTS.md / CLAUDE.md, for example: "After changing src files, run mutation testing on those files; add assertions for surviving mutants; never edit production code to kill a mutant; report survivors you think are equivalent."
Tools (pinned below)
| Language | Tool | Scope to the change |
|---|---|---|
| JS/TS | StrykerJS 10.0.0 (Apache-2.0) | npx stryker run --mutate "src/a.ts,src/b.ts" --incremental |
| Python | mutmut 3.8.0 (BSD-3-Clause) | mutmut run "my_module.my_function*"; reruns only changed functions |
| Rust | cargo-mutants 27.1.0 (MIT) | git diff > change.diff && cargo mutants --in-diff change.diff |
Caveats (as of October 2026)
- Slow on large suites: each mutant reruns tests. Keep the scope to the diff and use incremental modes.
- A mutation tool cannot tell an intended behaviour change from a bug; someone still has to judge equivalent mutants.
- An agent told to "kill all mutants" may write brittle tests that pin implementation details. Ask for behaviour-level assertions.
- mutmut needs
fork, so on Windows it runs only inside WSL. StrykerJS 10 needs Node.js 22+. cargo-mutants runscargo testmany times; nextest speeds it up. Thecargo installroute needs your own Rust toolchain withcargoon PATH, and the crate declaresrust-version = "1.88"inCargo.toml. - Related: the thread on checks the agent cannot weaken (its constraint skill also suggests Stryker), and the discussion on whether agent-written unit tests help at all.
Newer upstream versions
StrykerJS 10.1.1 (23 October 2026) re-releases 10.1.0 after a release-provenance problem. 10.1.0 fixes concurrent test-runner startup against a shared cache and stops reporting Vitest mutant-collection failures as surviving mutants. Andreas02-dev’s report #6250 (10 October) describes the cache race on a fresh Vite cache.
mutmut 3.8.1 was published on 28 October. For pytest 9.2, use it rather than the pinned 3.8.0: khaeusler’s fix report #616 (28 October) describes the stats-collection crash after pytest removed private Node._nodeid. The table above describes the original pinned versions, not the newest upstream releases.
Not for: tests that copy the code's bug (agent-tests-copy-the-bug-spec-first-independent-example), reviewing huge test PRs.
checked 2026-11-03
Started from a post by @addyosmani, packaged by the editor. Original post
- 01 · YouPaste the line from Try it into your agent.
- 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
- 03 · YouApprove a one-line report. Nothing is posted without you.