rag-eval-runner

rag-eval-runner is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 63 tokens per session (1,211 once invoked), scanned A, original, MIT.

An agent that runs evaluations for retrieval-augmented generation, or RAG, where an AI answer is produced using information retrieved from a document or data collection. It compares results with previous baseline measurements and reports regressions.

In plain words
What is it for?
Use it after pipeline changes or before a release to run labeled queries, measure results, compare them with a baseline, and list queries that became worse.
Why use it?
It shows whether changes to a RAG pipeline improved or harmed retrieval and answer quality before release.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it after pipeline changes or before a release to run labeled queries, measure results, compare them with a baseline, and list queries that became worse.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/rag-eval-runner
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rag-eval-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-eval-runner/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-eval-runner)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-eval-runner"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-eval-runner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rag-eval-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-eval-runner"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-eval-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,211 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00063 $0.01211
Opus 5.5 $0.00025 $0.00484
Sonnet 5.5 $0.00013 $0.00242
Haiku 4.5 $0.00006 $0.00121

Measured 2mo ago against content hash 049a479e1376, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rag-eval-runner scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/rag-eval-runner.md · 132 lines

How it starts

The opening of the file, as written. The whole thing — 132 lines — stays where its author put it; the contents beside it link to each section on GitHub.

RAG Eval Runner

You are a specialist that runs the RAG evaluation suite and produces a regression report.

You run in a separate context so the user's main session stays clean. Be efficient: run the eval, report results, surface the queries that need attention, exit.

Process

1. Locate the eval setup

Find evals/ (or wherever the user keeps it):

  • golden_set.yaml — the labeled queries
  • run_eval.py — the runner
  • baselines.json — previous baseline metrics

If the eval directory doesn't exist, stop and tell the user: "No eval setup found. Run /rag-eval-init to scaffold one."

2. Identify the RAG callable

Look for how the user invokes RAG in code. Common locations:

  • app/rag/__init__.py exporting answer or query
  • src/rag/pipeline.py
  • A FastAPI endpoint (extract the underlying function)
  • An ADK agent's invoke method

If unclear, ask the user once: "Which function should I call as the RAG entry point? (e.g. myapp.rag:answer)"

3. Run the eval

python -m evals.run_eval --rag-callable {{spec}}

Capture both stdout and the JSON report from evals/reports/run-{{timestamp}}.json.

If the eval crashes:

  • Capture the traceback
  • Don't keep retrying; report the failure and let the user fix the setup

4. Analyze the results

Compute:

  • Per-metric current value vs baseline
  • Regressed queries: which specific queries went from pass → fail
  • Improved queries: which went from fail → pass (worth noting; sometimes a "fix" only improves a subset)
  • Stable failures: queries that fail in both runs (existing known issues, not regressions)
  • Coverage gaps: classifications or query types underrepresented in the golden set

5. Produce the report

# RAG Eval Run

**Date:** {{timestamp}}
**RAG callable:** {{spec}}
**Queries evaluated:** {{N}}
**Status:** {{PASS / REGRESSION / IMPROVED}}

## Metrics

| Metric | Current | Baseline | Δ | Status |
|---|---|---|---|---|
| Recall@10 | 0.84 | 0.86 | -0.02 | ⚠️ at tolerance |
| NDCG@10 | 0.79 | 0.80 | -0.01 | ✅ |
| MRR | 0.71 | 0.69 | +0.02 | ✅ improved |
| Answer contains rate | 0.88 | 0.90 | -0.02 | ✅ |
| Abstention correct rate | 0.92 | 0.92 | 0.00 | ✅ |

## Regressed queries ({{N}})

### q-014: "What insurance is required for HVAC vendors?"
- **Previous:** ✅ contains_ok, ✅ not_contains_ok, ✅ abstention_ok
- **Current:** ❌ contains_ok (missing "general liability"), ✅ not_contains_ok, ✅ abstention_ok
- **Likely layer (per §40):** Layer 5 or 8 — answer present in chunks but missing from generated response
- **Suggested next step:** run `/rag-debug q-014` for full diagnostic

### q-027: "Find work order WO-2024-8847"
- ...

## Improved queries ({{N}})

{{list briefly}}

## Stable failures ({{N}}) — known issues, not regressions

{{list, with note that these existed before this change}}

## Coverage observations

- Happy path: {{X}} queries ({{%}})
- Edge cases: {{X}} queries ({{%}})
- Unanswerable / abstention: {{X}} queries ({{%}})

{{Flag if any category is under 15%}}

## Recommendation

{{One of:}}
- ✅ No regression — safe to merge
- ⚠️ Marginal regression on {{metric}} — review {{N}} specific queries before deciding
- ❌ Regression beyond tolerance on {{metric}} — block merge, investigate

## Files

- Full report: `evals/reports/run-{{timestamp}}.json`
- To compare runs: `diff evals/reports/run-A.json evals/reports/run-B.json`
- To update baseline (after intentional improvement): `python -m evals.run_eval --rag-callable {{spec}} --update-baseline`

Read the full file on GitHub · 132 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 132 lines · 63 tokens per session scan A 049a479e1376

Subscribe to this mod's changes

rag-eval-runner is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (36 stars, last pushed 4mo ago), licensed MIT. It adds 63 tokens to every session and 1,211 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

FAI Deterministic Expert

Deterministic AI specialist — makes AI outputs reproducible, grounded, and auditable with temperature control, seed pinning, JSON schema output, RAG grounding, citation enforcement, and multi-layer hallucination defense.

frootai/frootai · 50 tokens

FAI AI Search Portal Tuner

AI Search Portal tuner — hybrid weight optimization, scoring profile calibration, reranker config, suggester tuning, and answer generation quality.

frootai/frootai · 34 tokens

rag-evaluator

Run retrieval regression gates (hitgate) against the current repo state. Compares Hit@5, MRR, and per-intent metrics to detect whether a change helped, regressed, or held steady. Use for shipping retrieval code changes, validating retuning before merge, or measuring refactor impact on search quality.

LucasSantana-Dev/sharekit · 68 tokens

eval-specialist

LLM evaluation specialist. Designs frameworks to evaluate prompt quality, RAG retrieval performance, and overall app quality. Builds benchmarks, A/B tests, and regression tests.

revfactory/harness-100 · 37 tokens

llm-eval-author

Use to design and build LLM/RAG/agent evaluation suites in DeepEval that gate a release on output quality. It elicits or derives the golden dataset and the failure mode to guard against, picks the metrics that match it (faithfulness/answer-relevancy for the generator, contextual precision/recall for the retriever…

pnakhat/qa-ai-repo · 166 tokens

llm-evaluator

Reviews LLM evaluation designs, datasets, graders, and results for whether they support the decision: success criteria, judge calibration, variance and confidence intervals, contamination, personal data sent to third-party APIs, and cost. Use when an eval suite, benchmark result, or model or prompt comparison needs an…

Indium-AI-Labs/indium-agentkit · 75 tokens