OptiVault

•
7
•

Optimizes large language model context by creating an AST-driven compressed representation of a codebase, significantly reducing token consumption and processing time.

OptiVault addresses the "token bloat" problem prevalent when large language models like Claude Code interact with extensive codebases. It bypasses LLM summarization and external APIs by directly parsing a repository's Abstract Syntax Tree (AST) to extract critical structural information, such as function signatures, class methods, and dependencies. This data is then compiled into a highly compressed "shadow vault" that is exposed via the MCP protocol. This unique approach allows AI assistants to navigate a codebase hierarchically, drastically reducing token usage per file and enabling faster, more cost-effective code generation and modification.

主要功能

01Self-enforcing protocol via auto-generated `CLAUDE.md` to guide AI usage.
02Zero-dependency AST parsing for codebase structure extraction.
03Obsidian-compatible vault for native codebase visualization and dependency graphing.
044-tool MCP semantic router for hierarchical code traversal (repo map, file skeleton, function code, file sync).
05Blazing fast indexing and incremental synchronization.
063 GitHub stars

使用案例

01Keeping AI context current with real-time file synchronization after code modifications.
02Visualizing codebase structure and dependencies through an Obsidian-compatible vault.
03Efficiently managing and reducing token costs for AI-assisted code generation with Claude Code.