vts_admin
Configure settings, monitor token savings, discover bypassed searches, prebuild indexes, and run read-only VCS commands for the vs-token-safer server.
Instructions
vs-token-safer admin/meta operations (rarely needed reflexively) — set op and put that op's args in params:
• setup {projectPath,backend,maxResults,genCompileDb,clangdCmd} — configure (writes config; /reload-plugins after)
• config {} — show effective settings · savings {graph,daily,history} — tokens saved (local) · savings_reset {} — clear it
• discover {since,all,learn,projectPath} — find code searches that BYPASSED vts (missed savings)
• warmup {projectPath,backend} — pre-build the index so later searches are fast
• preindex {projectPath,backend} — build the index ahead of time (clangd: a static --index-file via clangd-indexer if present, honoring scope)
• scope {projectPath} — show the indexing scope + TU stats + top-level dirs to pick from (set via setup --scope)
• index {projectPath,status} — build the committable .vts-index/symbols.jsonl (tree-sitter; instant cold-start tier, no toolchain); status shows the current one
• gen_compile_db {projectPath,apply,inTree,engineRoot,target,…} — generate the UE clangd compile DB
• git {argv|args,projectPath} · p4 {argv|args,projectPath} — run a READ-ONLY VCS command, output compacted (mutating REFUSED)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | Which admin operation (see the description). | |
| params | No | Arguments for the op, e.g. {"argv":["status"]} for git, {"since":30} for discover, {"projectPath":"…"} for setup. |