Skip to content

Tool Pick|RELAI Agent Eval Loop — turn your merged PRs into exam questions for a coding agent

Dec 2, 20264 min
TL;DRRELAI Agent Eval Loop is an open-source Claude Code/Codex plugin that turns your merged PRs into frozen evals to score a coding agent, then automatically improves your setup files and re-verifies. Install: claude plugin marketplace add relai-ai/agent-eval-loop. It fixes the problem of judging a model switch or a CLAUDE.md change by gut feel or a handful of manually reviewed PRs.

Look up & save

Loading dictionary…

中文版

Tool Info

FieldValue
NameRELAI Agent Eval Loop
TypeClaude Code / Codex / Cursor plugin (coding-agent evaluation and auto-improvement)
GitHubrelai-ai/agent-eval-loop
Stars89 (checked 2026-12-01; created 2026-11-11)
LanguagePython
LicenseApache-2.0
Installclaude plugin marketplace add relai-ai/agent-eval-loop && claude plugin install relai@agent-eval-loop

What Problem It Solves

Have you switched a coding agent's model, or changed a rule in CLAUDE.md, with no way to tell whether the change actually helped? Public benchmarks like SWE-bench test a task set that has nothing to do with your repo, and manually skimming a few PRs is subjective and doesn't repeat. Neither answers the one question that matters: did this change help your codebase?

RELAI Agent Eval Loop puts the answer back in your own history. It reads the PRs your repo has already merged, rewinds each one to the commit right before the fix, hides the tests that prove the fix, and turns that into an eval. Every eval is checked first — the correct fix must pass, a wrong one must fail — reviewed, and then frozen, so any later edit to a frozen eval gets flagged. Claude Code, Codex or OpenHands then re-solves the same problems, and a judge built from your own review standards scores four things: Solved (do the hidden tests pass), Merge-ready (would this actually get merged), Codebase fit (does it reuse your existing patterns), and Trustworthy (does the agent's own report match what it did), plus cost and time. With your approval, the improve skill then edits CLAUDE.md, AGENTS.md or your skills and reruns the same frozen evals, keeping only the changes that move the score beyond run-to-run noise.

Good fit for: deciding whether a new CLAUDE.md rule is worth shipping before it goes live; comparing two models or two skill setups on your own repo; teams building their own agent who want to find its riskiest failure modes and cover them with tests.

RELAI turns your own PRs into an eval loop that compounds
RELAI turns your own PRs into an eval loop that compoundsRELAI reads a repo's merged PRs to build frozen evals, scores a coding agent against those frozen evals, then uses the improve skill to change the setup and re-score it against the same frozen evals, so every round compares against one shared eval set. Merged PRs repo history Build eval freeze Agent runs judge scores Improve re-verify Eval set grows freeze run
  1. Read the repo's merged PRs
  2. Review and freeze them into the frozen eval set
  3. Run the frozen evals against the coding agent; a judge scores Solved / Merge-ready / Trustworthy
  4. The improve skill edits CLAUDE.md, AGENTS.md or skills on a branch and re-scores

Simplified: the checker step that verifies correct fixes pass and wrong ones fail, plus independent review, is omitted.

Getting Started

Install

# Claude Code
claude plugin marketplace add relai-ai/agent-eval-loop
claude plugin install relai@agent-eval-loop

# Codex
codex plugin marketplace add relai-ai/agent-eval-loop
codex plugin add relai@agent-eval-loop

You need Python 3.11+ for the bundled checkers, plus uv and a container engine such as Docker or Podman, since evals actually run inside Harbor. Start a new session after installing so the plugin loads.

Basic Usage

Once installed, just ask your coding agent in plain language:

Install the RELAI plugin from https://github.com/relai-ai/agent-eval-loop and use
its coding-evals skill to evaluate my coding agent on recently merged PRs in this
repository. Explain where it falls short and how to improve next.

Advanced Usage

To drive each step yourself:

# 1. Build 20 evals from the last six months of merged PRs and reverts
Use RELAI's coding-evals skill to build 20 evals from the last six months of
merged pull requests and reverts in {repository}

# 2. Run the evals and get a score
Use RELAI's coding-evals skill to evaluate Claude Code on these evals and report
the solved and merge-ready rates and cost per solved task

# 3. Approve an automated improvement, then re-verify on a branch
Use RELAI's improve skill to improve my coding agent's setup against these evals

Compared to Existing Options

RELAI Agent Eval LoopPublic benchmarks (SWE-bench, etc.)Manually reviewing merged PRs
Tasks come from your own codebase (generic task set)
Evals are frozen to prevent silent edits—
Repeatable, compares models/setups (but unrelated to your repo) (subjective, hard to repeat)
Writes improvements back into CLAUDE.md/skills automaticallyManual
Needs a container runtime (Docker/Podman)YesDependsNo

Things to Watch

  • Running evals needs a container engine. Evals execute inside Harbor, which needs Docker or Podman; a cloud sandbox or any environment without container access can't run it — this post itself was produced in a cloud sandbox that never verified the install.
  • You pay for the model calls. Building evals, running the agent under test, and judging all call a model. The official FAQ suggests trying a small batch of PRs first to estimate cost, and RELAI estimates spend and asks before going over budget.
  • A short PR history, or one full of version bumps, won't yield many usable evals. The Quick start docs recommend filtering out trivial commits; a repo without a solid PR history will have a limited eval pool.

Today's Takeaway

I used to think deciding whether to switch a coding agent's model, or whether a new rule belongs in CLAUDE.md, could only come down to gut feel or spot-checking a few PRs. RELAI Agent Eval Loop is a reminder that a merged PR already is the answer key — rewinding it to the pre-fix state and freezing it as an exam turns a post-hoc merge standard into something you can verify, repeatably, before you ship.

References