Launching today

RELAI Agent Eval Loop
Make your coding agent measurably better at your codebase
159 followers
Make your coding agent measurably better at your codebase
159 followers
Public benchmarks can't tell you how your coding agent does on your codebase. RELAI Agent Eval Loop is an open-source plugin that turns your merged PRs into evals and checks each one before using it. It scores Claude Code, Codex or any coding agent like your reviewers would: does it work, is it merge-ready, can you trust it, what did it cost. Then it improves your CLAUDE.md, AGENTS.md and skills, keeping only what measurably helps. No account, no platform, just files in your repo.





Free
Launch Team / Built With

Framer AI workflowsPut Framer’s Agent to work on your site
Promoted



Hey Product Hunt 👋
I'm Soheil, CS professor at the University of Maryland and founder of RELAI.
Every week there's a new model, a new skill or a new CLAUDE.md trick that promises a better coding agent. Teams switch on vibes, because nobody can answer the one question that matters: does it work better on our codebase?
So we built RELAI Agent Eval Loop. It's a plugin for Claude Code, Codex and other coding agents, and it's 100% open source (Apache 2.0). No account, no platform, no paid tier. Everything stays as plain files in your repo.
Each loop:
Builds evals from your team's merged PRs, and checks each one before using it
Scores your agent on what your team cares about:
• Pass rate: does its fix actually work, without breaking anything else?
• Merge-ready: would you merge it as is?
• Trustworthy: did it work safely and report honestly?
• Cost and time per task
Improves your agent's setup (CLAUDE.md or AGENTS.md and skills) from what failed
Proves it: every change is re-run on the same evals and kept only if it measurably helps
We tried it on 20 popular open-source repos, created 50 evals from their merged PRs, and ran 6 coding agents on each one 3 times. The biggest surprise: passing the tests isn't the same as being mergeable. Of the 400 fixes that passed, only 172 (43%) were merge-ready.
Then we let it improve Claude Code on the Vue repo. Same model, better setup: merge-ready rate went from 23% to 49%.
Try it in Claude Code (needs Docker or Podman, plus uv):
Then ask:
You'll see where your agent fails, and what it costs, before you decide whether to let it improve anything. It also estimates the cost before anything that spends model credits, so there are no surprise bills.
Using Codex or another agent? Setup is in the README.
One question for you: what would you want your coding agent to get better at first? I'm here all day and will reply to everyone.
Soheil
⭐ https://github.com/relai-ai/agent-eval-loop
@soheil_feizii like the idea of turning merge PRs into real evals instead of relying on public benchmarks. Does the system also catch cases where an agent passes tests but still produces code reviewers wouldn't approve?
@soheil_feizi @leoparker1965_alt Absolutely! That's one of the key differentiators. We evaluate codebase fit, test quality and change scope against your team's own review standards. Passing tests is only half the battle. Review and rework can add significant overhead. In our study 57% of fixes that passed the tests were still assessed as not merge-ready.
@soheil_feizi @leoparker1965_alt @py_laurent Adding to Laurent's point: And the gap is rarely lint or formatting. Of the 400 solved attempts in our study, only 8% of them failed a code check with 45% of them drew some review request such as a missing changelog entry, a fix in the wrong layer, or a behavior change nobody asked for. These are some of the popular factors we have seen limiting merge-ready rates.
@leoparker1965_alt Expanding on what @py_laurent said, some of the additional checks we look for are (among other things):
Is the new code using existing or build right abstractions?
Is the change made in the right layer (API/middleware/db just as an example for a backend system)?
Does the agent report its changes accurately?
You can customize these and add more criteria as you see fit. So we are very flexible.
Turning a team's own merged PRs into the test set feels far more honest than public benchmarks. I'm curious - roughly how many PRs does a repo need before the scores settle down?
@andreibreaz This is a great question. I'd recommend to start with 10 representative PRs and several runs per task. On Vue repo, just 7 PRs with 10 runs each were enough to detect a significant improvement. Having said that, the diversity of the PRs matters as much as the number.
@andreibreaz @py_laurent And to put numbers on it, with for example 7 tasks times 10 runs (so 70 trials), the estimated 95% interval for an agent's solve rate or merge-ready rate would still be about 10~12 percentage points (plus or minus). So the number of trials (#tasks times #runs_per_task) needed really depends on how close the options you want to compare really are. What you can reliably detect with a few dozen to ~70 trials are large changes, like the 23% -> 49% merge-ready jump we saw on Vue.
@andreibreaz One trick you can use when you have few evals from PRs is to run several passes and optimize for consistency (pass^k) using our "improve" skill.