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.
npx agentmods add commands/codingthefuturewithai/rag-retriever/rag-search-knowledgegit clone --depth 1 https://github.com/codingthefuturewithai/rag-retrieverWrote 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/commands/codingthefuturewithai/rag-retriever/rag-search-knowledge)<a href="https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/rag-search-knowledge"><img src="https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/rag-search-knowledge.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00536 |
| Opus 5 | $0.00000 | $0.00268 |
| Sonnet 5 | $0.00000 | $0.00107 |
| Haiku 4.5 | $0.00000 | $0.00054 |
Grade A, and why
rag-search-knowledge 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 4d 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 — 58 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Search RAG Retriever Knowledge Base
Search across vector store collections for specific information and insights.
Prerequisites
This command requires the RAG Retriever MCP server to be configured in your Claude Code setup. The server provides semantic search capabilities across your indexed content collections.
Arguments
Use $ARGUMENTS to specify search parameters:
- Query string (required)
- Collection name (optional - if not specified, searches ONLY the "default" collection)
- "all" - special keyword to search across ALL collections
- Number of results (optional - defaults to 8)
- Score threshold (optional - defaults to 0.3)
Examples:
- "Claude Code documentation" - searches default collection only
- "Claude Code documentation claude_code_docs" - searches specific collection
- "Claude Code documentation all" - searches ALL collections
- "error handling python 10 0.4" - searches default with custom limit/threshold
- "error handling all 10 0.4" - searches all collections with custom parameters
Implementation Approach
This command uses direct implementation for focused knowledge retrieval.
Your Task
-
Parse Arguments
- Extract query from $ARGUMENTS
- Identify optional collection name (or "all" for cross-collection search)
- Parse optional limit and score threshold parameters
- Use sensible defaults if not specified
-
Collection Selection
- If no collection specified: search ONLY the "default" collection
- If "all" specified: set
search_all_collections=Trueto search across all collections - If specific collection specified: search that collection only
- Use
list_collectionsto show available collections if user needs guidance
-
Perform Search
- Use
vector_searchwith appropriate parameters:search_all_collections=Trueif user specified "all"collection_name=nameif user specified a specific collection- Default to "default" collection if no collection specified
- Display results with relevance scores and source information
- Use
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.
- 4d ago First seen · 58 lines · 0 tokens per session scan A 99b8ae77b484
rag-search-knowledge is a command published in the GitHub repository codingthefuturewithai/rag-retriever (27 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 536 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.
Other commands, from other repositories
agent-brain-index
Index documents for semantic search.
agent
Add an AI agent / RAG backend (@convex-dev/agent) to the Convex app.
rag-publish-todo-list
Command "rag-publish-todo-list" from lucky-aeon/AgentX, covering rag 发布功能 todo list, 阶段一:数据库设计和基础架构 🗄️ ✅ 已完成, 1. 数据库表创建, 2. 领域层实现 and 3. 基础领域服务.
data
Create example data in a specific domain and upload to a Weaviate collection.
ingest
Manually add knowledge to the Weaviate store.
index
Index this repository for local RAG search, then report which rung it is on — descriptions still to write, a promotion to apply, or nothing left.