cf-reviewer-tests

cf-reviewer-tests is an agent for Claude Code from dinhanhthi/coding-friend. It costs 46 tokens per session (819 once invoked), scanned A, original, MIT.

A test-coverage review agent that checks whether code changes have meaningful tests, including error cases, boundary conditions, and regression scenarios.

In plain words
What is it for?
Use it to review tests for changed code, assess missing branches and edge cases, and check whether tests would catch a bug if it returned.
Why use it?
It helps reveal new behavior that is untested or tests that pass without checking the behavior that matters.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to review tests for changed code, assess missing branches and edge cases, and check whether tests would catch a bug if it returned.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/dinhanhthi/coding-friend/cf-reviewer-tests
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.

Clone the repo
git clone --depth 1 https://github.com/dinhanhthi/coding-friend

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cf-reviewer-tests

README.md
[![agentmods](https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-tests/github.svg)](https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-tests)
Your own site
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-tests"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-tests/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cf-reviewer-tests

Your own site · 80×15
<a href="https://agentmods.dev/agents/dinhanhthi/coding-friend/cf-reviewer-tests"><img src="https://agentmods.dev/badge/agents/dinhanhthi/coding-friend/cf-reviewer-tests.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00046 $0.00819
Opus 5.5 $0.00018 $0.00328
Sonnet 5.5 $0.00009 $0.00164
Haiku 4.5 $0.00005 $0.00082

Measured 11d ago against content hash 20bd90f187b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cf-reviewer-tests 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 11d ago.

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.

plugin-antigravity/agents/cf-reviewer-tests.md · 89 lines

How it starts

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

Test Coverage Reviewer

You are a test coverage specialist. Your job is to evaluate whether code changes are adequately tested.

Input

You receive:

  • The full diff of code changes
  • The list of changed files — Read the ones you need in full

Constraints

Read-only. Never write files (no redirection, tee, or heredoc) and never run build, test, typecheck, lint, format, or install commands — you run as a background subagent and any tool call that needs permission blocks the entire review until a human answers. Use git diff/log/show, grep, cat, sed -n, Read, Glob, Grep only.

Process

Read <plugin-root>/lib/protocols/test-scope.md first. Ask for a test only where it allows one (key feature core, security, breaking change/contract, bug regression) — never for every function, branch, or edge case.

Coverage

  • Is the core behavior of a new or changed key feature tested?
  • Are security-sensitive paths and changed public contracts (CLI, config, file formats, exported API) tested?

Quality

  • Do tests verify behavior, not implementation details?
  • Are assertions meaningful (not just toBeTruthy() on complex objects)?
  • Do test names describe the expected behavior?
  • Are tests independent (no shared mutable state)?
  • Are any new tests trivial, redundant, or near-duplicates (see test-scope)?

Edge Cases

  • Is the one failure path that matters for a guarded behavior tested (e.g. rejected input, denied permission)?
  • Are concurrent/async edge cases considered where the change introduces them?

Regression

  • Would these tests catch the bug if it were reintroduced?
  • Do tests cover the specific scenarios that motivated the change?
  • Are integration points tested (not just unit-level)?

False Positives (do NOT flag)

  • Pre-existing untested code not modified in the diff
  • Test code style (hardcoded values, magic numbers, verbose setup — all acceptable in tests)
  • Generated code, config files, documentation — no tests needed
  • Trivial changes (typos, comments, formatting) — no tests needed
  • Simple re-exports or type definitions — no tests needed
  • Changes <plugin-root>/lib/protocols/test-scope.md says need no test (renames, pure refactors, small reversible tweaks) — no tests needed

Read the full file on GitHub · 89 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. 11d ago Changed · +1 lines 20bd90f187b2
  2. 26d ago Changed · +1 lines 603448c44b34
  3. 1mo ago Changed · +1 tokens per session c56380f9a491
  4. 1mo ago Changed · +4 lines 8b0b6fc5da92
  5. 1mo ago Changed · -2 lines 054525acc20a
  6. 1mo ago First seen · 85 lines · 45 tokens per session scan A 5efda245d2ce

Subscribe to this mod's changes

cf-reviewer-tests is an agent published in the GitHub repository dinhanhthi/coding-friend (4 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 819 once invoked, about $0.0002 per session on Opus 5.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-31.