Trie Coding AgentAI coding agent for VS Code by Trie (trie.dev) — run open models locally or plug in any LLM API, with a real tool loop for reading, editing, and running commands in your workspace. Features
ModesTrie adapts to how you work:
InstallTrie Coding Agent requires VS Code 1.96.0 or later.
Ollama (easiest)
Then Settings → LLM API → Ollama preset, or set LM StudioLoad a model, start the local server (port 1234), then Settings → LM Studio preset. Embedded daemon (local
|
| Signal | What it does | Based on |
|---|---|---|
| MinionS decomposition | For large tasks, the frontier breaks the ask into atomic subtasks; the local model executes them one at a time | Minions (Stanford, ICML 2025) — 97.9% of frontier quality at 5.7× lower cloud cost |
| Token uncertainty | When the daemon reports low generation confidence (or the loop is flailing), one mid-turn frontier nudge fires | Cascade routing / AutoMix-style escalation |
| AutoMix self-grade | Before finishing, the local model scores its own work; low confidence triggers a frontier consult | AutoMix (NeurIPS 2024) |
| Evidence-grounded review | At turn end, Trie runs typecheck/tests locally, then sends the diff + pass/fail output to the frontier reviewer | Verifiable process rewards — cheap oracles before expensive judgment |
| Stuck hints | After repeated tool failures, a short frontier hint is injected as advisory text | FrugalGPT / RouteLLM cascades |
What you get (typical Code-mode turn with Hybrid on)
These are design targets grounded in the published cascade/collaboration literature and what the extension actually measures in Output → Trie Coding Agent:
- 5.7–30× fewer frontier tokens than running the whole turn in the cloud — local model owns every tool call; frontier is capped at ~6 short consults per turn
- ~85–98% cost reduction vs cloud-only agenting on multi-step tasks (same band as FrugalGPT / RouteLLM when the local model handles exploration)
- Higher finish quality on large asks — decomposition recovers most of the gap between naive local-only and frontier-only (Minions reports 87% → 98% recovery)
- Fewer bad completes — self-grade + verification output catches “looks done but tests fail” before you accept the turn
- Earlier recovery when stuck — uncertainty + failure triggers consult earlier than waiting for 4 consecutive tool errors
Per-turn telemetry is logged after each run, e.g. hybrid: 2 frontier call(s), decomposed=true, uncertainty=1, selfGrade=0.42, evidenceFiles=3.
Enable in Settings → Hybrid mode (OpenAI, Anthropic, or Moonshot AI / Kimi), or run Trie Coding Agent: Configure Hybrid Mode from the Command Palette.
Web search
Gives the agent a web_search tool for current docs, APIs, and error messages. Configure in Settings → Web search (Exa, Tavily, or Ceramic).
Safety
- File operations stay inside the workspace root
run_commandalways asks for explicit approval- Nothing leaves your machine unless you use a cloud API, hybrid mode, or web search
Part of the Trie ecosystem.
License
Apache-2.0