Trussfy — Smart Context for AI Coding
Stop paying for tokens your AI doesn't need. Trussfy is a VS Code extension with a bundled MCP server. It indexes your entire workspace locally, scores every chunk by relevance to your query, and feeds only the top-ranked context to the AI chat you already run inside VS Code — Claude Code, GitHub Copilot Chat, Cline, Continue.
- Per-question codebase exploration: ~96% fewer tokens
- API users: −50% to −85% on the session bill (7-layer guard) · −90% with Smart Living Context (alpha)
- Claude Pro / Max subscribers: 5-10× more queries per 5-hour limit window — same flat fee, far more work before "limit reached, try again in 4h"

What you get
1. Smart Copy (works everywhere)
Cmd/Ctrl+Shift+C packs the best-matching code into your clipboard. Paste into ChatGPT, Claude, Gemini — anywhere. No MCP needed.
Click Connect VS Code chats in the sidebar and Trussfy wires itself into:
- Claude Code (CLI)
- GitHub Copilot Chat (1.95+)
- Cline
- Continue
Your AI then calls the select_context, smart_grep, list_symbols, get_file, reindex tools automatically. Zero copy-paste.
3. The 7-layer guard (Claude Code)
Most MCP servers stop being used after 3-4 messages — modern LLMs forget instructions and drift back to manual Read/Grep/Glob. Trussfy stacks 7 defenses:
| # |
Layer |
Effect |
| 1 |
Strong tool description |
~80% usage |
| 2 |
Auto-instructions in CLAUDE.md / .cursorrules / .clinerules / .github/copilot-instructions.md |
~90% usage |
| 3 |
Sticky reminder in every tool response |
~95% usage |
| 4 |
UserPromptSubmit hook (Claude Code) |
~99% usage |
| 5 |
PreToolUse gate — blocks Read/Grep/Glob until Trussfy is called |
100% guaranteed |
| 6 |
Big-Read intercept — denies whole-file Read on >30 KB source files |
−70% on Edit-heavy sessions |
| 7 |
Auto-/compact nudge when input tokens cross 30 K |
−80% on long sessions |
Layer 5 is the only enforcement layer in the industry — the AI literally cannot read source code without going through Trussfy first.
4. Smart Living Context — opt-in alpha (v0.11.0+)
The 7-layer guard above optimises codebase exploration. SLC optimises the rest of the session — the edit-loop, the multi-file refactor, the long debug grind. When enabled (trussfy.smartLivingContext = true), Trussfy:
- Caches every Read at
~/.trussfy/cache/ with metadata (hash, mtime, edit history)
- Denies redundant re-Reads of files that haven't changed on disk → conversation history stays tiny
- Hard-checks every Edit against the file's current hash → blocks stale-content edits (pure safety win)
- Auto-invalidates after Bash commands and external file changes (
fs.watch)
- Exposes
mcp__trussfy__get_cached(hash, lines?) for the AI to re-fetch by reference
Expected impact: −85-95% session cost on edit-heavy workflows, where the 7-layer guard alone saves ~10%. Default OFF — flip the setting in settings.json to start. See /docs#slc for details.
5. One-click Disconnect
Each project has its own ON / OFF state. The red Turn off Trussfy for this workspace button removes every Trussfy config from the current workspace (.mcp.json, .vscode/mcp.json, the Claude Code hook, the Trussfy block in your AI-instruction files). .bak backups are saved next to every modified file. User-added entries are preserved.
Installation
- Open VS Code → Extensions (
Cmd/Ctrl+Shift+X)
- Search for Trussfy
- Click Install
- Click the Trussfy icon in the activity bar
- Sign in with Google (one click)
- Click Connect VS Code chats in the MCP card
That's it. First workspace index runs in under 200 ms.
| Tool |
Purpose |
select_context |
TF-IDF–ranked chunks within a token budget. The flagship tool — ~96% fewer tokens than Read/Grep. |
smart_grep |
Pattern-matching + TF-IDF ranking. Replaces the typical "grep, read 10 candidates, grep again" loop. |
list_symbols |
Fast fuzzy lookup of functions/classes/methods with file paths and line numbers. |
get_file |
Read a specific file by path (used by AI when it wants the full content of a chunk). |
reindex |
Force re-index after a major branch switch. |
Multi-window / multi-project
| Scenario |
Status |
| 2 VS Code windows, 2 projects, different models per window |
✓ Each project has its own MCP server + per-project active-model hint (sharded since v0.9.1) |
| Auth shared, billing per-user across projects |
✓ Sign in once |
| Per-project Disconnect |
✓ |
cd to a different folder in the same Claude Code terminal |
⚠ Restart the session — the MCP server is long-lived. Trussfy detects the cwd mismatch and silences the ghost reminder. |
| VS Code multi-root workspaces |
⚠ First root only. Open one window per root if you need them all indexed. |
The single rule: 1 Claude Code session = 1 project.
Privacy
- Your source code never leaves your machine through this extension. Indexing is 100% local.
- The index lives in
.trussfy/ inside your workspace (SQLite).
- Sign-in only sends usage metadata (token counts, timestamps, model name, query prefix capped at 80 chars) — for billing and quota enforcement.
- No telemetry on file names or code content.
Full policy: trussfy.com/privacy
Pricing
| Plan |
Price |
Monthly tokens |
Features |
| Free |
$0 forever |
200 K |
Local indexing, Smart Copy, MCP server, 7-layer guard, all AI models |
| Pro |
$20/month |
5 M |
Everything in Free + cloud analytics dashboard + Git Diff context mode + email support |
No credit card for Free. Cancel Pro anytime.
Details: trussfy.com
Supported languages
| Language |
AST-aware indexing |
| TypeScript / JavaScript / JSX / TSX |
✓ |
| Python |
✓ |
| Go, Rust, Ruby, Java, C/C++, PHP, Swift, Kotlin, … |
Generic chunker (works well) |
Commands & shortcuts
| Action |
macOS |
Windows / Linux |
| Smart Copy |
⌘⇧C |
Ctrl+Shift+C |
| Smart Copy (Git diff) |
⌘⇧G |
Ctrl+Shift+G |
| Connect VS Code chats |
sidebar → Connect, or Command Palette → Trussfy: Connect VS Code AI chats |
|
| Disconnect |
sidebar → red Turn-off button, or Command Palette → Trussfy: Disconnect MCP from this workspace |
|
| Re-index |
Command Palette → Trussfy: Re-index Workspace |
|
| Show MCP config |
Command Palette → Trussfy: Show MCP Config (manual paste) |
|
Support
License
Proprietary software. See LICENSE for full terms.
© 2026 Trussfy — All rights reserved.