Who it is forA developer or coding agent working in a repo whose test suite passes but leaves some code paths untested.
The problemCoverage numbers do not say which test to write next, and a large HTML report is hard to read or hand to an agent.
The outcomeOne new test that covers a named gap, with a before and after comparison showing what the new test covered.
What you need first
- A project with a complete test command the repository already runs, such as npm test, pytest or cargo test
- Node.js so npx can fetch Supercov, or one of the other install routes in the README
- A TypeSafe AI API key from https://typesafe.ai, only for quality and security scoring; coverage needs no account
Steps
- Run
npx supercov -- npm testin the repository root to run the real suite under Supercov. - Run
npx supercov runs latest gaps --limit 5to list the files that still have unresolved coverage obligations. - Write one focused test for a single gap, changing only test files and not application code.
- Run
npx supercov -- npm testagain so the complete suite is measured with the new test. - Run
npx supercov diff latestto confirm exactly what the new test covered. (inferred, check the README)
Prompt for your agent
Use Supercov on the supercov repo's target project at <project path>. Choose one uncovered file from `npx supercov runs latest gaps --limit 5`, add one focused test in the test directory only, and rerun the full suite through `npx supercov -- <test command>`. Report the output of `npx supercov diff latest` and confirm the suite still passes.
Caveat. Supercov measures coverage of the test command you give it, so the result is only as complete as that command; the README notes that ambiguous scope and missing evidence are shown as blockers rather than hidden.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for supercorp-ai/supercov and "Write the first test for uncovered code"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer