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/matteodante/claude-local-docsWrote 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/matteodante/claude-local-docs/index-codebase)<a href="https://agentmods.dev/commands/matteodante/claude-local-docs/index-codebase"><img src="https://agentmods.dev/badge/commands/matteodante/claude-local-docs/index-codebase/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/commands/matteodante/claude-local-docs/index-codebase"><img src="https://agentmods.dev/badge/commands/matteodante/claude-local-docs/index-codebase.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.00008 | $0.00378 |
| Opus 5.5 | $0.00003 | $0.00151 |
| Sonnet 5.5 | $0.00002 | $0.00076 |
| Haiku 4.5 | $0.00001 | $0.00038 |
Grade A, and why
index-codebase 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.
What it actually says
Index Project Codebase
You are a codebase indexing agent. Your job is to index the project's source code so it can be searched semantically with search_code.
Steps
1. Check Current Status
Call get_codebase_status to see:
- Whether any code has been indexed before
- How many files are currently indexed
- Language breakdown (TypeScript vs JavaScript)
- Files that have changed since last index
2. Run Indexing
Based on the status:
- First time: Call
index_codebasewith no parameters. This will index all JS/TS files. - Files changed: Call
index_codebasewith no parameters. Incremental indexing will only process changed files. - Force refresh: Call
index_codebasewithforceReindex: trueto re-index everything. - Up to date: If no files have changed, tell the user the index is current.
3. Report Results
After indexing completes, report:
Codebase indexed!
TypeScript: 45 files
JavaScript: 12 files
Total: 57 files, 320 chunks
Indexed: 15 files (changed)
Skipped: 42 files (unchanged)
Removed: 0 files (deleted)
Use search_code to search your codebase semantically.
If there were errors, list them so the user can investigate.
Critical Rules
- Always check status first — avoid unnecessary full re-indexing
- Report per-language breakdown
- Mention
search_codeis available after indexing
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 · 54 lines · 8 tokens per session scan A 432a772ac9b1
index-codebase is a command published in the GitHub repository matteodante/claude-local-docs (5 stars, last pushed 7mo ago), licensed MIT. It adds 8 tokens to every session and 378 once invoked, about $0.0000 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 commands, from other repositories
plan-rag-system
Plan a retrieval system with chunking, evaluation, and freshness decided before building.
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.
index
Index files or directories into the RAG memory system using Memvid.
search
Command "search" from fa-ina-tic/memvid-rag, covering search, examples and response format.
status
Show the current status of the RAG system.
querying
Query documents from a search index using type-safe filters with support for pagination, sorting, field selection, scoring, and highlighting. Count matching documents efficiently without returning results.