Test Coverage

A pull-request review that checks whether new behavior has tests for normal use, edge cases, errors, and fixed bugs.

In plain words
What is it for?
It checks unit tests for exported code, smoke and argument tests for command-line commands, regression tests for bug fixes, and integration tests for API endpoints.
Why use it?
It helps prevent new features, commands, API handlers, and bug fixes from breaking later without a test exposing the problem.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/continuedev/continue/test-coverage
Clone the repo
git clone --depth 1 https://github.com/continuedev/continue
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 494 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00009 $0.00494
Opus 5 $0.00005 $0.00247
Sonnet 5 $0.00002 $0.00099
Haiku 4.5 $0.00001 $0.00049

Measured yesterday against content hash d48f3f72b243, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Test Coverage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.continue/agents/test-coverage.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Test Coverage Check

Review this pull request to determine if new functionality has adequate test coverage.

When Tests Are Expected

  1. New exported functions or classes - Any new public function, class, or module that is exported and used by other parts of the codebase should have at least basic unit tests covering:

    • The happy path (expected inputs produce expected outputs)
    • Edge cases (empty inputs, null/undefined, boundary values)
    • Error cases (invalid inputs throw or return appropriate errors)
  2. New CLI commands or subcommands - Should have:

    • Smoke tests verifying the command registers and runs
    • Tests for flag parsing and validation
    • Tests for expected output format
  3. Bug fixes - If a PR fixes a bug, there should be a regression test that:

    • Reproduces the original bug condition
    • Verifies the fix resolves it
  4. New API endpoints or handlers - Should have integration tests covering:

    • Successful request/response
    • Error responses for invalid inputs
    • Authentication/authorization (if applicable)

When Tests Are NOT Expected

  • Documentation-only changes
  • Configuration file changes (YAML, JSON, Markdown)
  • CSS/styling changes
  • Dependency updates (unless they change behavior)
  • Agent definition files (.continue/agents/*.md)
  • Refactors that don't change behavior (existing tests should still pass)
  • Internal implementation changes fully covered by existing tests

What to Do

  • If new functionality lacks tests, add a PR comment noting what should be tested and why.
  • Do NOT write tests yourself. The author knows the intended behavior best.
  • If the PR includes tests but they seem incomplete (missing edge cases, no error cases), note the gaps.
  • If the PR is clearly a test-exempt category (docs, config, styling), do nothing.

Test Infrastructure Reference

  • Core: Jest (*.test.ts) + Vitest (*.vitest.ts) in core/
  • GUI: Vitest (*.test.ts) in gui/src/
  • CLI: Vitest (*.test.ts, *.e2e.test.ts) in extensions/cli/
  • Packages: Vitest in each packages/*/ directory

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 57 lines · 9 tokens per session scan A d48f3f72b243

Subscribe to this mod's changes

Test Coverage is an agent published in the GitHub repository continuedev/continue (35,702 stars, last pushed 2d ago), licensed Apache-2.0. It adds 9 tokens to every session and 494 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories