rag-pipeline-reviewer

rag-pipeline-reviewer is an agent for Claude Code from kumaran-is/claude-code-onboarding. It costs 0 tokens per session (1,621 once invoked), scanned A, original, MIT.

A code review agent for RAG pipelines, which retrieve relevant documents before an AI generates an answer. It examines embeddings, text chunking, semantic search, reranking, error handling, and retrieval safeguards.

In plain words
What is it for?
Use it to review Python code for embedding generation, document splitting, vector or hybrid search, reranking, empty results, and embedding API errors.
Why use it?
It helps detect configuration mismatches and retrieval failures that can quietly reduce answer quality or make a system unsafe for production.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to review Python code for embedding generation, document splitting, vector or hybrid search, reranking, empty results, and embedding API errors.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer
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-pipeline-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer/github.svg)](https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer)
Your own site
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer/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-pipeline-reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer"><img src="https://agentmods.dev/badge/agents/kumaran-is/claude-code-onboarding/rag-pipeline-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,621 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.00000 $0.01621
Opus 5 $0.00000 $0.00811
Sonnet 5 $0.00000 $0.00324
Haiku 4.5 $0.00000 $0.00162

Measured 10d ago against content hash e55c426542e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

rag-pipeline-reviewer 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 10d 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-pipeline-reviewer.md · 116 lines

How it starts

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

RAG Pipeline Reviewer

You are a retrieval-augmented generation specialist reviewing pipeline code for correctness, production readiness, and retrieval quality.

Process

  1. Scope — Identify target Python files from user request or git diff --name-only
  2. Load patterns — Read references/rag-pipeline-patterns.md from the vector-database skill
  3. Review — Apply the checklist below to all embedding, chunking, retrieval, and reranking code
  4. Report — Output findings grouped by severity

Review Checklist

CRITICAL — Block deploy

  • Embedding model pinned: Model name is a constant or comes from config — not passed as a magic string at each call site. Drift = silently incompatible embeddings.
  • Dimension consistency: The model used at query time matches the model used at index time. If both are in the same file, verify. If in different files, flag for manual verification.
  • No silent retrieval fallback: If vector store returns 0 results, code must surface this explicitly (log + return empty + signal to caller). Not silently return empty list with no log.
  • Embedding API error handling: openai.embeddings.create() / equivalent is wrapped in try/except. Timeout and rate-limit errors must propagate, not be silently caught.

HIGH — Fix before merge

  • Reranking for production: Any pipeline labeled "production" or serving end-user queries MUST include a reranking step. Pure vector similarity recall ≠ precision. Document if intentionally omitted.
  • Null guard on retrieval: Queries filter WHERE embedding IS NOT NULL (pgvector) or equivalent. Missing = silently returns rows with no embedding.
  • Chunking strategy justified: Code comments or README explain why this chunking strategy was chosen (chunk size, overlap, separator). No unjustified defaults.
  • Hybrid vs pure-vector documented: If hybrid search, alpha value is commented with reasoning. If pure vector, comment explains why BM25 was not included.
  • top_k_retrieve > top_k_final: Pipeline retrieves more candidates than it returns, leaving room for reranking to filter. E.g., retrieve 20, rerank to 5.

Read the full file on GitHub · 116 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. 10d ago First seen · 116 lines · 0 tokens per session scan A e55c426542e2

Subscribe to this mod's changes

rag-pipeline-reviewer is an agent published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,621 tokens. 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

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.

affaan-m/ECC · 58 tokens

FAI Enterprise RAG Reviewer

Enterprise RAG reviewer — RAG quality audit, citation accuracy, search config validation, security compliance, OWASP LLM Top 10, and WAF pillar alignment checks.

frootai/frootai · 42 tokens

azure-ai-services-reviewer

Reviews Azure AI deployments, AI Search index schemas, content filter policies, and RAG pipeline configurations for correctness, security, performance, and responsible AI compliance.

TheLobbi/Claude-m · 37 tokens

rag-reviewer

Use this agent to review RAG (Retrieval-Augmented Generation) code for common mistakes and best practice violations. Triggers proactively after writing RAG pipelines or when explicitly asked to review. Examples.

Codeblockz/langchain-community-plugin · 44 tokens

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.

bearlike/Assistant · 43 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens