Rerunner

Built on Claude Code

Claude Code, Anthropic's coding agent, is the first agent Rerunner tests, so every regression run is Claude Code doing real tasks on main and on the pull request. This page lists the documented, public parts of Claude Code and the Claude API the check builds on.

What the check uses

Each item is a documented part of Claude Code or the Claude API.

Headless runs

Every task runs non-interactively with claude -p and JSON output. Rerunner deliberately doesn't use --bare: it skips CLAUDE.md and the rest of the project setup, which is the thing under test.

Docs: headless mode

The InstructionsLoaded hook

Fires whenever an instruction file enters context, with the file and the reason: session_start, nested_traversal, path_glob_match, include or compact. That turns "did the rule load?" into a fact, which is why expect_loaded can block a merge. One gap: an AGENTS.md read through Claude Code's fallback setting doesn't fire the hook; there Rerunner relies on the documented loading rules.

Docs: hooks · memory

Rules and skills

Rules in .claude/rules/ with a paths: glob load only when the agent touches a matching file. Skills keep their description in context and load their body on demand. The context diff resolves both the way Claude Code does.

Docs: memory and rules · skills

The system/init event

Lists the session's model, tools, skills, plugins and MCP servers, with any that failed to load. A server that stops connecting on the pull request is a deterministic failure, not a flaky test.

Docs: headless mode

Cost, tokens and turns

Each run's result reports its cost, token usage including cache reads and writes, and number of turns. Rerunner reports them per task and per side, so you see cost per successful task.

Prompt caching

Repeated runs of a task share the same prefix: system prompt, tool definitions and the setup under test. Cache reads cost a fraction of the base input price and the cache lives for five minutes by default, so runs of the same task are scheduled close together.

Docs: prompt caching

Claude API checks Roadmap

Problems that need judgment, such as two instruction files that contradict each other, will run on the Claude API. Every finding must quote the files verbatim, and these checks are reported, never blocking.

A run, as Claude Code reports it

What Rerunner records for a single run, before any statistics.

account-export PR #482, run 3 of 6
SourceWhatDetail
InstructionsLoadedCLAUDE.mdsession_start
InstructionsLoaded.claude/rules/api.mdpath_glob_matchsrc/api/**/*.ts, triggered by src/api/account.ts
Not loadeddocs/testing.mdNo include eventloaded in 6 of 6 main runs; the import target is missing on this branch
system/initSkills: releaseMCP server docs: connected
Result14 turnsCost and token usage recorded
Checknpm run lint:authExit 1src/api/account.ts:12 reads req.cookies outside AuthService
Illustration — not captured output. Field names follow Claude Code's documented hook and output formats.

Why Claude Code first

It shows its work

Claude Code reports which instruction files loaded and why. In our review of the documentation for Codex, Cursor and Copilot, we found no equivalent event. Without it, a test can only guess whether a rule was seen.

It's built to run headless

claude -p with JSON output, a startup event and per-run cost is what a CI check needs. Nothing has to be scraped from a terminal.

It has the most to get right

Nested CLAUDE.md files, imports, path-scoped rules, skills, hooks, MCP servers and settings. The richer the setup, the more ways an edit can change behaviour.

Alongside Anthropic's tools

Each answers a different question.

claude plugin eval

Tests a plugin or skill in isolation, with and without it. By design it doesn't load the project's CLAUDE.md, .claude/ directory or .mcp.json. Rerunner tests exactly that project setup, main against pull request. Plugin evals docs

Code Review

Reviews code changes and posts findings on the pull request. Rerunner answers a different question on the same pull request: does a change to the agent's own setup change what the agent does? Code Review docs

/doctor prompt-audit

Reads your instruction files and flags stale references and contradictions. Rerunner adds the other half: running real tasks to see whether behaviour changed. Memory docs

Rerunner is independent. We are not affiliated with, partnered with or endorsed by Anthropic. We build on Claude Code's public, documented interfaces, and we'll update this page when they change.

Try it on one repository.

We're looking for a few design partners to run Rerunner on a real repository and tell us where it's wrong.