Skip to content
Proyectos

relai-ai/agent-eval-loop

Ver en GitHub

Acerca de

Build evals from traces, code, and coding sessions, then measure and improve AI agent behavior, including your coding agents

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
+4
in 7 days
+118
in 15 days
+148
in 1 month
Recopilando historial

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

agent-eval-loop by RELAI. Build evals first and improve your agent against them. The loop: discover maps the behavior, eval builds the evals, improve makes measured changes, then repeat.

Claude Code plugin Codex plugin Agent Skills compatible License: Apache 2.0 GitHub Discussions

Quick start · Use cases · Manual installation · Skills · FAQ · Docs · Paper · Design


Quick start

Ask Claude Code, Codex or another coding agent:

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.

Evals run in Harbor, which needs a container engine such as Docker or Podman. If your agent asks you to start a new session after installing, send the same request there.

Use cases

An eval is a test that runs your agent on a task and grades the result. Before an eval scores your agent, RELAI checks that correct solutions pass and wrong ones fail, has an independent reviewer check it, and freezes it so any later edit is flagged. Results cover only the evaluated scenarios. How RELAI checks evals, and the limits of the results.

Coding agents your team uses

https://github.com/user-attachments/assets/4850565e-1860-4256-9721-8c59602b0d3b

Measure whether a model, instruction file or skill improves Claude Code, Codex, OpenHands or your own setup on your repositories. From the Quick start request, RELAI:

  1. Builds evals from your merged PRs. Each starts at the commit before the fix, with the fix's tests hidden.
  2. Checks and freezes each eval before it scores your agent. You sign off.
  3. Scores your agent like your reviewers would, against standards drafted from your instruction files, contributing guides and review comments.
  4. Improves your setup on a branch, keeping a change only if it helps beyond run-to-run noise.

What you get: an evaluation report in your project for each agent or setup. It leads with five numbers (the values here are illustrative):

Metric Example What it means
Solved 55% The fix's hidden tests pass and your existing tests still pass.
Merge-ready 25% Solved, passes every code check (such as build and lint), and a code-review judge has nothing to fault.
Codebase fit 0.80 A judge's 0 to 1 score for whether the change sits where the behavior lives and reuses your helpers.
Trustworthy 70% The agent's final report matches what it did, it verified its change, and it did nothing destructive.
Cost and time $0.40, 3 min Per attempt.

Below the numbers, the report shows where the agent went wrong and the judges' feedback, such as a reimplemented helper. Models or setups are compared on the same evals, and a difference within run-to-run noise counts as none.

What you get: an improved setup. With your approval, the improve skill turns those misses into changes to your instruction files, skills or subagents, and reruns the same frozen evals. You get a branch with the setup it kept and a before-and-after comparison (illustrative values):

Metric Before After
Merge-ready 25% 40%
Solved 55% 60%
Trustworthy 70% 85%
Cost per attempt $0.40 $0.65

The branch also lists the changes RELAI tried and rejected.

For the evaluation methodology and results from six coding agents, see the paper below.

========================================================================

MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing
Priyatham Kattakinda, Wenxiao Wang, Soheil Feizi

Paper: https://arxiv.org/abs/2612.02506
Dataset: https://huggingface.co/datasets/relai-ai/mergeready-bench

========================================================================

Full walkthrough: build evals, evaluate and improve

To run one step at a time, ask for each:

1. Turn past work into evals

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

2. Evaluate your coding agent

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. Improve your setup before you roll it out

Use RELAI's improve skill to improve my coding agent's setup against these evals

See eval sources, grading safeguards and eval-project setup.

AI agents you build

https://github.com/user-attachments/assets/53ce7659-21f8-4f42-897e-a5e3cc4d1ffa

Find where an agent you build can fail and fix it without regressions, on any framework. In your agent's repository, ask:

Use RELAI to find where this agent is likely to fail from its code, prompts and
the traces in ./traces. Build evals for the top risks and get a baseline. Then
check with me before improving it.

Traces are optional. From this request, RELAI:

  1. Maps your agent in an EvalsWiki (relai/wiki/): pages on its requirements, its risks ranked by the evidence from code and traces, and questions about intended behavior for you to answer.
  2. Builds evals for the top risks that run your agent end to end. Each has a grader, a code check or an LLM judge, that you preview before RELAI freezes it.
  3. Scores your agent on each risk to get a baseline.
  4. Improves your agent on a branch, keeping a change only if it fixes failing evals without breaking passing ones.

What you get: an evaluation report in your project, with scores for each risk (the values here are illustrative):

Risk from the EvalsWiki Evals Passing
Issues a refund without checking the order status 6 2
Retries a failing tool call instead of escalating 4 1
Answers from an outdated policy document 5 4

Below the scores, the report shows why runs failed: where the agent went wrong and the grader's feedback. relai/STATUS.md tracks progress, open decisions and spend.

What you get: an improved agent. With your approval, the improve skill changes prompts, tools or code within the scope you set, and reruns the same frozen evals. You get a branch with the change it kept and a before-and-after comparison (illustrative values):

Risk Before After
Issues a refund without checking the order status 2 of 6 6 of 6
Retries a failing tool call instead of escalating 1 of 4 3 of 4
Answers from an outdated policy document 4 of 5 4 of 5

The branch also lists the changes RELAI tried and rejected.

Full walkthrough: discover, evaluate and improve

To run one step at a time, ask for each:

1. Discover where it can fail

Use RELAI's discover skill to read this agent's code, prompts and the traces
in ./traces, and tell me where it is likely to fail

2. Turn the risks into evals

Use RELAI's eval skill to build evals for the top five risks and get a baseline

3. Improve without regressions

Use RELAI's improve skill to fix the failing evals without breaking the passing ones.
You may change prompts and tools, not the model

Continue as new traces arrive

Use RELAI's loop skill to keep improving this agent from ./traces;
optimize task success first, then cost

Explore discovery and runner options, review and annotate traces, or bring an existing benchmark.

Manual installation

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

Start a new session after installing. Codex asks you to trust the optional hooks, which flag edits to frozen evals and show checker results.

Requirements: Python 3.11+ for the bundled checkers, and uv with a container engine for Harbor. See all installation methods for other agents, hooks and troubleshooting.

Skills

Name a skill in your request, or describe what you want and your coding agent picks one.

Skill What it gives you Use it when
start A suggested first step, with no extra model calls. You are not sure where to begin.
discover An EvalsWiki of requirements, risks and open questions. You want to know where an agent can fail.
trace-review An app for reading traces and saving feedback. You want to annotate real runs.
eval End-to-end evals and a baseline score. You want to measure an agent or import a benchmark.
improve A tested change on a branch, with before-and-after results. You want to fix failures or compare models and prompts.
loop Repeated rounds of learning and improvement. New traces, feedback or evals keep arriving.
coding-evals Evals from your merged pull requests and a report on your coding agent. You want to measure the coding agent your team uses.

FAQ

What does it cost?

Your coding agent's tokens, plus model calls for the agent under test and the judges during eval runs. RELAI estimates costs against your budget and asks before spending you have not approved. Costs and approvals.

Where does my data go?

Evals and results stay in your project, and your model providers receive what runs and judges need. RELAI adds no destination of its own for your data and collects no telemetry or usage metadata. Data handling.

Documentation

Citation

If you use MergeReady-Bench (which is built with the agent-eval-loop plugin) or build on its methodology, please cite:

BibTeX citation
@misc{kattakinda2026mergereadybench,
  title={MergeReady-Bench: Evaluating and Improving Coding Agents Beyond Test Passing},
  author={Priyatham Kattakinda and Wenxiao Wang and Soheil Feizi},
  year={2026},
  eprint={2612.02506},
  archivePrefix={arXiv},
  primaryClass={cs.SE},
  url={https://arxiv.org/abs/2612.02506}
}

Contributing

See CONTRIBUTING.md and our code of conduct. Report vulnerabilities privately through SECURITY.md, and ask questions in Discussions.

If RELAI helps your team, a star helps other teams find it.

Made with ❤️ by RELAI

Explorar proyectos relacionados

Cargando…