RELAI Agent Eval Loop: Score Coding Agents with Your Own Codebase

RELAI builds project-specific evals from merged PRs to give coding agents trackable scores and an instruction-optimization loop.
RELAI Agent Eval Loop is an open-source plugin that addresses how public benchmarks fail to reflect coding agent performance in specific projects. It converts merged PRs into eval samples, validating and filtering out low-quality items before use to avoid score noise. Scoring mirrors real code review: whether the code runs, reaches a mergeable state, is trustworthy, and how much it costs. RELAI also auto-optimizes CLAUDE.md, AGENTS.md, and skills files based on eval results, keeping only measurably effective changes. No account is required—all artifacts live as repo files for easy version control and CI integration. It suits teams that have adopted coding agents but lack objective measurement, with returns depending on the quality and quantity of merged PRs.
Public benchmark scores are increasingly unable to answer a concrete question: how well does this coding agent actually perform in my project? RELAI Agent Eval Loop attempts to close that gap. It's an open-source plugin that converts merged PRs into evals, validates each one before use, and scores Claude Code, Codex, or any other coding agent against code-review-style criteria.

Why Public Benchmarks Aren't Enough
General benchmarks for coding agents measure how models perform on standardized tasks, but real development is full of project-specific constraints: how internal frameworks are used, directory structure conventions, naming habits, testing patterns, and legacy compatibility requirements. None of this shows up on public leaderboards, yet it determines whether an agent's output can be merged directly.
RELAI's bet is that the only meaningful evaluation set comes from your own repository. It treats merged PRs as natural eval samples—code that has gone through real review and real merging, representing the standard answer the team has endorsed.
From Merged PRs to Usable Evals
The core design principle is "validate first, then use." Not every merged PR makes a good eval: some changes are too trivial, some depend on too much context, and some are emergency patches. RELAI checks each eval before it goes into use, filtering out low-quality samples so the agent isn't scored against noisy data.
This is worth praising. When many teams try to build their own eval sets, the biggest problem is inconsistent sample quality, which leads to volatile scores and unreliable conclusions. Front-loaded validation blocks this problem at the pipeline's entrance.
"eval" (short for evaluation) refers to a set of test samples and scoring criteria used to measure how an AI model or agent performs on a specific task. In the coding agent context, an eval typically includes inputs (such as an issue description and code context) and expected outputs (such as a correct patch or modified files), and produces a comparable score through automated execution. Converting merged PRs into evals means using "the real requirement description + the final merged code" as context and reference, letting the agent regenerate the changes and comparing them against the standard answer, thereby quantifying its capability in the project's context.
Scoring Like a Reviewer
RELAI's scoring dimensions mirror what real code review cares about: whether the code runs, whether it reaches a mergeable state, whether the results are trustworthy, and how much it costs. The cost dimension is especially practical—token expenses for coding agents vary widely, and the same task can differ significantly in cost across different agents or prompting strategies. Including cost in the score makes comparisons more useful for decision-making.
On supported tools, the official listing explicitly covers Claude Code, Codex, and "any coding agent," without locking into a single vendor.
Automatically Optimizing CLAUDE.md, AGENTS.md, and Skills
A further step is closed-loop optimization. RELAI improves the project's CLAUDE.md, AGENTS.md, and skills files based on eval results, keeping only changes that are "measurably effective."
These files are essentially persistent instructions for the agent. The more detailed they get, the more likely they are to bloat, and bloated instructions dilute the key information. Using eval scores as a filter effectively adds a regression test to the instruction files: if adding a rule doesn't improve the score, it shouldn't stay.
CLAUDE.md and AGENTS.md are convention files that have emerged in the coding agent ecosystem in recent years: the former is used by Claude Code to load project-specific instructions, while the latter is recognized by multiple agent tools to declare persistent context such as code style, directory structure, and test commands. Skills files typically refer to encapsulated capabilities that an agent can invoke on demand (such as custom scripts, tool descriptions, or workflow snippets). These files are essentially a persistent form of "prompt engineering," and their content quality directly affects the agent's default behavior. Understanding this makes it clear why using eval scores to filter instruction changes is reasonable—it turns subjective prompt tuning into a verifiable regression process.
Files as the Platform, No Account Required
RELAI's operating model is lightweight: no account registration, no separate platform, and all outputs are just files in the repository. For teams that value data boundaries and toolchain simplicity, this is a clear plus—eval configurations and results can be version-controlled alongside the code and reused in CI.
On Product Hunt, the product received 97 upvotes and ranked #5, categorized under Open Source, Developer Tools, Artificial Intelligence, and GitHub. That traction shows that "evaluating coding agents with your own codebase" is a real need among today's developers.
"Files as the platform" is a tool design philosophy in which the product doesn't rely on a separate server or account system, but instead stores configuration, state, and outputs as files in the user's own repository. The benefits are that data stays local, can be version-controlled alongside the code, and is easy for CI systems to invoke; the trade-off is the lack of a visual dashboard and cross-repository aggregation. For evaluation tools, this format is especially fitting, because evals themselves need to be updated frequently as code changes, and a file-based approach keeps the "eval set" and the "code under test" in sync.
Who Should Use It
Engineering teams that have already rolled out coding agents but lack objective ways to measure them are the most direct audience for this tool. It won't make architectural decisions for you, nor guarantee that the agent writes good code, but it turns "is the agent getting better or worse" from a subjective impression into a trackable score.
One boundary worth noting: eval quality depends heavily on the quality and quantity of merged PRs in your repository. Teams with a short project history or inconsistent review standards will see diminished returns.
Related articles

AI Agent for Beginners: From Architecture to Automated Sales Lead Enrichment
Learn AI agent architecture—model, instructions, memory, tools—and build a sales lead enrichment agent in n8n and Python, with production reliability tips and MCP.

Say Goodbye to Hand-Written Code: Cursor AI Doubles Your Programming Efficiency
e-Bliss Technologies' short video reveals how Cursor AI compresses 5 hours of coding into 5 minutes—describe your logic in natural language to auto-generate frontend, backend, and bug fixes. Delivery speed tripled. Discover the real potential and limits of AI coding workflows.

AI Giants Say 'Slow Down' While Flooring the Accelerator — Who's Lying?
The Vergecast breaks down five AI hot topics: Anthropic's crypto flub, AI hacking, Altman and Amodei's slowdown calls, Google search AI-ification, Jensen Huang's testimony, and how AI products can replicate Google Maps-style data deals.