[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:supercov":3},"\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fsupercorp-ai\u002Fsupercov\u002Fmain\u002Fsupercov.jpg\" alt=\"Code quality and coverage for coding agents\" \u002F>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Code quality and coverage for coding agents\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Supercov tells your coding agent what to fix and what to test.\u003C\u002Fstrong> It scores your code quality with \u003Ca href=\"https:\u002F\u002Ftypesafe.ai\" rel=\"nofollow ugc noopener\">Jev\u003C\u002Fa>, runs the test command you already use, and turns uncovered paths into small, actionable queries. Your agent picks a target, writes a focused test or a focused refactor, proves what improved, and keeps going.\u003C\u002Fp>\n\u003Cp>Paste this to your coding agent to start:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-text\">Measure code quality with npx supercov.\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Scoring needs a \u003Ca href=\"https:\u002F\u002Ftypesafe.ai\" rel=\"nofollow ugc noopener\">TypeSafe AI\u003C\u002Fa> API key, and your coding agent will usually ask you for it. It costs about a cent per megabyte of source. Coverage needs no account, config file, import, custom reporter, or hosted service. Supercov is local, free, open source, and MIT licensed.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fsupercov.com\" rel=\"nofollow ugc noopener\">Website\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\" rel=\"nofollow ugc noopener\">Documentation\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fsupercov\" rel=\"nofollow ugc noopener\">npm\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsupercorp-ai\u002Fsupercov\" rel=\"nofollow ugc noopener\">GitHub\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>Supported languages: \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fjavascript\" rel=\"nofollow ugc noopener\">JavaScript\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fjavascript\" rel=\"nofollow ugc noopener\">TypeScript\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Frust\" rel=\"nofollow ugc noopener\">Rust\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fpython\" rel=\"nofollow ugc noopener\">Python\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fruby\" rel=\"nofollow ugc noopener\">Ruby\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fgo\" rel=\"nofollow ugc noopener\">Go\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fjava\" rel=\"nofollow ugc noopener\">Java\u003C\u002Fa> · \u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fkotlin\" rel=\"nofollow ugc noopener\">Kotlin\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>Supported by \u003Ca href=\"https:\u002F\u002Fsupercorp.ai\" rel=\"nofollow ugc noopener\">Supercorp\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fsupercov.com\u002Fdocs\u002Fagent-loop\" rel=\"nofollow ugc noopener\">Agent workflow\u003C\u002Fa>: ask your coding agent\nto add a test in your own project, with a recorded example to follow along.\u003C\u002Fp>\n\u003Ch2>Score your code\u003C\u002Fh2>\n\u003Cpre>\u003Ccode class=\"language-bash\">export TYPESAFE_API_KEY=...   # get one at https:\u002F\u002Ftypesafe.ai\nnpx supercov quality\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>No arguments and no configuration. It finds your source, asks Jev a set of\nyes\u002Fno questions about each file, and does the arithmetic itself, so every part\nof a score is a claim you can check against the file.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>Quality weak (3.8\u002F10) over 163 files.\n  11 good, 52 fair, 100 weak.\n\nWeakest:\n  weak  runtime\u002Fpython\u002Fsupercov_runtime.py\n        long_method 0.96, deep_nesting 0.92, complex_conditional 0.89, +9 more\n  weak  crates\u002Fsupercov-engine\u002Fsrc\u002Fassertion_store.rs\n        long_method 0.96, deep_nesting 0.91, complex_conditional 0.86, +8 more\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Narrow to what fired, read one file in full, or review a change:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx supercov quality gaps\nnpx supercov quality file src\u002Fserver.ts\nnpx supercov quality patch                    # your uncommitted work, or your branch\nnpx supercov quality patch --annotate github  # workflow annotations, no token\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Jev charges for what it reads and nothing for what it writes, so a megabyte of\nsource costs a little over a cent. Answers are cached by content, so a second\nrun pays only for what changed. See \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fsupercorp-ai\u002Fsupercov\u002Fblob\u002FHEAD\u002Fdocs\u002Fquality.md\" rel=\"nofollow ugc noopener\">Understanding quality\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2>Start with the suite you already have\u003C\u002Fh2>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx supercov -- npm test\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Other ways in, all the same binary at the same version: \u003Ccode>brew install supercorp-ai\u002Ftap\u002Fsupercov\u003C\u002Fcode>, or for a Go project \u003Ccode>go run github.com\u002Fsupercorp-ai\u002Fsupercov\u002Fcmd\u002Fsupercov@latest\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Everything after \u003Ccode>--\u003C\u002Fcode> is your test command. Supercov runs it without changing your source, tests, runner configuration, or normal build output.\u003C\u002Fp>\n\u003Cp>Then read the result and ask what is still uncovered:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx supercov runs latest\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode>run run_7fc676ba671d42be\ncommand: npm test\n\nCoverage\n  Lines      100.00% (5\u002F5)\n  Branches   66.67% (4\u002F6)\n  MC\u002FDC      33.33% (1\u002F3)\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx supercov runs latest gaps --limit 10\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre>\u003Ccode>Coverage gaps — only files with unresolved obligations\n\nsrc\u002Fpricing.js\n  uncovered: lines 0  statements 1  functions 0  branch outcomes 0  MC\u002FDC conditions 2\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>After your agent adds a test, rerun the complete suite and prove the gain:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx supercov -- npm test\nnpx supercov diff &lt;previous-run-id&gt; latest\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Use whichever complete test command the repository already trusts:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">npx superco\n\u003C\u002Fcode>\u003C\u002Fpre>\n",1789861593164]