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/jsungmin/vs-token-safer/updategit clone --depth 1 https://github.com/JSungMin/vs-token-saferWrote 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/jsungmin/vs-token-safer/update)<a href="https://agentmods.dev/commands/jsungmin/vs-token-safer/update"><img src="https://agentmods.dev/badge/commands/jsungmin/vs-token-safer/update.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.00081 | $0.00652 |
| Opus 5 | $0.00041 | $0.00326 |
| Sonnet 5 | $0.00016 | $0.00130 |
| Haiku 4.5 | $0.00008 | $0.00065 |
Grade A, and why
update 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.
What it actually says
Update the vs-token-safer index
The committable tree-sitter index (.vts-index/symbols.jsonl) powers the SYNTACTIC tier — instant symbol
search with no language server, shareable with the team by committing it. It is built once; after the code
moves a lot it goes STALE and its file:line answers drift from where symbols actually are. This command
brings it current in ONE incremental re-index: only stat/hash-changed files are re-parsed, the rest are reused
verbatim, so even a long-stale index refreshes fast.
Do this:
-
Check staleness first — call the
vts_adminMCP tool with a status probe (no rebuild):vts_admin { "op": "index", "params": { "status": true } }It reports the index's build date, file/symbol counts, and whether it is stale (how many files changed since it was built). If it reports fresh (0 changed), tell the user the index is already current and STOP — a rebuild would do nothing.
-
Rebuild incrementally — if it is stale (or no index exists yet), call:
vts_admin { "op": "index" }This re-parses ONLY the changed files, reuses the rest, and writes the updated
.vts-index/symbols.jsonl. Report there-parsed N, reused Mcounts back to the user so they see exactly what was refreshed. -
Remind to commit it —
.vts-index/is committable and team-shared. Tell the user togit add .vts-index && git commitso teammates get the fresh index too (that is the whole point of the committable tier — one person re-indexes, everyone benefits).
Notes:
- This refreshes ONLY the tree-sitter (syntactic) tier — the tier that goes stale because it is a stored
snapshot. The clangd/LSP semantic index re-indexes itself on file changes (file-watch + background), so
it does not need this. If you also want to warm the semantic tier (e.g. a fresh clone), run
vts preindexseparately — that is a different concern from index staleness. detect_changesand the dashboard symbol graph run live (git + LSP + tree-sitter), so they are never stale and need no refresh — this command is specifically for the committed.vts-indexsymbol search.
$ARGUMENTS
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 · 43 lines · 81 tokens per session scan A 88cb5706ea64
update is a command published in the GitHub repository JSungMin/vs-token-safer (11 stars, last pushed 6d ago), licensed MIT. It adds 81 tokens to every session and 652 once invoked, about $0.0004 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-30.
Other commands, from other repositories
rb-ask
Ask a question about the current project's codebase via the repobrain knowledge hub. / 通过 repobrain 知识库询问当前项目代码。.
rb-refresh
Rebuild the repobrain project knowledge base after significant changes. / 在重要改动后重建 repobrain 项目知识库。.
performance-review
You goal is to measure and improve performance.
rp-build-cli
Build with rp-cli context builder → chat → implement.
call-graph
Trace callers, callees, or paths using the call graph.
index
Index the codebase for semantic search.