Codesage
Enhances code intelligence and repository-level context retrieval by pairing deterministic AST call graphs with dense vector search for superior recall.
CodeSageZ is an open-source, production-grade code intelligence and repository-level RAG engine designed to overcome the limitations of traditional vector-only RAG. It constructs in-memory structural dependency graphs using multi-language Tree-sitter AST parsing, then performs topological graph expansion on initial vector search results. This innovative approach drastically improves recall of crucial structural dependencies, such as direct callees, enabling more accurate and contextually rich code comprehension for developers and AI agents alike.
主な機能
01Topological Context Recovery via AST Call Graph Expansion
02Multi-Language AST Parsing (Python, TypeScript, JavaScript, Go, Java, Rust)
03Native Model Context Protocol (MCP) Server Integration
040 GitHub stars
05Dual-Tier Embedding Engine (Dense Learned & Lexical Hash Fallback)
06Domain-Adapted QLoRA Model for Code-Specific Fine-Tuning
ユースケース
01Improving direct-callee recall and code comprehension for developers
02Building robust repository-level RAG engines for complex codebases
03Providing augmented code context to AI coding agents like Claude Code and Cursor