FormingConfigcli_toolclaude-codecodexcursorpublished fresh until

StrykerJS, mutmut or cargo-mutants: do my agent's tests catch bugs?

Summary Mutation testing makes small deliberate bugs in your code and checks that the tests fail. StrykerJS 10 (JavaScript/TypeScript), mutmut 3.8 (Python) and cargo-mutants 27.1 (Rust) can be scoped to the files or diff an agent just changed, so the agent can strengthen weak tests before you review.

Not for tests that copy the code's bug (agent-tests-copy-the-bug-spec-first-independent-example), reviewing huge test PRs.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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 itA setting in your projectA setting in your projectA setting in your projectcli_tool
What it can doinstalls software · writes files · network · runs shellinstalls software · writes files · network · runs shellinstalls software · writes files · network · runs shellinstalls software · network
What's inside
AConfig · v27.1.0+wwfix.3cargo-mutants mutation testing for Rust (27.1.0)
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside
BConfig · v3.8.0+wwfix.1mutmut mutation testing for Python (3.8.0)
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside
CConfig · v10.0.0+wwfix.1StrykerJS mutation testing for JS and TypeScript (10.0.0)
How you use it
A setting in your project
What it can do
installs software · writes files · network · runs shell
What's inside
Dcli_tool · v10.0.0Stryker mutation testing CLI
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)

LanguageToolScope to the change
JS/TSStrykerJS 10.0.0 (Apache-2.0)npx stryker run --mutate "src/a.ts,src/b.ts" --incremental
Pythonmutmut 3.8.0 (BSD-3-Clause)mutmut run "my_module.my_function*"; reruns only changed functions
Rustcargo-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 runs cargo test many times; nextest speeds it up. The cargo install route needs your own Rust toolchain with cargo on PATH, and the crate declares rust-version = "1.88" in Cargo.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

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# StrykerJS, mutmut or cargo-mutants: do my agent's tests catch bugs?
Summary: Mutation testing makes small deliberate bugs in your code and checks that the tests fail. StrykerJS 10 (JavaScript/TypeScript), mutmut 3.8 (Python) and cargo-mutants 27.1 (Rust) can be scoped to the files or diff an agent just changed, so the agent can strengthen weak tests before you review.

## Options
- A · cargo-mutants mutation testing for Rust (27.1.0) · early, no verdict yet · installs software · writes files · network · runs shell
- B · mutmut mutation testing for Python (3.8.0) · early, no verdict yet · installs software · writes files · network · runs shell
- C · StrykerJS mutation testing for JS and TypeScript (10.0.0) · early, no verdict yet · installs software · writes files · network · runs shell
- D · Stryker mutation testing CLI · early, no verdict yet · installs software · network
Copy for agent
get the whatworks thread mutation-testing-agent-written-tests and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread mutation-testing-agent-written-tests

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · cargo-mutants mutation testing for Rust (27.1.0)

Mutation testing for Rust (MIT). Runs cargo test against generated mutants; --in-diff limits a run to mutants that overlap a git diff, and -f limits it to named files. Not for: non-Rust code (use strykerjs or mutmut) or large suites run on every commit; limit with --in-diff. See mutation-testing-agent-written-tests.

Format
Config
Source
github:sourcefrog/cargo-mutants
Pinned
v27.1.0+wwfix.3 · 8ab1dc786a1f
Content hash
8ab1dc786a1f61a4
Audit
scan warned
Can do
installs software · writes files · network · runs shell
Works with
claude-code · codex · cursor
Check
Needs your own runtime: a Rust toolchain (1.88 or newer, cargo on PATH) must already be installed; with it, cargo-mutants 27.1.0 is installed; The cargo-mutants binary is in the default cargo install folder (with the Rust toolchain from the prerequisite step)
Author
@sourcefrog
Kudos
0
Are you @sourcefrog? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package cargo-mutants-rust-mutation-testing before installing

B · mutmut mutation testing for Python (3.8.0)

Mutation testing for Python with pytest (BSD-3-Clause). Mutates functions, reruns only mutants in functions whose source changed, and lets you target functions by name pattern; mutmut browse shows survivors. Not for: non-Python code or projects without pytest; see strykerjs-mutation-testing for JS/TS. Reruns only changed functions.

Format
Config
Source
github:boxed/mutmut
Pinned
v3.8.0+wwfix.1 · 14a7230049a5
Content hash
14a7230049a5c8ab
Audit
scan passed
Can do
installs software · writes files · network · runs shell
Works with
claude-code · codex · cursor
Check
mutmut 3.8.0 is installed in the project's .venv; The mutmut CLI runs
Author
@boxed
Kudos
0
Are you @boxed? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package mutmut-python-mutation-testing before installing

C · StrykerJS mutation testing for JS and TypeScript (10.0.0)

Mutation testing for JavaScript and TypeScript (Apache-2.0). Installs as a dev dependency with a runner plugin for your test framework; --mutate limits a run to the files the agent changed and --incremental reuses earlier results. Not for: Python or Rust (use mutmut or cargo-mutants) or projects with no test runner; see mutation-testing-for-typescript-when-the-agent-can-t-install.

Format
Config
Source
github:stryker-mutator/stryker-js
Pinned
v10.0.0+wwfix.1 · cb3bd8fe25d5
Content hash
cb3bd8fe25d52154
Audit
scan passed
Can do
installs software · writes files · network · runs shell
Works with
claude-code · codex · cursor
Check
@stryker-mutator/core 10.0.0 installed; Stryker config file present; Stryker CLI runs from the project without a download; The project's tests pass under Stryker (dry run, no mutants)
Author
@stryker-mutator
Kudos
0
Are you @stryker-mutator? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package strykerjs-mutation-testing before installing

D · Stryker mutation testing CLI

Runs mutation tests to measure how good the tests are. Pinned @stryker-mutator/core@10.0.0 from npm, run from a locked install: WhatWorks checks only its --version and --help.

Format
cli_tool
Source
—
Pinned
v10.0.0 · npm:@stryker
Content hash
sha256:325c5cf49
Audit
scan warned
Can do
installs software · network
Check
node_modules/.bin/stryker --version; node_modules/.bin/stryker --help
Author
editor
Kudos
0

This package has no public source link yet.

Ask your agent
show me the whatworks package stryker-cli-tool before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package cargo-mutants-rust-mutation-testing

B · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package mutmut-python-mutation-testing

C · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package strykerjs-mutation-testing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp