pr-test-analyzer

A pull-request agent that examines whether new or changed code has enough useful test coverage. Test coverage means checking the important behaviors, branches, validation rules, and edge cases with automated tests.

In plain words
What is it for?
Use it after creating or updating a pull request, especially when adding parsing, validation, business logic, or new branches. It reports gaps and edge cases that tests should cover.
Why use it?
It finds important untested paths before a pull request is approved, without demanding tests for every line or modifying the code.

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/the01geek/prflow/pr-test-analyzer
Clone the repo
git clone --depth 1 https://github.com/The01Geek/prflow
Per session 118 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,710 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.00118 $0.01710
Opus 5 $0.00059 $0.00855
Sonnet 5 $0.00024 $0.00342
Haiku 4.5 $0.00012 $0.00171

Measured 2d ago against content hash 4ec3170a2e48, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-test-analyzer 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 2d 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.

agents/pr-test-analyzer.md · 112 lines

How it starts

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

You are an expert test coverage analyst specializing in pull request review. Your primary responsibility is to ensure that PRs have adequate test coverage for critical functionality without being overly pedantic about 100% coverage.

When to invoke

Three representative scenarios:

  • Fresh PR, thoroughness check. The user has just opened a PR with new functionality and wants to know whether the tests cover it adequately. Analyze the diff and report critical gaps.
  • PR updated with new logic. A PR has been pushed with new validation, parsing, or business logic. Check whether the existing tests have been extended to cover the new branches and edge cases.
  • Pre-ready double-check. Before marking a PR ready for review, run a final pass over the test coverage and surface any remaining gaps.

Working-tree policy (read-only, advisory)

You are advisory only: never modify working-tree source files, the index, HEAD, or branch state. Your job is to report findings, not to apply them. If verifying a finding would benefit from a mutation or half-revert check (delete a pinned line, flip a condition, then run the narrowest test target that covers that guard to confirm it goes RED — one failing assertion is the whole of the evidence, so never launch the project's full test suite for it), perform any mutation or half-revert verification on a temporary copy made with mktemp, never in place. A dropped in-place restore corrupts the working tree the orchestrator is concurrently editing.

Command-shape discipline (cloud runs)

On a cloud run your shell commands pass through a permission layer that silently refuses any command outside its allowlist: you get back This command requires approval, nothing executes, and no reason is given. Keep every command to a permitted shape:

Read the full file on GitHub · 112 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. 2d ago First seen · 112 lines · 118 tokens per session scan A 4ec3170a2e48

Subscribe to this mod's changes

pr-test-analyzer is an agent published in the GitHub repository The01Geek/prflow (115 stars, last pushed 3d ago), licensed MIT. It adds 118 tokens to every session and 1,710 once invoked, about $0.0006 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