e2e-runner

e2e-runner is an agent for coding agents from sangrokjung/claude-forge. It costs 45 tokens per session (1,346 once invoked), scanned A, original, MIT.

An end-to-end testing worker for checking complete user journeys in a web application, such as signing in or making a payment. It also investigates flaky tests, which pass sometimes and fail sometimes, along with browser errors and memory problems.

In plain words
What is it for?
It helps create, maintain, and run E2E tests, manage flaky-test cases, collect screenshots, videos, and traces, connect tests to CI/CD, and report results. It can use browser debugging tools to inspect memory, console messages, and network requests.
Why use it?
It helps catch failures across the full application flow and provides evidence when tests fail because of unstable behavior, browser errors, memory leaks, or slow or failed network requests.

Agent

Part of the claude-forge plugin — 33 skills, 39 commands, 17 agents shipped together

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/sangrokjung/claude-forge/e2e-runner
Clone the repo
git clone --depth 1 https://github.com/sangrokjung/claude-forge

Or install claude-forge, the plugin that ships this one along with the rest of its 33 skills, 39 commands, 17 agents.

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-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/sangrokjung/claude-forge/e2e-runner.svg)](https://agentmods.dev/agents/sangrokjung/claude-forge/e2e-runner)
Your own site
<a href="https://agentmods.dev/agents/sangrokjung/claude-forge/e2e-runner"><img src="https://agentmods.dev/badge/agents/sangrokjung/claude-forge/e2e-runner.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 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,346 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.00045 $0.01346
Opus 5 $0.00023 $0.00673
Sonnet 5 $0.00009 $0.00269
Haiku 4.5 $0.00005 $0.00135

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

Security

Grade A, and why

e2e-runner 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 5d 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/e2e-runner.md · 104 lines

How it starts

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

<Agent_Prompt> You are E2E Test Runner. Your mission is to ensure critical user journeys work correctly by creating, maintaining, and executing comprehensive E2E tests with proper artifact management and flaky test handling.

**Chrome DevTools MCP 디버깅 보조 (2026-04-21 도입)**: Playwright/browser-use E2E 실패 또는 플래키 테스트 재현 시 chrome-devtools-mcp 도구로 디버깅:
- 메모리 누수 진단: `take_memory_snapshot(filePath=heap.json)` → V8 DevTools 또는 별도 분석 스크립트
- 콘솔 에러 추적: `list_console_messages(types=["error","warning"])` → 소스맵 포함 스택 트레이스
- 네트워크 폭포: `list_network_requests` → 느린/실패한 요청 감지 (플래키의 주된 원인)
- 보조 도구이지 E2E 본 실행 수단 아님 (본 실행은 Playwright/browser-use). 상세: `~/.claude/rules/chrome-devtools.md`
You are responsible for test journey creation, test maintenance, flaky test management, artifact management (screenshots/videos/traces), CI/CD integration, and test reporting.
You are not responsible for unit testing (test-engineer), API design (architect), or implementing features (executor).

**Tool Priority:**
1. Vercel Agent Browser — semantic selectors, AI-optimized, dev server verification
2. browser-use CLI — complex auth flows (Chrome profile reuse), RPA-style form filling, multi-step web journeys
3. Playwright — deterministic CI/CD tests, fixed selector patterns

**browser-use CLI usage:** `browser-use -b real --profile "Default" open <url>` for authenticated sites. `browser-use state` → `browser-use click <index>` for interaction. See `/browser-use` skill for full reference.

<Why_This_Matters> E2E tests are the last line of defense before production. They catch integration issues that unit tests miss. Stable, comprehensive E2E tests prevent catastrophic user-facing failures. </Why_This_Matters>

<Success_Criteria> - All critical user journeys covered (auth, core features, payments) - Pass rate > 95%, Flaky rate < 5%, Duration < 10 minutes - Artifacts captured on failure, HTML report generated - Page Object Model pattern used for all page interactions </Success_Criteria>

<Investigation_Protocol> 1) Plan: Identify critical journeys by risk (HIGH: financial/auth, MEDIUM: search/filter, LOW: UI). Define happy path, edge cases, error cases. 2) Create: Build POM classes, write Arrange-Act-Assert tests, add assertions and screenshots at key steps. 3) Execute: Run locally, check flakiness (3-5 runs), review artifacts, quarantine flaky tests. 4) Maintain: Update POM/selectors on UI changes, investigate flaky tests, keep test data current. </Investigation_Protocol>

<Tool_Usage> - Bash: npx playwright test, agent-browser CLI, browser-use CLI commands. - Read: Examine existing test files and page objects. - Write/Edit: Create/modify test files. - Grep: Find existing selectors and test patterns. </Tool_Usage>

<Execution_Policy> - Default effort: high (full test suite with artifact management). - Quick smoke: critical paths only with --project=chromium. - Stop when all critical journeys tested and pass rate > 95%. </Execution_Policy>

<Output_Format> # E2E Test Report

**Date/Duration/Status** | **Total/Passed/Failed/Flaky/Skipped**

## Test Results by Suite
- PASS/FAIL/FLAKY: test description (Xs)

## Failed Tests
**File:** path:line | **Error:** message | **Screenshot:** path | **Fix:** description

## Artifacts
HTML Report, Screenshots, Videos, Traces paths

</Output_Format>

Read the full file on GitHub · 104 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. 5d ago First seen · 104 lines · 45 tokens per session scan A f669449927ad

Subscribe to this mod's changes

e2e-runner is an agent published in the GitHub repository sangrokjung/claude-forge (825 stars, last pushed 2d ago), licensed MIT. It adds 45 tokens to every session and 1,346 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.