benefriches: Agent for Claude Code

.claude/agents/e2e-coverage-checker.md

e2e-coverage-checker is an agent for Claude Code from incubateur-ademe/benefriches. It costs 39 tokens per session (1,548 once invoked), scanned A, original, MIT.

A report generator that compares branch changes with the main branch and checks whether end-to-end tests need to be added or updated. End-to-end tests check complete user flows across an application.

In plain words
What is it for?
It is for deciding whether code changes require new or revised browser and application-flow tests, and for documenting the coverage recommendations.
Why use it?
It identifies testing gaps caused by changed pages, routes, API endpoints, shared data definitions, or test helpers.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is incubateur-ademe/benefriches's own configuration. It tells Claude Code how to work on benefriches itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything benefriches configures →

Reuse

Borrowing it

Nothing to install: this file belongs to incubateur-ademe/benefriches. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/incubateur-ademe/benefriches/main/.claude/agents/e2e-coverage-checker.md
Clone the repo
git clone --depth 1 https://github.com/incubateur-ademe/benefriches

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 e2e-coverage-checker

README.md
[![agentmods](https://agentmods.dev/badge/agents/incubateur-ademe/benefriches/e2e-coverage-checker/github.svg)](https://agentmods.dev/agents/incubateur-ademe/benefriches/e2e-coverage-checker)
Your own site
<a href="https://agentmods.dev/agents/incubateur-ademe/benefriches/e2e-coverage-checker"><img src="https://agentmods.dev/badge/agents/incubateur-ademe/benefriches/e2e-coverage-checker/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 e2e-coverage-checker

Your own site · 80×15
<a href="https://agentmods.dev/agents/incubateur-ademe/benefriches/e2e-coverage-checker"><img src="https://agentmods.dev/badge/agents/incubateur-ademe/benefriches/e2e-coverage-checker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 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,548 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.00039 $0.01548
Opus 5 $0.00019 $0.00774
Sonnet 5 $0.00008 $0.00310
Haiku 4.5 $0.00004 $0.00155

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

Security

Grade A, and why

e2e-coverage-checker 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.

.claude/agents/e2e-coverage-checker.md · 130 lines

How it starts

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

E2E Coverage Checker

Analyze the current branch's changes against main and produce a structured report on whether e2e tests need to be created or updated.

Instructions

Step 1: Collect Diff

Run both commands and merge the results into a deduplicated list of changed files with their status (A=Added, M=Modified, D=Deleted):

git diff main...HEAD --name-status
git diff --name-status

If both commands return the same file, keep only one entry. Deleted files can be noted but don't need coverage analysis.

Step 2: Fast Pass — Classify by Path Pattern

For each changed file, check if it matches a trigger pattern:

Pattern Signal Type Action
apps/web/src/**/views/**/index.tsx New/modified container component Trigger
**/step-handlers/**/*.handler.ts New/modified wizard step Trigger
**/stepHandlerRegistry.ts Step registry change Trigger
apps/web/src/app/router.ts Route change Trigger
apps/api/src/**/*.controller.ts API endpoint change Deep pass (Step 3)
packages/shared/src/api-dtos/** Shared DTO change Deep pass (Step 3)
apps/e2e-tests/pages/** Page object change Trigger (check for matching spec)
Everything else Skip

Files that don't match any pattern are excluded from the report entirely.

Step 3: Targeted Deep Pass

Only for files marked "Deep pass" in Step 2:

Shared DTOs (packages/shared/src/api-dtos/**):

  • Extract the type name from the changed file (e.g., GetSiteViewResponseDto from getSiteView.dto.ts)
  • Grep apps/e2e-tests/ for that type name
  • If found: the change touches an already-covered flow — classify as "Covered" or "Partially covered"
  • If not found: classify as "No coverage" but note this may be an internal DTO not directly used in e2e

API Controllers (apps/api/src/**/*.controller.ts):

  • Read the controller to identify route paths (e.g., /api/sites, /api/reconversion-projects)
  • Grep apps/e2e-tests/pages/ and apps/e2e-tests/fixtures/helpers/ for those route paths or the feature name
  • If found: classify as "Covered" or "Partially covered"
  • If not found: classify as "No coverage"

Read the full file on GitHub · 130 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 First seen · 130 lines · 39 tokens per session scan A c8faa75faba7

Subscribe to this mod's changes

e2e-coverage-checker is an agent published in the GitHub repository incubateur-ademe/benefriches (45 stars, last pushed 2d ago), licensed MIT. It adds 39 tokens to every session and 1,548 once invoked, about $0.0002 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

integration-testing-orchestrator

Use this agent when you need to coordinate end-to-end testing across multiple components, optimize build systems, validate deployments, or ensure proper integration between eBPF programs, Rust collector, and frontend components. Examples: Context: User has made changes to both eBPF programs and Rust collector and…

eunomia-bpf/agentsight · 0 tokens

test-engineer

Expert in testing, TDD, and test automation. Use for writing tests, improving coverage, debugging test failures. Triggers on test, spec, coverage, jest, pytest, playwright, e2e, unit test.

ashrafmusa/agenticana · 49 tokens

e2e-tester

Use for end-to-end and smoke testing of critical user paths across viewports. Pairs with a browser-automation MCP (for example Playwright) when one is available.

mnzralee/claude-multi-agent-architecture · 41 tokens

qa-tester

Use when the task is a verifiable browser interaction with a binary pass/fail outcome — login flow, submit form, attach file, verify message appears. Returns a verdict + evidence. Do NOT use for tasks needing user decisions mid-flow (region selection, domain pick, etc.).

DevZonayed/Mochi · 60 tokens

visual-diagram-verifier

Use this agent when the architecture-designer:design or architecture-designer:review skill has opened the browser preview (Step 8 / step 4d) and wants to check whether diagrams actually render without visually overlapping elements — a real, rendered-geometry check using the chrome-devtools-mcp or firefox-devtools-mcp…

sembraniteam/claude-plugins · 112 tokens

qa-engineer

Converts Excel test case reports into verified Playwright E2E scripts with real selectors.

odarino/haren · 21 tokens