Discover and explore top open-source AI tools and projects—updated daily.
aovestdipaperinoLocal semantic code intelligence for AI coding agents
Top 78.1% on SourcePulse
Summary
tokensave addresses the inefficiency and high token costs associated with AI coding agents exploring codebases. It provides a 100% local, semantic code intelligence server (MCP) that pre-indexes codebases into knowledge graphs. This allows AI agents to perform instant, structured queries for symbols, relationships, and code snippets, drastically reducing token consumption and tool calls compared to traditional file-scanning methods. It is designed for AI coding agents and their users, offering a more efficient and cost-effective way to understand and interact with code.
How It Works
Instead of agents performing expensive file operations like grep, glob, or read, tokensave offers a libSQL Graph Database backend. The tokensave MCP server exposes over 80 specialized tools that AI agents can query. These queries retrieve pre-computed, structured information directly from the semantic knowledge graph, providing instant, context-rich answers. This approach bypasses the need for agents to scan files, leading to significant reductions in token usage and processing time.
Quick Start & Requirements
brew install aovestdipaperino/tap/tokensave), Scoop (scoop install tokensave), Cargo (cargo install tokensave), or by downloading prebuilt binaries for macOS, Linux, and Windows.ast-grep CLI for advanced rewrite primitives.tokensave install [--agent <name>] and index projects with tokensave init. Git hooks can be automatically installed.tokensave.dev.Highlighted Details
Maintenance & Community
This project is a Rust port of the original CodeGraph (TypeScript) by @colbymchenry. Free code signing on Windows is provided by SignPath.io. No explicit community links (e.g., Discord, Slack) were found in the provided README.
Licensing & Compatibility
Limitations & Caveats
Project-local installation (--local) is not supported for all agent integrations. For exceptionally large projects, users may need to disable tokensave per-project via an environment variable (DISABLE_TOKENSAVE=true) to manage RAM usage. Some advanced edit primitives rely on the optional ast-grep CLI being available in the system's PATH.
2 days ago
Inactive