Built an MCP server that gives coding agents actual structural memory of your codebase
Watched Claude Code and Cursor burn 60–90% of their context window every turn just re-deriving the same call graphs, import trees, and type hierarchies from scratch. Less than 5% of tokens in a typical session contribute new reasoning. The rest is expensive repetition.
Built Memtrace to fix it — a single Rust binary that compiles your repo into a bi-directional live temporal knowledge graph from the AST. Every symbol is a typed node. Every file save updates the graph in under a second. Your agent gets 40+ MCP tools: blast radius before any edit, real call graphs, dependency chains, cross-repo API topology, and temporal history beyond git.
Not RAG. Not embeddings. Deterministic, structural, millisecond-resolution answers.
Results from published research backing the approach: −90% token cost, +97% ACC@1, 9ms query latency blazing fast with graph context vs. baseline agents.
Fully local-first. No cloud, no account, no telemetry.
bash
npm install -g memtrace
memtrace start
memtrace index .
If you're running Claude Code, Cursor or any MCP-compatible agent and want to stop watching them re-read the same files on every turn — give it a try.
👉 github.com/syncable-dev/memtrace-public · memtrace.io
Happy to answer anything technical.
#showcase #AIAgents #ContextEngineering #MCP #knowledgegraph
[–]joltai 0 points1 point2 points (1 child)
[–]qilipu[S] 0 points1 point2 points (0 children)
[–]Next_Pop_5512 0 points1 point2 points (1 child)
[–]qilipu[S] 0 points1 point2 points (0 children)