status

A command that checks whether a repository's local code-search index is current and how much of it has written descriptions. It also runs a live search to verify that retrieval works.

In plain words
What is it for?
Use it to inspect index freshness, description coverage, superseded entries, the active embedding model, configuration, and sample search results.
Why use it?
It separates an existing index from a trustworthy one by checking stale content, outdated descriptions, settings, and actual search results.

Command

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/skymanbp/rag-your-code/status
Clone the repo
git clone --depth 1 https://github.com/skymanbp/rag-your-code
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 548 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.00031 $0.00548
Opus 5 $0.00015 $0.00274
Sonnet 5 $0.00006 $0.00110
Haiku 4.5 $0.00003 $0.00055

Measured yesterday against content hash 6b343d718c5b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

status 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.

commands/status.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/rag-your-code:status

Report whether search here can be trusted right now, and what would improve it.

What to do

python -m ragyourcode.cli describe status
python -m ragyourcode.cli config list

Then a live query, to prove retrieval actually answers rather than only that the files exist:

python -m ragyourcode.cli search "<something this repository certainly does>" --json --limit 3

What to report

Four things, in this order, and briefly:

  1. Is the index current? Read it from a field rather than from a warning: stale_index in describe status, stale in search --json. config list never opens the index and reports nothing about it. Three different things make it stale and only one is a file edit: the repository content moved, the rules that decide what a unit is changed, or the written descriptions changed. Any of them means /rag-your-code:index.

  2. Description coverage — described, superseded and missing. Superseded is the interesting one: something was written about that declaration and the code has since changed, so it is deliberately not applied. Those are re-describe work, not lost work.

  3. Which embedder is in force. embedding.provider is one of signed-feature-hash (the default — offline, no dependency, matching is lexical), sentence-transformers (a model on this machine) or openai-compatible (a service). Say which, because it changes what retrieval can reach. Do not switch it for the user: one adds a dependency and downloads weights, the other can send their source to a third party, and both are theirs to decide.

  4. The next useful move. Usually one of: refresh the index, run /rag-your-code:describe, or narrow index.ignore if a vendored or generated tree is being indexed.

Do not tune the evidence bars

If searches come back empty, that is search.min_coverage and search.min_concentration doing their job — refusing to hand back a plausible wrong declaration. Lowering them restores guessing. Report low description coverage instead; that is the real cause and the real fix.

Read the full file on GitHub · 57 lines

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. yesterday First seen · 57 lines · 31 tokens per session scan A 6b343d718c5b

Subscribe to this mod's changes

status 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 548 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.