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/skymanbp/rag-your-code/indexgit clone --depth 1 https://github.com/skymanbp/rag-your-codeWhat 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.00031 | $0.00470 |
| Opus 5 | $0.00015 | $0.00235 |
| Sonnet 5 | $0.00006 | $0.00094 |
| Haiku 4.5 | $0.00003 | $0.00047 |
Grade A, and why
index 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 yesterday.
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
/rag-your-code:index
Build or refresh the local retrieval index, and say what the repository still needs before search is actually good.
What to do
-
Make sure the package is importable. A plugin install copies these commands but not the Python package, so check once per machine. Use
python -m pipso it lands in the interpreter the later commands run under.python -c "import ragyourcode" || python -m pip install --user rag-your-code -
Run bootstrap against
$ARGUMENTSif the user named a path, otherwise.:python -m ragyourcode.cli bootstrap .Use
--fullonly after a parser or schema upgrade, or suspected corruption — the default incremental path reuses unchanged files.--compactis a flag onindex, not onbootstrap; a repository already built withindex --compactstays compact when bootstrap refreshes it. -
Report back three things, briefly:
- how many declarations were indexed, and whether the run was incremental;
- the rung bootstrap named, in plain language;
- any warnings or files it could not parse.
Why the rung matters
Indexing is not the same as being searchable. A fresh index retrieves against a
sentence the parser generated from identifiers the author already chose, so it
adds no word the source did not have — a question phrased in domain terms
reaches nothing. Say so explicitly if descriptions are pending, and offer
/rag-your-code:describe, because this is where most of the available
retrieval quality still sits and the user has no other way to learn it.
If the repository is indexing files it should not — a vendored tree, generated output — that is configuration, not something to work around:
python -m ragyourcode.cli config set index.ignore '["vendor", "generated"]'
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.
- yesterday First seen · 53 lines · 31 tokens per session scan A 1ee54c51c626
index is a command published in the GitHub repository skymanbp/rag-your-code (1 stars, last pushed 5d ago), licensed MIT. It adds 31 tokens to every session and 470 once invoked, about $0.0002 per session on Opus 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
fieldtheory
Explain and drive the Field Theory CLI — bookmark-sourced seeds, repo-aware possibility runs that score ideas onto a 2x2 grid, and the interconnected .md files they leave behind. Trigger when the user asks about ft, bookmarks, seeds, ft possible (or the older name ft ideas), grids, dots/nodes, or how to turn saved…
rp-build-cli
Build with rp-cli context builder → chat → implement.
index
Index the codebase for semantic search.
add-agent
引导新增一个 Agent 适配器。用法 /add-agent.
index
Visual overview of Beacon index — chunks, coverage, provider. Pass --files to list indexed files.
codesage-bench
Run CodeSage retrieval benchmarks on all corpora, save timestamped scorecards, print a summary.