Muvon/octocode
FreeRust 编写的语义代码索引器,构建代码库 GraphRAG 知识图谱并通过 MCP 暴露给 AI 代理。支持 13+ 语言,提供 tree-sitter 解析、ast-grep 结构化搜索和代码签名视图。
About Muvon/octocode
Octocode is an open-source semantic code searcher and codebase utility written in Rust. It transforms source code into a navigable knowledge graph using GraphRAG (Graph-based Retrieval-Augmented Generation) and exposes it via the Model Context Protocol (MCP) to AI agents like Claude, Cursor, and Windsurf. By leveraging tree-sitter AST parsing, it extracts real symbols (functions, imports, dependencies) and builds a structured knowledge graph of file relationships. It supports 13+ programming languages, offers ast-grep structured search, and provides code signatures for understanding code without reading entire files. Octocode gives AI assistants persistent memory across sessions, enabling them to search, understand, and navigate codebases intelligently.
Key Features
Pros & Cons
- Gives AI deep structural understanding of code, not just flat text
- Works with popular AI tools like Claude, Cursor, and Windsurf via MCP
- Open source and self-hosted, no third-party API dependencies
- Fast and efficient due to Rust implementation
- Supports many languages through tree-sitter
- Persistent memory enables long-running AI assistance
- Requires setup and configuration as a local MCP server
- Command-line interface may be less accessible to non-developers
- Only supports languages with tree-sitter grammars (most common ones are covered)
- Documentation and community resources are still early-stage