Show HN: Sgrep; fast, accurate code search for agents
Category: devtools
Tags: code-search, semantic-search, ripgrep, embeddings, cli
Score: 7.0/10 (Innovation: 7, Technical: 7, Documentation: 8, Utility: 6)
sgrep is a local semantic code search tool that uses static embeddings to find code by intent rather than exact names. It combines BM25 lexical search with semantic scoring and can integrate with ripgrep for hybrid search. The project is notable for its benchmark showing reduced LLM API costs for code retrieval tasks, making it useful for AI agents.
Target audience: developers, ai-agents
Repository: https://github.com/context-dot-dev/sgrep · Python · MIT · 326 stars
View on Hacker News