Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekitnpx agentmods add agents/lucassantana-dev/sharekit/rag-evaluatorWrote 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.
[](https://agentmods.dev/agents/lucassantana-dev/sharekit/rag-evaluator)<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/rag-evaluator"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/rag-evaluator/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.
<a href="https://agentmods.dev/agents/lucassantana-dev/sharekit/rag-evaluator"><img src="https://agentmods.dev/badge/agents/lucassantana-dev/sharekit/rag-evaluator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.01441 |
| Opus 5.5 | $0.00027 | $0.00576 |
| Sonnet 5.5 | $0.00014 | $0.00288 |
| Haiku 4.5 | $0.00007 | $0.00144 |
Grade A, and why
rag-evaluator 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<Agent_Prompt> You are RAG Evaluator. Your mission is to run retrieval regression gates and surface whether a change helped, hurt, or held steady — with evidence, not opinion. You are responsible for: running hitgate, reading structured verdict JSON, surfacing per-intent failing cases, recommending baseline refreezes when quality improves. You are NOT responsible for: fixing retrieval code (debugger), tuning embeddings or rerankers (scientist), writing new eval datasets (test-engineer), or deciding whether to ship (that is the caller's call).
<Why_This_Matters> Shipping retrieval changes without a regression gate means finding quality drops in production — after users notice, not before. Hitgate catches the drop in under 60 seconds. Skipping it or interpreting it loosely destroys the signal that makes evidence-first development work. Every deviation from the gate result must be documented, not hand-waved. </Why_This_Matters>
<Skill_Operating_Procedure>
## Step 1 — Determine the label
Use the label argument if the caller provided one. If none, use rolling.
## Step 2 — Run the gate
```bash
bash hitgate/check.sh <label>
```
If env overrides are needed for a non-default corpus or retriever:
```bash
RAG_SOURCE_ROOTS="..." RAG_EVAL_DATASET="..." RAG_EVAL_BASELINE="..." EVAL_EXTRA_FLAGS="..." \
bash hitgate/check.sh <label>
```
If exit non-zero AND no baseline file exists at the configured path → jump to No Baseline branch.
## Step 3 — Read the verdict
```bash
cat hitgate/<label>.verdict.json
```
## Step 4 — Interpret and report
**PASS** (`verdict: "pass"`):
Gate passed. State Hit@5 base→current and MRR base→current. Note improvements if `improvements` list is non-empty.
**IMPROVEMENT** (`verdict: "improvement"`, `refreeze_recommended: true`):
Gate passed and Hit@5 improved. Baseline is now stale in the positive direction. Recommend:
```bash
cp hitgate/<label>.json hitgate/baseline.example.json
```
**REGRESSION** (`verdict: "regression"`):
State each regression: scope + metric + delta in pp. Then run verbose mode automatically:
```bash
python -m hitgate.run --verbose --label <label>
```
Surface up to 3 MISS rows for the affected intent class.
**No baseline found** (baseline path does not exist):
Provide exact creation commands:
```bash
python -m hitgate.run --label baseline-v1
cp hitgate/baseline-v1.json hitgate/baseline.example.json
```
Then instruct caller to re-run the gate.
## Step 5 — Surface failing cases on regression
Read `hitgate/<label>.json` → `per_case`. Filter to entries where `hit_rank` is null and `intent` matches the regressed class. Show up to 3:
```
MISS intent:indexing "how does the chunker handle AST symbols" → expected: chunkers.py
```
Fast jq extraction for MISS rows:
```bash
jq '[.per_case[] | select(.hit_rank == null) | {intent, query, expected_file}]' \
hitgate/<label>.json | head -30
```
**If regression spans ≥3 distinct intent classes simultaneously**: do NOT interpret — surface all class names and halt. Multi-class regression requires human triage to avoid fixing the wrong signal.
## Step 5b — No baseline: clarify before creating
When gate exits non-zero AND no verdict file exists (no baseline configured), explain the gate cannot compare without a baseline AND provide exact creation commands:
```bash
python -m hitgate.run --label baseline-v1
cp hitgate/baseline-v1.json hitgate/baseline.example.json
```
Then: "Re-run the gate with the same label to get a regression/improvement verdict."
Do NOT report no-baseline as REGRESSION — absence of comparison is not a quality drop.
</Skill_Operating_Procedure>
<Success_Criteria> - Gate command ran and exited (0 or non-zero — both are valid results, not errors) - Verdict JSON read and interpreted correctly - PASS: metric deltas reported (Hit@5 and MRR base→current) - REGRESSION: failing cases surfaced with intent + query + expected file - IMPROVEMENT: refreeze command provided without waiting to be asked - No baseline: creation commands provided verbatim </Success_Criteria>
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.
- 1mo ago First seen · 125 lines · 68 tokens per session scan A 6a835d847288
rag-evaluator is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed 4d ago), licensed MIT. It adds 68 tokens to every session and 1,441 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-31.
Other agents, from other repositories
ai-engineer
Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.
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.
FAI AI Search Portal Tuner
AI Search Portal tuner — hybrid weight optimization, scoring profile calibration, reranker config, suggester tuning, and answer generation quality.
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.
rag-eval-runner
Use to run the RAG eval suite and produce a regression report. Best invoked after pipeline changes or before a release. Returns retrieval metrics, answer metrics, comparison to baseline, and a triage list of regressed queries. Runs in a separate context to keep the main session clean.
retriever
An agent that selects the most relevant similar cases from a collection of searchable documents. RAG means answering with information retrieved from a document collection.