How it works
Rerunner asks one question of every pull request that touches your agent setup: does the agent behave differently after this change? It answers in three layers, cheapest first, and blocks a merge only on evidence that doesn't depend on chance.
Field names, formats and CI details are in the docs.
1. Context diff
What the agent will see differently. No model calls, same answer every time.
Before any agent runs, Rerunner resolves what the agent loads on main and on the pull request: instruction files and their imports, rules and the paths that trigger them, skills, MCP servers and their tool descriptions, and settings such as the pinned model. It shows the difference file by file, including when each file loads.
| Context | main | PR #482 |
|---|---|---|
| CLAUDE.md | Loads at session start | Loads at session startChanged: +3 −9 lines |
| docs/testing.md | Imported by CLAUDE.md:8 | MissingRenamed to docs/guides/testing.md; the import still points at the old path |
| .claude/rules/api.md | When the agent touches src/api/**/*.ts | Unchanged |
| .claude/skills/release | Not present | AddedDescription listed in every session; body loads when used |
| Model | Pinned in settings | Unchanged |
Deterministic checks
Broken imports and missing files, hidden Unicode that can conceal instructions from a reviewer, likely secrets pasted into context, settings and .mcp.json that don't parse, rule frontmatter that doesn't parse (which turns a scoped rule into an always-on one), and context larger than a given agent will load. A failure in any of these blocks the merge, because it gives the same answer on every run.
Roadmap: checks that need a model. Contradictions between instruction files need judgment. These checks will use the Claude API, must quote the files verbatim, and are reported, never blocking.
2. Regression run
The same tasks, on both sides, several times each.
Rerunner checks out main and the pull request side by side and runs each task in your suite on both: same agent version, same pinned model, same starting files, in a fresh disposable environment every time. The only difference between the two sides is the change under review.
Agents aren't deterministic, so each task runs several times per side (three by default) and Rerunner compares how often it passed, not a single result. Each run is scored by the task's own check: a command, such as your tests, that exits 0 on success. Every run also records which instruction files loaded and why, which tools the agent called, and its turns, tokens and cost.
Four verdicts
- PASS
No difference: the pull request passes as often as main. A task that fails on both sides is reported too, because the task or its check probably needs attention.
- REGRESSED
The pull request passes less often than main, and a one-sided Fisher exact test on the pass counts (a standard test for whether a difference in small counts could be chance) gives p < 0.10.
- IMPROVED
The pull request passes more often than main, by the same standard.
- INCONCLUSIVE
The counts differ, but not clearly enough to say the change caused it. More runs usually settle it. A task where the agent errored on every run, on both sides, is also inconclusive.
The worked arithmetic and the reasoning behind p < 0.10 are in the verdict rules.
What blocks a merge
Only failures that would happen on every run.
- A context check fails: a broken import, hidden Unicode, a likely secret, an invalid settings or
.mcp.jsonfile, or context over an agent's size limit. - An expected file stops loading: a file in the task's
expect_loadedloaded in every main run and in no pull request run. - A forbidden file loads: a file in the task's
must_not_loadloads in a pull request run.
Differences in pass rates are statistical. Rerunner reports them with their counts and leaves the decision to your reviewers. A gate that fails on noise gets switched off within a week; a gate that blocks only on facts can stay on.
3. Root cause Roadmap
Which edit did it?
A pull request often changes several pieces of the setup at once. When a task regresses, root cause analysis will restore each changed piece to its main version, one at a time, and re-run the task. If restoring one piece brings the old behaviour back, the report names it as the likely cause; if none does, it says that too.
| Restored to main | Re-run | Result |
|---|---|---|
| CLAUDE.md §Auth | 5/6 | Likely cause |
| docs/testing.md rename | 1/6 | No effect |
| release skill | 1/6 | No effect |
Where it runs
As a check in your own CI, on your runners, for code on GitHub or GitLab, triggered only by pull requests that change the agent setup or the suite. The report is one pull request comment, updated on every push, with a status you can make required. Every run calls your model provider under your own account; the security page covers sandboxing, forks and spending limits.
Claude Code is the first supported agent; Codex, Cursor, Gemini CLI and OpenCode are on the roadmap.
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.