by relai-ai
Build evals from traces, code, and coding sessions, then measure and improve AI agent behavior, including your coding agents
# Add to your Claude Code skills
git clone https://github.com/relai-ai/agent-eval-loopGuides for using ai agents skills like agent-eval-loop.
agent-eval-loop is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by relai-ai. Build evals from traces, code, and coding sessions, then measure and improve AI agent behavior, including your coding agents. It has 78 GitHub stars.
agent-eval-loop's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/relai-ai/agent-eval-loop" and add it to your Claude Code skills directory (see the Installation section above).
agent-eval-loop is primarily written in Python. It is open-source under relai-ai on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-eval-loop against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
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.
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.
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:
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.
Read the paper on evaluating and improving coding agents beyond test passing for the methodology and experimental results.
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.
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:
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.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.
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.
claude plugin marketplace add relai-ai/agent-eval-loop
claude plugin install relai@agent-eval-loop
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.
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. | Yo |