coverage-hunter

coverage-hunter is an agent for Claude Code from ErkanBarin/playwright-agent-mcp-starter. It costs 19 tokens per session (540 once invoked), scanned A, original, MIT.

A test-coverage analysis tool that compares page objects and API endpoints with the tests that use them. Page objects are code representations of web pages; API endpoints are URLs that applications call.

In plain words
What is it for?
Use it to map UI and API coverage, classify gaps, and prioritize new tests.
Why use it?
It reveals untested methods, error cases, authentication paths, and edge cases that ordinary test lists can hide.

Agent for Claude Code

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

Good fit Use it to map UI and API coverage, classify gaps, and prioritize new tests.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/erkanbarin/playwright-agent-mcp-starter/coverage-hunter
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/ErkanBarin/playwright-agent-mcp-starter

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 coverage-hunter

README.md
[![agentmods](https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/coverage-hunter.svg)](https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/coverage-hunter)
Your own site
<a href="https://agentmods.dev/agents/erkanbarin/playwright-agent-mcp-starter/coverage-hunter"><img src="https://agentmods.dev/badge/agents/erkanbarin/playwright-agent-mcp-starter/coverage-hunter.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 540 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.00019 $0.00540
Opus 5 $0.00010 $0.00270
Sonnet 5 $0.00004 $0.00108
Haiku 4.5 $0.00002 $0.00054

Measured 8d ago against content hash 602ba2d4f7b2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

coverage-hunter 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 8d 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.

ai/agents/coverage-hunter.md · 73 lines

How it starts

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

Coverage Hunter

You map the relationship between source code (page objects, API endpoints) and tests, identify gaps, and recommend new tests with priority rankings.

Analysis Process

Phase 1: Inventory

Glob: pages/**/*.page.ts       → Page objects
Glob: tests/ui/**/*.spec.ts    → UI tests
Glob: tests/api/**/*.spec.ts   → API tests
Glob: tests/fixtures/**/*      → Shared fixtures

For each page object, extract: class name, public methods, selectors, navigation URLs. For each test, extract: descriptions, page objects used, methods called, tags.

Phase 2: Coverage Mapping

UI Coverage:

Page Object Methods Tests Covering It Untested Methods
LoginPage 5 login.spec.ts forgotPassword()

Process: For each page object method, Grep across tests/ui/ for usage.

API Coverage:

Endpoint Method Happy Path Error Cases Auth
/api/users GET Yes Partial No

Phase 3: Gap Classification

  1. Completely Untested — No test references at all
  2. Partially Tested — Some methods/scenarios covered
  3. Missing Negative Tests — Only happy path
  4. Missing Edge Cases — Boundaries, empty states, large inputs

Phase 4: Priority Ranking

Priority Criteria
P0 Core user flow with zero coverage (login, registration)
P1 Important feature with partial coverage
P2 Secondary feature or missing error cases
P3 Edge cases, nice-to-have

Higher priority for: user-facing features, data mutations (POST/PUT/DELETE), auth flows.

Output Format

# Test Coverage Report

## Summary
- Page Objects: X total, Y covered, Z gaps
- API Endpoints: X total, Y covered, Z gaps

## P0 Gaps
1. [GAP-001] LoginPage.forgotPassword() — no coverage
   Suggested test: tests/ui/login-forgot-password.spec.ts

## P1 Gaps
...

Read the full file on GitHub · 73 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. 8d ago First seen · 73 lines · 19 tokens per session scan A 602ba2d4f7b2

Subscribe to this mod's changes

coverage-hunter is an agent published in the GitHub repository ErkanBarin/playwright-agent-mcp-starter (43 stars, last pushed 6mo ago), licensed MIT. It adds 19 tokens to every session and 540 once invoked, about $0.0001 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

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

sdd-init

Initialize project SDD context, testing capabilities, and skill registry.

Gentleman-Programming/gentle-pi · 17 tokens

python-pro

Write idiomatic Python code with advanced features like decorators, generators, and async/await. Optimizes performance, implements design patterns, and ensures comprehensive testing. Use PROACTIVELY for Python refactoring, optimization, or complex Python features.

echoVic/blade-code · 51 tokens

test-engineer

QA engineer operating on the "Prove-It" principle — if it works, prove it with a test. Use when writing tests for a new feature, filling coverage gaps, or validating that a bug fix won't regress. Can read, write and edit test files. Dispatch with Task tool for isolated test work.

felvieira/claude-skills-fv · 66 tokens

test-writer

Use this agent when the guild needs unit or integration tests written for implemented code. The test-writer implements the test-planner's test plan — reading the plan's Changed Files Inventory instead of re-analyzing the codebase — then writes and runs the tests. Spawned by the check-in skill when a test-writing task…

HirogaKatageri/hirokata · 77 tokens

implement-test-diversifier

Generates test suites from 4 different testing perspectives for comprehensive coverage.

eai-support/eai-gofer · 19 tokens