vts-local-orchestrator
English | 한국어
Claude burns expensive tokens reading and grepping your code. This hands that grunt work to a free local
model instead — Claude gets back only the one-line answer.

A companion to vs-token-safer. It runs entirely on your
machine — nothing is uploaded.
The idea in one line
Finding code — "where are these 20 functions", "who calls X", "what does this file do" — is high-volume,
low-thinking work. A free local model can do it. So let it: Claude asks, the local model searches and
reads, and Claude receives just the short answer. The bulky raw output never reaches Claude's context.
Rule of thumb: "find / count / read" → local model. "decide / design / fix" → Claude.
You don't run any commands. You just ask Claude the way you always do — with the plugin installed, Claude
quietly hands the search to the local model and shows you the answer:
You ▸ where is loadConfig defined, and everything that calls it?
Claude ▸ (hands the search to the local model on your GPU — its raw output never reaches me)
config-loader.mjs:40 ← defined here
agent-core.mjs:14,16 ← calls it
vts-bridge.mjs:29,31 ← calls it
The local model did the searching. I only spent ~20 tokens reading the answer back.
Same for reading: "what does tsbridge.py do — any handlers that spit out a lot?" → Claude has the local
model read the file and reports back a few lines, instead of pulling the whole file into the conversation.
Claude decides when to delegate; you never type a command. Prefer driving it yourself? There's a qvts
CLI underneath — see Quickstart.
Why you'd want this
- Cheaper. The local model is free and runs on your GPU. Claude only pays for the final summary.
- Private. The model and the search tools both run on
127.0.0.1. Your code never leaves the machine.
- Works with any model. Default is
gemma4:e4b (picked by benchmark, not by name) — swap it in one line.
Quickstart
You need Ollama, Node 18+, and a copy of
vs-token-safer beside this repo.
git clone <this-repo-url> vts-local-orchestrator && cd vts-local-orchestrator
npm install
bash setup-macos.sh # macOS/Linux — picks a model for your RAM, builds it, writes the config
# Windows: setup.ps1 (see DEPLOY.md)
Then install it as a Claude Code plugin (or paste claude-routing.md into your
CLAUDE.md). That's it — now ask Claude normally and it delegates searches and big reads on its own.
Want to watch it happen live? node dashboard.mjs → http://127.0.0.1:7878.
Driving it yourself (the qvts CLI under the hood)
You normally never touch this — Claude calls it for you — but it's a plain CLI if you want it:
qvts -p /path/to/repo "find all callers of createSession" # ask in plain language
qvts digest ./big-file.md --focus "what does this do?" # have it read a file for you
qvts --savings # how many tokens you've saved
What it can do
Just ask Claude in plain language — these all get delegated to the local model:
Finding code — you get back file:line:
- "where is
loadConfig declared?" · "who calls createSession?" · "find every file named *.test.ts"
- "where are all of these defined: X, Y, Z?" — many at once, in one pass.
Reading code — you get a short brief, not a wall of source:
- "what does
tsbridge.py do?" · "summarize the auth folder"
- "what changed in my diff, and which files should I review?"
Seeing it work:
- "open the dashboard" — a live local page showing what the model is doing, grouped by project and task
type, plus how many tokens you've saved.
Repeat questions are instant and free (cached), and every delegation is added to a running savings tally.
Which model
Any Ollama model with tool-calling works. The default gemma4:e4b wasn't picked by reputation — on a
16 GB machine it was simply the most accurate at finding code, in one try, and the fastest of the accurate
ones.