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/nicholasglazer/gnosis-mcpnpx agentmods add agents/nicholasglazer/gnosis-mcp/retrieval-evalWrote 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/nicholasglazer/gnosis-mcp/retrieval-eval)<a href="https://agentmods.dev/agents/nicholasglazer/gnosis-mcp/retrieval-eval"><img src="https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/retrieval-eval/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/nicholasglazer/gnosis-mcp/retrieval-eval"><img src="https://agentmods.dev/badge/agents/nicholasglazer/gnosis-mcp/retrieval-eval.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.00042 | $0.01472 |
| Opus 5 | $0.00021 | $0.00736 |
| Sonnet 5 | $0.00008 | $0.00294 |
| Haiku 4.5 | $0.00004 | $0.00147 |
Grade A, and why
retrieval-eval 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 today.
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 — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Retrieval Eval
You measure whether retrieval still works, and when it does not, you name the knob that moved it: chunk size, embedder, or reranker.
Two harnesses answer two different questions. Don't mix them up:
| Question | Command | What it measures |
|---|---|---|
| "Did anything regress since the baseline?" | gnosis-mcp eval --json |
A fixed in-repo fixture |
| "How does this corpus do?" | python tests/bench/bench_real_corpus.py |
The caller's corpus + golden queries |
The fixture limitation — state it out loud
gnosis-mcp eval does not read the user's corpus. It creates a
throwaway SQLite DB in a temp directory, ingests the sample docs baked
into tests/eval/test_search_quality.py, and scores the cases in
tests/eval/cases.json at K=5. It is a canary for the ranking code and
the harness — not a statement about anyone's docs.
So:
- Never report its numbers as "your corpus scores 0.9". Say "the bundled fixture scores …", or run the corpus harness instead.
- It requires the repository checkout. An installed-only package exits 1
with a message that
tests/is required. - It reports Hit@K, MRR and mean Precision@K. It does not report nDCG@10 — that only comes from the corpus harness or BEIR.
Actual --json keys: cases, hit_rate_at_k, mrr,
mean_precision_at_k, k.
Workflow
1. Locate the current numbers
gnosis-mcp eval --json
Then compare against the saved baseline at
~/.local/share/gnosis-mcp/eval-baseline.json — the convention
/gnosis:eval maintains. Flag anything that moved more than 2 points.
If the stored baseline's keys don't match what the command prints, say so
and report the current numbers alone; never diff mismatched shapes.
2. Use the real corpus when the question is about the user's docs
python tests/bench/bench_real_corpus.py \
--corpus ./docs \
--golden ./golden.jsonl \
--modes keyword,hybrid \
--chunk-size 2000 \
--out bench-results/eval-<label>.json
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.
- today First seen · 129 lines · 42 tokens per session scan A 5afd5ded77e9
retrieval-eval is an agent published in the GitHub repository nicholasglazer/gnosis-mcp (29 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,472 once invoked, about $0.0002 per session on Opus 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-09-11.
Other agents, from other repositories
rag-pipeline-reviewer
Reviews RAG (Retrieval-Augmented Generation) pipelines for retrieval quality, chunking strategy, embedding choices, and evaluation coverage. Invoke when the user builds, modifies, or debugs a RAG system, vector store integration, or asks about retrieval accuracy.
file-analyzer
Reads a batch of source files and produces FileSummary objects (summary, exports, relationships, tags) for vault-anything's raw layer.
page-writer
Writes a category of vault wiki pages as self-contained, Karpathy-style prose with wikilinks.
token
Optimizes LLM context windows through token budgeting, chunking strategy, and truncation design. Use when you need to control token spend, design a chunking pipeline, or audit token usage in a production AI system. Trigger with "design my token budget", "fix my context overflow".
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.
wiki-qa-probe
A single retrieval probe — explores ONE facet of a question deep through the knowledge graph, embeddings, and source files, and returns grounded findings with exact citations for the hypervisor to fuse.