Ad

ck: Semantic Code Search Tool

ck finds code by meaning using semantic search and grep-like functionality. It understands code context, provides AI agent integration, and offers a TUI for interactive code discovery.
Screenshot of BeaconBay/ck homepage

ck is a Rust tool designed for semantic code search, going beyond simple keyword matching to understand the meaning behind queries. It leverages embeddings to find relevant code based on concept, not just exact terms. ck also functions as a drop-in replacement for grep, supporting familiar syntax and behavior. It employs chunk-level indexing and intelligent caching for efficient operation.

ck distinguishes itself through its combination of semantic and keyword search, offering greater accuracy and flexibility than traditional grep. The integrated TUI provides a user-friendly interface, and the AI agent integration enables seamless incorporation into workflows with tools like Claude. Automatic delta indexing ensures efficient updates and a low cache miss rate.

  • Semantic Search: Understands code meaning and finds relevant code even without exact keywords. Supports synonyms and related terms.
  • Grep Compatibility: Provides a drop-in replacement for grep with familiar syntax, flags, and output formats.
  • TUI: Offers an interactive terminal interface for easy code discovery with customizable preview modes and search history.
  • AI Agent Integration: Seamlessly integrates with AI agents like Claude for powerful code search workflows.
  • Automatic Indexing: Employs chunk-level indexing and caching for fast and efficient search operations with minimal resource usage.
  • Flexible Filtering: Supports robust file filtering with .gitignore and .ckignore mechanisms for excluding unnecessary files and directories.
  • Hybrid Search: Combines semantic search with keyword matching using Reciprocal Rank Fusion for precise results.

ck is an actively developed project with a growing community and consistent updates. The project features comprehensive documentation, a well-defined API, and a robust CI/CD pipeline. Recent commits indicate ongoing development and bug fixes. The project shows active issue tracking and a commitment to maintaining code quality.

ck benefits developers by enabling faster and more accurate code discovery, reducing time spent searching for relevant code. It's valuable for finding code patterns and understanding complex systems. Its integration with AI agents enhances developer workflows, and its user-friendly interface makes it accessible to users of all skill levels. ck offers a smart and efficient alternative to manual code exploration and complex search setups.

Summarize:
Share:
Stars
1,664
Forks
70
Issues
31
Created
10 months ago
Commit
22 days ago
License
APACHE-2.0
Archived
No
Updated 17 days ago

Similar Repositories