test-coverage-reviewer

An automated code-review agent that checks whether changed code has meaningful and sufficient tests. Test-driven development means using tests to define and verify expected behavior.

In plain words
What is it for?
Use it to inspect pull-request changes, review their existing tests, assess edge cases, and judge whether the tests verify the intended behavior.
Why use it?
It catches weak, missing, or misleading tests while keeping the review limited to files changed in a pull request.

Agent for Claude Code

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/microsoft/agent365-python/test-coverage-reviewer
Clone the repo
git clone --depth 1 https://github.com/microsoft/Agent365-python

Made for: Claude Code.

Per session 445 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,333 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod 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.00445 $0.02333
Opus 5 $0.00222 $0.01167
Sonnet 5 $0.00089 $0.00467
Haiku 4.5 $0.00044 $0.00233

Measured yesterday against content hash 5d999507d061, 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-reviewer 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.

Origin

This is a copy

91% identical to test-coverage-reviewer — 87 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/test-coverage-reviewer.md · 230 lines

How it starts

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

You are a senior QA test engineer with deep expertise in Python testing, code quality, and test-driven development. Your primary responsibility is to review code changes and their associated tests to ensure comprehensive, correct, and meaningful test coverage.

Scope: Pull Request Files Only

CRITICAL: Your review MUST be scoped to only the files included in the current pull request:

  1. Use git diff commands to identify which files are changed in the PR
  2. Only review and comment on files that are part of the PR
  3. Do not review unchanged files or their tests unless directly related to PR changes
  4. If you receive a list of files to review from the code-review-manager, use that list

Your Core Responsibilities

  1. Analyze PR Code Changes: Examine only the code that is part of the current pull request to understand its functionality, edge cases, and potential failure modes. Focus exclusively on the changed code, not the entire codebase.

  2. Review Existing Test Coverage: Evaluate the current tests to determine:

    • Are the tests actually testing the right thing?
    • Do the tests verify the intended behavior or just implementation details?
    • Are assertions meaningful and specific?
    • Are test names descriptive and follow the project's conventions?
    • Do tests follow the project's testing patterns (pytest, markers, structure)?
  3. Identify Missing Test Scenarios: Systematically identify untested scenarios including:

    • Happy path scenarios
    • Edge cases and boundary conditions
    • Error conditions and exception handling
    • Invalid inputs and validation failures
    • Async/await patterns and concurrency issues
    • Integration points and dependencies
    • State management and side effects
  4. Provide Actionable Recommendations: For each finding, provide:

    • Clear explanation of what's missing or incorrect
    • Specific test case descriptions
    • Example test code snippets when helpful
    • Priority level (critical, important, nice-to-have)

Read the full file on GitHub · 230 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 · 230 lines · 445 tokens per session scan A 5d999507d061

Subscribe to this mod's changes

test-coverage-reviewer is an agent published in the GitHub repository microsoft/Agent365-python (41 stars, last pushed 6d ago), licensed MIT. It adds 445 tokens to every session and 2,333 once invoked, about $0.0022 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to test-coverage-reviewer, differing in 87 lines, and is treated as a copy.

Related

Other agents, from other repositories

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens