Unch is a powerful command-line tool designed for developers to perform semantic code search within their repositories. It indexes functions, methods, types, classes, interfaces, and their attached documentation using Tree-sitter, making it easy to find code based on what it does, rather than just its name or location. Leveraging local llama.cpp embeddings (GGUF) with sqlite-vec for efficient storage and retrieval, Unch keeps your workflow simple and entirely on your machine by default, with optional support for OpenRouter embeddings and remote index publishing via GitHub Actions for shared indexes. It integrates seamlessly with Codex via its MCP server for enhanced AI-assisted development.
主要功能
01Integrates as an MCP server for Codex, enabling AI assistants to search and manage code indexes.
0210 GitHub stars
03Optional remote index publishing and synchronization through GitHub Actions CI workflows.
04Provides `auto`, `semantic`, and `lexical` search modes for flexible querying.
05Indexes code symbols and attached documentation for Go, Rust, TypeScript, JavaScript, and Python via Tree-sitter.
06Supports local-first semantic search using GGUF embeddings (llama.cpp) or remote OpenRouter embedding providers.
使用案例
01Integrate semantic code search capabilities into AI developer tools like Codex for smarter code interaction.
02Discover code symbols or functions by describing their purpose when the exact name or file path is unknown.
03Maintain shared, up-to-date code indexes across a development team using CI/CD pipelines.