Code Context

•
1
•

Enables semantic code search across codebases using AST parsing, vector embeddings, and reranking to provide precise context for large language models.

Code Context is a powerful semantic code search server designed to provide highly relevant context to large language models. Unlike traditional text-based search, it understands the 'meaning' of code by parsing it into semantic chunks like functions, classes, and methods using tree-sitter AST. These chunks are then embedded with Voyage AI and stored in PostgreSQL with pgvector for efficient retrieval. By combining vector similarity search with a powerful reranking model, Code Context delivers accurate results based on natural language queries, significantly improving LLM performance by supplying the right code context.

주요 기능

01AST-based semantic chunking of code (functions, classes, methods)
02Incremental indexing and real-time updates via 'watch' daemon
03Pgvector and pgvectorscale for high-performance vector storage and retrieval
040 GitHub stars
05Full MCP protocol compatibility for integration with Claude Code and other clients
06Voyage AI embeddings for robust semantic search and asymmetric retrieval
07Advanced reranking with `rerank-2.5` for precise result filtering

사용 사례

01Integrating advanced code search capabilities into AI-powered development environments.
02Enhancing LLM code comprehension by providing precise, semantically relevant code snippets.
03Developers finding specific code logic or patterns using natural language queries.