Rerunner

Security

Rerunner runs coding agents on code from pull requests. That is useful, and it is risky: a pull request can change what the agent executes. This page sets out the threat model, how the check is built around it, and how to run it safely.

Threat model

Treat every run as running untrusted code from the pull request.

During a run an agent may execute hooks configured in the repository (for Claude Code, in .claude/settings.json), start MCP servers from .mcp.json, and run shell commands, install packages and run tests. Anyone who can open a pull request can add a hook, change an MCP server, edit a rules file, or change the suite's checks.

Claude Code's documentation is explicit that a headless session runs the project's hooks and connects its MCP servers even in a folder you have never trusted. Its --bare mode avoids that, but also skips CLAUDE.md and the rest of the setup, which is exactly what Rerunner tests. So isolation has to come from the environment, not the agent. Claude Code docs: headless

At stake: secrets in the runner's environment, including the model API key and the code host token; network access to internal systems; spending on the model provider account; and instructions hidden from reviewers, for example with invisible Unicode.

How the check is built

Runs in your CI

On your runners, under your accounts. There is no hosted Rerunner service that receives your code.

Fresh environment per run

Each run starts in a disposable container or runner and is thrown away afterwards, so one run can't affect the next.

No automatic fork runs

The check never runs automatically on pull requests from forks. A fork's author is outside your organisation; review the change first, then start a run yourself, in a sandbox.

Least privilege

The code host token needs read access to contents and write access to pull request comments and checks, nothing more.

Bounded cost

A per-run cost guard in the suite, on top of the spending limit on your own key. If a run is ever compromised, the damage is capped and the key is easy to revoke.

MCP servers from the pull request

We're exploring record-and-replay for MCP servers, so a run doesn't have to start a server the pull request introduced. Until then, the sandbox is the boundary.

Sandbox guidance

What we ask design partners to set up.

  • A fresh sandbox for every run: an ephemeral CI runner, container or virtual machine, discarded afterwards.
  • No production secrets: no deploy keys, cloud credentials or customer data in the environment.
  • A dedicated model API key with a spending limit, used only for these runs.
  • A least-privilege code host token: read contents; write pull request comments and checks.
  • Restricted network access where your CI supports it, so a run reaches the model provider and your package registry, and little else.

Data handling

The product is in development; these are its design rules.

  • Rerunner sends nothing to us: no code, no telemetry, no usage data.
  • Results stay where your CI puts them: logs, pull request comments and files on the runner.
  • The coding agent sends prompts and repository content to its model provider, under your account and that provider's terms, just as it does when you use it directly.
  • If we ever add a hosted service or any telemetry, we'll update this page and the privacy page before it ships, and say what is collected and why.

What we can't promise

A sandbox limits the damage untrusted code can do. It doesn't make that code safe. The checks for hidden Unicode and secrets protect what your agents read; they don't make the runner safe.

Rerunner has not had an external security audit yet. We'll say so here until it has.

Reporting a vulnerability

Email security@rerunner.dev. Please report privately rather than in public. We'll reply, keep you informed while we fix it, and credit you if you'd like.

Machine-readable contact details: /.well-known/security.txt