@DataChaz: How do you index the entire Linux kernel (28M lines of code) for an AI agent in 3 minutes? You stop letting the agent r…
Summary
A new open-source tool called codebase-memory-mcp indexes entire codebases like the Linux kernel in minutes using AST knowledge graphs, achieving massive efficiency gains for AI agents with 99% token reduction and 83% answer quality.
View Cached Full Text
Cached at: 06/15/26, 11:10 PM
How do you index the entire Linux kernel (28M lines of code) for an AI agent in 3 minutes?
You stop letting the agent read files one by one.
There is a fascinating new open-source release called codebase-memory-mcp.
It’s a code intelligence engine that swaps traditional file-searching for high-speed AST knowledge graphs.
What makes this project stand out is the research behind it.
Evaluated across 31 real-world repositories (detailed in arXiv:2603.27277), the architectural shift yields massive efficiency gains: → 99% reduction in tokens for structural queries → 83% answer quality across complex tasks → 2.1x fewer tool calls required
It maps functions, classes, HTTP routes, and cross-service links into a graph. When the agent needs context, it queries the graph directly.
Security is prioritized too: everything happens 100% locally on your machine via a single static binary.
It runs entirely locally.
No Docker, no Ollama, no API keys.
You download the binary, restart your agent, and it just works.
Are we one good index away from cutting AI dev costs to zero?
Paper and Repo links in the thread ↓
REPO:
PAPER: https://arxiv.org/abs/2603.27277
Similar Articles
@AriXZone: The Linux kernel, a very large project with 28 million lines of code and 75,000 files, takes only about 3 minutes to index, with sub-millisecond query responses. codebase-memory-mcp is an open-source MCP server from DeusData that provides AI coding assistants (Claude Cod…
DeusData has open-sourced an MCP server called codebase-memory-mcp, which pre-parses code repositories into persistent knowledge graphs, providing AI coding assistants with sub-millisecond code structure query capabilities. It supports 158 languages, reduces token consumption by approximately 99% compared to traditional grep, and has extremely fast indexing speed.
DeusData/codebase-memory-mcp
Codebase-memory-mcp is an ultra-fast code intelligence engine for AI coding agents that indexes entire repositories in milliseconds and answers structural queries in under 1ms using tree-sitter AST analysis and a persistent knowledge graph, with support for 158 languages and 14 MCP tools.
@HowToAI_: You can now cut Claude Code's tool calls by 94% with just one command. This MCP server that indexes your codebase into …
A new MCP server reduces Claude Code's tool calls by 94% by indexing the codebase into a local knowledge graph, allowing agents to query the graph instead of scanning files.
@Suryanshti777: This is wild Somebody finally realized AI coding agents spend half their time searching your codebase instead of actual…
CodeGraph builds a local knowledge graph for AI coding agents to index codebase relationships, cutting token usage by ~59% and execution time by ~49% compared to traditional search methods.
@Voxyz_ai: stop telling Claude Code/Codex "read this file". stop telling Claude Code/Codex "now read that one too". stop telling C…
Promotes 'codebase-memory', a tool that indexes entire codebases (e.g., Linux kernel in 3 minutes) into a graph for AI agents, reducing token usage and tool calls while improving answer quality.