rag-list-collections

rag-list-collections is a command for Claude Code from codingthefuturewithai/rag-retriever. It costs 0 tokens per session (259 once invoked), scanned A, original, MIT.

A command for listing and examining collections in RAG Retriever's vector store, which is a database used to find documents by meaning. It shows collection contents and metadata such as document counts and descriptions.

In plain words
What is it for?
Use it to list collections, inspect their size and scope, identify suitable collections for searches, and find collections that may need more content.
Why use it?
It helps you understand what searchable document sets exist, how large they are, and which ones are empty, outdated, or useful for a particular query.

Command for Claude Code

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.

agentmods
npx agentmods add commands/codingthefuturewithai/rag-retriever/rag-list-collections
Clone the repo
git clone --depth 1 https://github.com/codingthefuturewithai/rag-retriever

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-list-collections

README.md
[![agentmods](https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/rag-list-collections.svg)](https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/rag-list-collections)
Your own site
<a href="https://agentmods.dev/commands/codingthefuturewithai/rag-retriever/rag-list-collections"><img src="https://agentmods.dev/badge/commands/codingthefuturewithai/rag-retriever/rag-list-collections.svg" alt="Measured on agentmods" 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 259 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00259
Opus 5 $0.00000 $0.00130
Sonnet 5 $0.00000 $0.00052
Haiku 4.5 $0.00000 $0.00026

Measured 5d ago against content hash 613f24ed316a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rag-list-collections 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 5d 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/commands/rag-list-collections.md · 34 lines

What it actually says

List RAG Retriever Collections

Discover all available vector store collections and their contents.

Prerequisites

This command requires the RAG Retriever MCP server to be configured in your Claude Code setup. The server manages vector store collections for semantic search.

Implementation Approach

This command uses direct implementation as it involves straightforward MCP operations and data analysis.

Your Task

  1. Collection Discovery

    • Use list_collections to retrieve all available collections
    • Display collection names with document counts
    • Show metadata like creation dates and descriptions
  2. Collection Analysis

    • Analyze the size and scope of each collection
    • Identify the most useful collections for different use cases
    • Note any empty or underutilized collections
  3. Usage Recommendations

    • Suggest which collections to use for different types of queries
    • Recommend collection names for specific search scenarios
    • Identify collections that might need updating or expansion

Success Criteria

  • Complete list of all collections displayed
  • Document counts and metadata shown for each collection
  • Clear recommendations for collection usage

Available MCP Tools

  • list_collections() - List all available collections with metadata
  • vector_search(query, collection_name) - Search specific collections if needed for analysis
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. 5d ago First seen · 34 lines · 0 tokens per session scan A 613f24ed316a

Subscribe to this mod's changes

rag-list-collections 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 259 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.