pip install trevecInstall in 10 seconds. Runs 100% locally.
Python and npm packages for building AI apps with persistent memory. Chatbots, tutors, advisors, support agents — any app that needs to remember.
pip install trevecornpm install trevecCLI and MCP server for your daily coding. Gives Claude Code, Cursor, Windsurf, and Codex deep structural understanding of your codebase.
curl -fsSL dl.trevec.dev/install.sh | shWorks with your favorite AI coding tools
Compatible with every MCP-capable agent and IDE
The Problem
Today’s AI agents lose context between sessions, rely on expensive cloud APIs for memory, and can’t isolate user data. Trevec fixes that.
Agents forget everything between sessions
Memory solutions require cloud APIs and charge per operation
User data scattered across third-party services
No isolation between users in multi-tenant apps
Persistent memory that survives restarts — zero setup
Zero cost, zero latency — runs locally next to your app
Your data never leaves your server
Built-in multi-user isolation from day one
Universal
Use Trevec as an SDK in your AI apps, as an MCP server for your IDE, or both. Same engine, same memory.
My order is missing items again!
I'm sorry about that. Can you provide your order number? I'll look into what happened and process a refund for the missing items.
My order is missing items again!
I see this happened before with order #9012 on Mar 10 — the driver only picked up 2 of 3 bags from Siam Kitchen. I've refunded the missing items, added a $10 credit, and flagged this restaurant for packaging issues. Your peanut allergy note is on file for future orders.
How Code Context Works
For coding agents — Trevec understands your codebase structurally, then delivers context via MCP to any IDE.
A ground-truth map of your system
Trevec parses your entire codebase into a live structural map. Functions, classes, and modules become nodes. Imports, calls, and inheritances become edges. The result is a semantic graph of your application.
Ranked by structure and meaning, not just keywords
When agents query your code, Trevec answers with structurally relevant context, combining lexical and semantic signals. Everything happens locally with zero data egress.
Structurally relevant context delivered via MCP
Trevec returns a compact, structured context bundle that includes the right dependencies and relationship boundaries for the task at hand. Ready for any MCP-capable tool.
See the Structure
Trevec builds a live map of every function, class, and connection in your codebase. Your AI gets a structural view, not random text chunks.
Universal Integration
Trevec acts as the shared context layer across all your AI-powered development tools. Every agent reads from and writes to the same graph.
Build AI apps with persistent memory. Chatbots, tutors, advisors, support agents — any app that needs to remember.
Give your IDE deep codebase context. Works with any MCP-capable tool — zero configuration.
Feed long-running agents perfect context. CI pipelines, code review bots, and custom agents.
The Difference
RAG tools treat your code like a document. Trevec treats it like what it is - a graph of interconnected logic.
Flat text chunks
Treats code like a PDF. Splits into overlapping windows with no understanding of syntax.
Keyword matching only
Can't follow imports or call chains. Misses the code that actually matters.
Minutes to re-index
Every edit triggers a full re-embed. Your agent works with stale context.
Siloed files
Each file exists in isolation. No understanding of how modules depend on each other.
Requires cloud APIs
Your proprietary code gets shipped to external embedding services to work.
AST-aware parsing
Understands functions, classes, and module boundaries natively. Not guessing. Parsing.
Graph-powered retrieval
Traverses imports, calls, and inheritance edges to surface the right context every time.
Millisecond indexing
Only processes changed files. Always current, always fast. No full re-embeds.
Full codebase graph
Every relationship mapped across files. Cross-module context built in from day one.
Zero data egress
Everything runs on your machine. Your code never touches an external server.
75% token savings
Structurally relevant context, not full-file dumps. Saves $5-26/day in API costs.
Hybrid search - full-text + semantic - all on your machine.
Comparison
Cloud memory solutions add latency, cost, and cloud dependency to every operation. Trevec runs locally — like SQLite for agent memory.
Real-World Benchmark
We asked “How does the planner agent work?” in a 50K LoC codebase. Trevec returned the answer in one call. Traditional tools needed six.
fewer tokens per query
faster context retrieval
saved on Opus API costs
Benchmark: Claude Sonnet 4.6 in Cursor, querying a 50K LoC production codebase. “How does the planner agent work?”
Infrastructure
Trevec isn’t a feature. It’s infrastructure. The foundational memory layer that makes every AI coding tool smarter.
Built from the ground up for autonomous coding agents, not retrofitted from search tools.
Real-time retrieval that doesn't bottleneck agent execution loops.
Open protocol (MCP), local-first engine, deploy anywhere.
17 languages parsed with tree-sitter. One unified graph for polyglot repos.
Built for Trust
Choose your deployment model. Cloud for teams, local for solo developers, or self-host for full control. Your data never touches infrastructure you don’t own.
Team-wide shared graph with encrypted sync. Enterprise-grade security with SOC 2 Type II in progress. Zero-knowledge architecture. We never see your code.
Your source code is parsed and indexed locally. Only the graph structure syncs. Never raw files.
Runs entirely on your machine. Zero network calls. No telemetry. Air-gap compatible.
Every operation happens on your hardware. No cloud dependency. No data leaves your machine. Full control, always.
100% local engine. Cloud platform encrypted end-to-end. Your data never leaves your machine.
For Teams
Everything in the local engine, plus shared memory and context across your entire team.
Your whole team's codebase in one semantic graph. Every agent gets the same structural understanding.
Debugging sessions, architecture decisions, and reviews persist across the entire team. Not just one engineer's machine.
End-to-end encrypted. Zero-knowledge architecture. Your code never touches our servers in plaintext.
SSO, audit logs, role-based access. Enterprise-ready from day one.
Trevec Cloud
Shared memory, team-wide context graphs, and encrypted sync for engineering teams. Join the waitlist.
No spam. Unsubscribe anytime.
Can’t find what you’re looking for? Reach out to us
Download Trevec and give your AI agents the full picture. Teams can join the Trevec Cloud waitlist for shared memory across your org.
100% local. Zero data egress. Cloud platform coming soon.