ck is a local-first source code search utility developed in Rust for software developers and AI coding agents. It extends conventional grep functionality with semantic searching powered by locally generated vector embeddings. Hybrid search combines semantic similarity and keyword relevance through BM25 and Reciprocal Rank Fusion. Automatic incremental indexing processes modified code sections while reusing previously cached embeddings. Developers can retrieve complete functions and classes associated with search results. An interactive terminal interface provides syntax highlighting, relevance heatmaps, file previews, and editor integration. Configurable exclusion rules prevent unnecessary files and build artifacts from being indexed. An integrated MCP server makes search capabilities accessible to compatible AI development tools.
Features
- Local semantic source code searching based on conceptual similarity rather than exact keyword matches
- Hybrid search combining vector embeddings, BM25 keyword relevance, and Reciprocal Rank Fusion
- Traditional grep-compatible regular expression searching with familiar command-line arguments and output formats
- Automatic incremental indexing with chunk-level embedding caching and content-aware change detection
- Interactive terminal interface with syntax highlighting, relevance heatmaps, and external editor integration
- Integrated MCP server providing structured search capabilities and index management for AI coding agents