Skip to main content

Supercov: Coverage for coding agents working overnight

Coverage for coding agents working overnight.

Supercov gives your coding agent the next useful test to write. It runs the test command you already use, records local coverage evidence, and turns uncovered paths into small, actionable queries. Your agent writes a focused test, reruns the suite, proves what improved, and keeps going while useful gaps remain.

No account, config file, import, custom reporter, or hosted service is required. Supercov is local, free, open source, and MIT licensed.

Website · Documentation · npm · GitHub

Supported by Supercorp.

Start with the suite you already have

npx supercov -- npm test

Everything after -- is your test command. Supercov runs it without changing your source, tests, runner configuration, or normal build output.

Then ask what is still uncovered:

npx supercov runs latest gaps --limit 10

After your agent adds a test, rerun the complete suite and prove the gain:

npx supercov -- npm test
npx supercov diff <previous-run-id> latest

Use whichever complete test command the repository already trusts:

npx supercov -- npx playwright test
npx supercov -- pnpm test:e2e
npx supercov -- cargo test
npx supercov -- cargo nextest run
npx supercov -- pytest
npx supercov -- python -m unittest
npx supercov -- bundle exec rspec

Give Supercov a job

Paste one of these prompts into Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, or any coding agent that can run terminal commands.

Write the first useful test

Measure code coverage with `npx supercov`. Use the coverage evidence to choose
one useful missing test. Only edit tests. Run the repository's complete test
suite through Supercov again and report what improved.

Use leftover tokens on coverage

Measure code coverage with `npx supercov` and write tests til 100%. Only edit
tests. Keep going while useful gaps remain.

Run the repository's complete test suite through Supercov. Use
`npx supercov runs latest gaps --limit 5` to choose one useful target at a
time. Write a focused test, rerun the same complete suite, and use
`npx supercov diff <previous-run-id> latest` to verify the gain.

Never weaken assertions or change application code to make coverage easier.
Stop if the suite fails, the evidence is incomplete, or no useful gaps remain.

The agent loop

  1. Run the real suite. Supercov executes the command after -- in an isolated workspace.
  2. Find one useful gap. Short, paginated queries show uncovered files, lines, branches, decisions, and value paths without loading a large HTML report into context.
  3. Write one focused test. The coding agent changes tests—not application code or coverage configuration.
  4. Rerun and prove the gain. diff shows exactly what the new test covered.
  5. Repeat while useful gaps remain. Failed tests, incomplete evidence, or ambiguous scope stay visible instead of being rounded away.

Supercov supplies the coverage signal and evidence. It does not host, schedule, or replace your coding agent.

Use leftover tokens on coverage

Before a reset—or overnight—turn idle agent time into coverage that stays with the repository. Each pass closes a small number of useful gaps and finishes with evidence that the tests still pass and coverage improved.

Use it in a software factory

Add Supercov as a repeatable quality loop in an automated software factory. Your factory schedules the work; Supercov gives each agent a bounded next task and an immutable record of the result.

Every pass runs the real suite, chooses an uncovered path, writes a focused test, reruns, and proves the gain. Fresh executable evidence lets agents keep iterating around the clock while failed tests and regressions stop the loop before they ship.

Coverage agents can act on

From lines and branches to MC/DC, every gap becomes a concrete test target. Supercov measures:

  • lines, statements, functions, and branches;
  • MC/DC independence witnesses;
  • optional-chain, default-value, and logical-assignment paths;
  • try/catch and zero-iteration control-flow paths; and
  • per-test provenance where the runner exposes exact test boundaries.

The denominator comes from source structure before the run, so adding or removing tests cannot silently change what 100% means. Ambiguous source scope, uninstrumented code, and missing evidence remain visible as completeness blockers.

Install for your language

The same binary ships through each language's own package manager, at the same version, from one release:

npx supercov -- npm test                          # npm
uvx --from supercov-cli supercov -- pytest        # PyPI
gem install supercov && supercov -- bundle exec rspec   # RubyGems
cargo install supercov && supercov -- cargo test  # crates.io, built from source

pip install supercov-cli and gem install supercov install a wheel or gem that carries the binary for your platform; nothing is compiled. The crate builds from source and needs Rust 1.95.

Supported languages

Language Status Start with
JavaScript Available npx supercov -- npm test
TypeScript Available npx supercov -- npm test
Rust Available npx supercov -- cargo test
Python Available npx supercov -- pytest
Ruby Available npx supercov -- rspec
Zig Coming soon
PHP Coming soon
C Coming soon

Supercov requires Node.js 22 or newer. Rust support currently uses Rust 1.95; cargo-nextest 0.9.138 and 0.9.140 are supported. Python support requires CPython 3.12 or newer and measures pytest and unittest runs. Ruby support requires Ruby 3.3 or newer (3.4 or newer for full measurement) and measures RSpec, Minitest, test-unit and Cucumber runs.

Supported operating systems and architectures

The CLI is a single native binary. npx supercov selects the build for the machine it runs on; nothing is compiled during installation.

Operating system Architectures Notes
macOS arm64 (Apple silicon), x64 (Intel) macOS 11 or newer
Linux arm64, x64 glibc 2.28 or newer (Debian 10, Ubuntu 18.10, RHEL 8 and later), or musl (Alpine); chosen automatically
Windows arm64, x64 Windows 10 or newer

On Windows, JavaScript and TypeScript suites are verified on every release; Python, Ruby, and Rust suites are not yet verified there. Containers, VMs, and remote executors run the same Linux builds. Every release publishes the same binaries to npm, PyPI (supercov-cli, a wheel per platform) and RubyGems (supercov, a gem per platform except arm64 Windows, which Ruby has no platform for), and the source to crates.io (supercov).

Supported test suites

Supercov uses exact per-test attribution where an adapter is available. For other supported runners, it reports aggregate structural coverage instead of guessing which test covered a path.

Runner Coverage attribution
Playwright Exact per test, worker, retry, outcome, action, and assertion phase
Vitest Exact per test, with setup execution kept separate
Jest Exact per test, including concurrent and parameterized tests
node:test Exact per test
AVA and Mocha Aggregate structural coverage
Cargo's standard libtest runner Exact test and attempt identity
cargo-nextest Exact test, attempt, retry, and binary identity
RSpec Exact example and before/example/after phase identity
Minitest and test-unit Exact test and setup/test/teardown identity
Cucumber Exact scenario and hook-phase identity

Supercov works with Vite, Next, Turbopack, Webpack, esbuild, SWC, and projects with no build step. One command can collect evidence from several supported runners into a single run.

See Supported languages and test suites for exact compatibility and attribution boundaries.

Read the result

# Recent runs and the latest summary
npx supercov runs --limit 5
npx supercov runs latest

# The most useful open coverage obligations
npx supercov runs latest gaps --limit 10

# Details for a file or source location
npx supercov runs latest file app/checkout/session.ts
npx supercov runs latest decision app/checkout/session.ts:64
npx supercov runs latest line app/checkout/session.ts:64

# What changed between two runs
npx supercov diff <previous-run-id> latest

Collections accept --limit and --offset and print a copyable next-page command. Machine-readable output is available with --json when an integration needs it.

Local, private, and zero-edit

Everything Supercov writes lives under one hidden .supercov/ directory: run evidence in .supercov/runs/<run-id>/ and the isolated build cache in .supercov/workspaces/. It ignores itself in Git, so there is nothing to add to your .gitignore.

The Supercov CLI does not contact a Supercov service during a coverage run. Package tools such as npx may contact the npm registry to download Supercov when it is not already cached.

Supercov does not rewrite your source files, tests, imports, reporter list, runner configuration, dependency tree, or normal build output. An existing user-created supercov/ directory is never adopted.

npx supercov clean --dry-run   # preview cleanup
npx supercov clean --keep 20   # keep the 20 newest runs
npx supercov clean             # remove all runs and the build cache

Documentation

Free and open source

MIT licensed. Inspect, extend, and run it anywhere.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

supercov_cli-0.0.37-py3-none-win_arm64.whl (4.8 MB view details)

Uploaded Python 3Windows ARM64

supercov_cli-0.0.37-py3-none-win_amd64.whl (5.1 MB view details)

Uploaded Python 3Windows x86-64

supercov_cli-0.0.37-py3-none-musllinux_1_2_x86_64.whl (5.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

supercov_cli-0.0.37-py3-none-musllinux_1_2_aarch64.whl (5.1 MB view details)

Uploaded Python 3musllinux: musl 1.2+ ARM64

supercov_cli-0.0.37-py3-none-manylinux_2_28_x86_64.whl (5.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

supercov_cli-0.0.37-py3-none-manylinux_2_28_aarch64.whl (5.0 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

supercov_cli-0.0.37-py3-none-macosx_11_0_x86_64.whl (5.2 MB view details)

Uploaded Python 3macOS 11.0+ x86-64

supercov_cli-0.0.37-py3-none-macosx_11_0_arm64.whl (4.7 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file supercov_cli-0.0.37-py3-none-win_arm64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-win_arm64.whl
Algorithm Hash digest
SHA256 c3fdb1bda9147a8240f27172226932f1c90b2267b7c24c86629e9a11d1fb2f73
MD5 db369522267ba272ed362f7ba0fe09da
BLAKE2b-256 7da4907ce40ffa90da25a13f3ee01bf0fd164dcad89b25757e6d041aec1960b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-win_arm64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 3bed43d2eeaaa06b88c725da071414ab742f45727c4b4b1a4e3308e8ea4d8b46
MD5 6deb8f49b8e669734f1ec9468970d8eb
BLAKE2b-256 9e7a83f0a059acdaca6ad4739852d65afdfae2d681d4721ca9be67b58311af62

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-win_amd64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 7e5992649d34b8419f64e4c74d5c69006b913e94e69b3bc32c24e454e02a15ea
MD5 4b63e461e58572c8565b2ee98333329e
BLAKE2b-256 8a7d18b177e76505751f06fa18a2a9bb26fd5ffbe4640074554e5f8eb56b6b5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-musllinux_1_2_x86_64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 eb8f3c1248de73d6134775cd562e4592e4854e87a6c5398d1982fde7b03a9e66
MD5 1d24b7f4cb59d883151019a1239f54a7
BLAKE2b-256 8c12152825cd919bc1de4771abfbd7f752938010348b7ad0e2c3c9d3b26847c6

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-musllinux_1_2_aarch64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ba2710a7ce2fdf2e12632bcdcf6f88f4c1c4bd17bebd06ed592b2e4731d0d74
MD5 af7b96920769f42e19e0072df5814aca
BLAKE2b-256 fdc06e82a0c9cc965a2dc6413654b81e9a4c3b0a0e4edd39d6c87631495a84af

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-manylinux_2_28_x86_64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 fb653b839e6233e53d1772680a9fe0089cfb203c1da2f1ad5e5a839a23336386
MD5 87888256629cf4590e25de12fcc03e80
BLAKE2b-256 8d02fb657536956241be5c158dff3d217cd106d13839a840549f583563b97327

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-manylinux_2_28_aarch64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 9fb7865c5e8f65fd1967ab9775e875fc344abb9a25aceca928be240f6c80651a
MD5 33ca77d549c4c3fc377b18619b9f04a1
BLAKE2b-256 8fd9422d47c5db45da498f6b4e607bd834de31ffc07daa64dfea27ce520d6816

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-macosx_11_0_x86_64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file supercov_cli-0.0.37-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for supercov_cli-0.0.37-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ad18f6913d3794020cf4bdd3c33679c9113a5b2a10f39cae6e96a75e4e578b9
MD5 3ded8e2baa4bc90ae8ddbbd4efb50cb1
BLAKE2b-256 69aaa41566b667143d30f7dca1ddfeca5350c0f52b4ab9271c82a7f695f302a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for supercov_cli-0.0.37-py3-none-macosx_11_0_arm64.whl:

Publisher: publish.yml on supercorp-ai/supercov

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.0.42

8 files

0.0.41

8 files

0.0.40

8 files

0.0.39

8 files

0.0.38

8 files

This release

0.0.37 This release

8 files

0.0.10

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page