Show HN: Semantic grep for Claude Code (RUST) (local embeddings)

https://news.ycombinator.com/rss Hits: 9
Summary

ck - Semantic Grep by Embedding ck (seek) finds code by meaning, not just keywords. It's a drop-in replacement for grep that understands what you're looking for — search for "error handling" and find try/catch blocks, error returns, and exception handling code even when those exact words aren't present. Quick start cargo install ck-search # Find error handling patterns (finds try/catch, Result types, etc.) ck --sem " error handling " src/ # Traditional grep-compatible search still works ck -n " TODO " * .rs # Combine both: semantic relevance + keyword filtering ck --hybrid " connection timeout " src/ Why ck? For Developers: Stop hunting through thousands of regex false positives. Find the code you actually need by describing what it does. For AI Agents: Get structured, semantic search results in JSON format. Perfect for code analysis, documentation generation, and automated refactoring. For Teams: Works exactly like grep with the same flags and behavior, but adds semantic intelligence when you need it. Quick Start # Build from source cargo build --release # Index your project for semantic search ./target/debug/ck index src/ # Search by meaning ./target/debug/ck --sem " authentication logic " src/ ./target/debug/ck --sem " database connection pooling " src/ ./target/debug/ck --sem " retry mechanisms " src/ # Use all the grep features you know ./target/debug/ck -n -C 3 " error " src/ ./target/debug/ck -r " TODO|FIXME " . Core Features 🔍 Semantic Search Find code by concept, not keywords. Searches understand synonyms, related terms, and conceptual similarity. # These find related code even without exact keywords: ck --sem " retry logic " # finds backoff, circuit breakers ck --sem " user authentication " # finds login, auth, credentials ck --sem " data validation " # finds sanitization, type checking # Get complete functions/classes containing matches (NEW!) ck --sem --full-section " error handling " # returns entire functions ck --full-section " async def " src/ # work...

First seen: 2025-09-07 12:39

Last seen: 2025-09-07 20:41