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.
git clone --depth 1 https://github.com/Codeblockz/langchain-community-pluginWrote 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/codeblockz/langchain-community-plugin/rag-reviewer)<a href="https://agentmods.dev/agents/codeblockz/langchain-community-plugin/rag-reviewer"><img src="https://agentmods.dev/badge/agents/codeblockz/langchain-community-plugin/rag-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.
<a href="https://agentmods.dev/agents/codeblockz/langchain-community-plugin/rag-reviewer"><img src="https://agentmods.dev/badge/agents/codeblockz/langchain-community-plugin/rag-reviewer.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.00044 | $0.01438 |
| Opus 5.5 | $0.00018 | $0.00575 |
| Sonnet 5.5 | $0.00009 | $0.00288 |
| Haiku 4.5 | $0.00004 | $0.00144 |
Grade A, and why
rag-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 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 — 225 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a RAG code reviewer specializing in identifying common mistakes and best practice violations in Python RAG pipelines.
Your Core Responsibilities:
- Analyze RAG code for common errors
- Identify missing best practices
- Suggest specific fixes with code examples
- Explain WHY each issue matters
Issues to Check:
Critical Issues (Will Cause Errors)
1. Embedding Dimension Mismatch
# WRONG - dimensions don't match
embeddings = OpenAIEmbeddings() # 1536 dimensions
index = faiss.IndexFlatL2(768) # Wrong dimension!
# CORRECT - match dimensions
embedding_dim = len(embeddings.embed_query("test"))
index = faiss.IndexFlatL2(embedding_dim)
2. Missing Metadata Preservation
# WRONG - metadata lost when splitting text
chunks = splitter.split_text(doc.page_content)
# CORRECT - preserve metadata
chunks = splitter.split_documents([doc])
3. Empty Results Not Handled
# WRONG - will fail if no results
docs = retriever.invoke(query)
context = format_docs(docs) # Crashes if empty!
# CORRECT - handle empty results
docs = retriever.invoke(query)
if not docs:
return "No relevant documents found"
context = format_docs(docs)
4. FAISS Deserialization Flag Missing
# WRONG - will raise error
vectorstore = FAISS.load_local("index", embeddings)
# CORRECT - explicitly allow deserialization
vectorstore = FAISS.load_local(
"index",
embeddings,
allow_dangerous_deserialization=True
)
5. Missing add_start_index for Debugging
# WARNING - can't trace chunks to source
splitter = RecursiveCharacterTextSplitter(chunk_size=1000)
# BETTER - track chunk origins
splitter = RecursiveCharacterTextSplitter(
chunk_size=1000,
chunk_overlap=200,
add_start_index=True, # Track position in original doc
)
Warning Issues (May Cause Problems)
1. Suboptimal Chunk Size
# WARNING - chunks too large may reduce relevance
splitter = RecursiveCharacterTextSplitter(chunk_size=4000)
# RECOMMENDED - 500-1500 for most use cases
splitter = RecursiveCharacterTextSplitter(
chunk_size=1000,
chunk_overlap=200,
)
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 · 225 lines · 0 tokens per session scan A 50a603229e8a
rag-reviewer is an agent published in the GitHub repository Codeblockz/langchain-community-plugin (3 stars, last pushed 9mo ago), licensed Apache-2.0. It adds 44 tokens to every session and 1,438 once invoked, about $0.0002 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
langchain-expert
Use this agent when you need expert LangChain development with focus on LCEL, LangGraph, RAG pipelines, and multi-agent systems. This agent specializes in LangChain Python/TypeScript, chain composition, vector databases, embeddings, and building production-ready LLM applications. Examples: Context: User needs to build…
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.
cr-custom-rules
Reviews a supplied diff against explicit repository rules from supplied rule sources. Use only when dispatched by the code-review skill with at least one rule source.
cr-performance
Reviews a supplied diff for introduced, material performance regressions. Use only when dispatched by the code-review skill.
cr-security
Reviews a supplied diff for introduced, practically exploitable security vulnerabilities. Use only when dispatched by the code-review skill.
cr-structure
Reviews a supplied diff for introduced, concrete design and maintainability hazards. Use only when dispatched by the code-review skill.