@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
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.
@GitHub_Daily: When using AI-assisted programming, asking a simple question requires flipping through files one by one, which wastes tokens and easily leads to wrong context. codebase-memory-mcp parses the entire codebase into a knowledge graph, allowing AI to directly 'understand' the project structure. A single executable written in pure C, zero dependencies, …
codebase-memory-mcp is a tool written in pure C that parses the entire codebase into a knowledge graph, supports 158 programming languages, is compatible with 11 AI coding agent tools, greatly improving AI's understanding of project structure and reducing token consumption.