EveryDev.ai
Subscribe
Home
Tools

5,007+ AI tools

  • New
  • Trending
  • Featured
  • Rate tools
  • Compare
  • Arena
Categories
  • Agents2546
  • Coding1875
  • Infrastructure880
  • Projects712
  • Research627
  • MCP598
  • Marketing495
  • Analytics485
  • Design416
  • Testing402
  • Data373
  • Security317
  • Integration257
  • Communication250
  • Prompts241
  • Extensions218
  • Commerce169
  • DevOps168
  • Voice168
  • Web123
  • Learning114
  • Finance33
AI Tools by Topic
  • AI Coding Assistants
  • Agent Frameworks
  • MCP Servers
  • AI Prompt Tools
  • Vibe Coding Tools
  • AI Design Tools
  • AI Database Tools
  • AI Website Builders
  • AI Testing Tools
  • LLM Evaluations
Follow Us
  • X / Twitter
  • LinkedIn
  • Reddit
  • Discord
  • Threads
  • Bluesky
  • Mastodon
  • YouTube
  • GitHub
  • Instagram
Get Started
  • Users
  • Rate Tools
  • About
  • Editorial Standards
  • Corrections & Disclosures
  • Community Guidelines
  • Advertise
  • Contact Us
  • Newsletter
  • Submit a Tool
  • Start a Discussion
  • Write A Blog
  • Share A Build
  • Terms of Service
  • Privacy Policy
Explore with AI
  • ChatGPT
  • Gemini
  • Claude
  • Grok
  • Perplexity
Agent Experience
  • llms.txt
Theme
With AI, Everyone is a Dev. EveryDev.ai ©
    1. Home
    2. Tools
    3. sgrep
    sgrep icon

    sgrep

    Code Intelligence
    Featured

    A local command-line tool that searches code and documents in plain English using static embeddings and BM25, and can rank ripgrep results.

    Visit Website

    At a Glance

    Pricing
    Open Source

    sgrep is a local CLI for searching code and documents in plain English, released under the MIT license. No account, hosted index, or model server is needed.

    Engagement

    Available On

    macOS
    Linux
    API
    CLI

    Resources

    WebsiteDocsGitHubllms.txt

    Topics

    Code IntelligenceCommand Line AssistantsLocal Inference

    Alternatives

    gutcheckwhichllmVomit
    Developer
    Context.devSan Francisco, CAEst. 2025$9M raised

    Listed Oct 2026

    About sgrep

    sgrep is an open-source command-line search tool from Context.dev that finds local code and document passages by words and meaning. It runs on the user's machine without an account, hosted index, or model server. The latest listed release is v0.3.0, titled "code and document search".

    What It Is

    sgrep is a local semantic search CLI aimed at cases where an agent or developer knows what code should do but not what to search for. You run a natural-language query against a directory, and it returns the file, line range, and source passage for each match. Results are source passages, not generated answers. Options include -n for result count and --json for JSON output.

    Search Workflow and Ripgrep Piping

    In the standard mode, sgrep uses ripgrep to list files, splits them into passages with Chonkie and Tree-sitter, and combines the top 200 lexical matches with the top 200 semantic matches. Scores blend 75% semantic and 25% BM25, and exact case-sensitive identifier matches rank first. Code parsers cover Python, C/C++, Go, Java, Rust, JavaScript/JSX, and TypeScript/TSX; other files use text splitting.

    sgrep can also rank only the output of a focused rg --json command by reading it with --stdin. Saved ripgrep results can be added with --rg-json. Piped ranking does not use the index.

    Models and Local Operation

    sgrep uses static embeddings from Minish Lab: Potion Code 16M v2 for code and Potion Base 8M for prose. Each passage is represented as a 256-number vector with no transformer pass at search time. Auto mode picks the text model only when all candidates have prose extensions such as .md or .txt; --model code or --model text overrides this. The first search downloads a model (32-34 MB) and any needed parsers, after which searches can run offline. PDFs and images are not parsed.

    Caching and Setup

    Installation requires Rust 1.90 or later and ripgrep, via cargo install from the repository, or a macOS Apple Silicon binary from the releases page. A local index stores copies of source passages, capped at 256 MiB and 128 entries by default. Flags such as --refresh-cache, --no-cache, --cache-dir, and --fresh-assets control caching and downloads.

    Benchmarks Published by the Project

    The README reports that piped sgrep used 21.3% less LLM API spend than ripgrep on a SWE-bench Verified subset, with 70/100 versus 68/100 solved attempts. It also states that CK's semantic mode beats sgrep on its CoSQA test, while sgrep leads on complete-function retrieval in RepoQA. These are the project's own measurements, and they cover code retrieval, not document search.

    sgrep - 1

    Community Discussions

    Be the first to start a conversation about sgrep

    Share your experience with sgrep, ask questions, or help others learn from your insights.

    Pricing

    OPEN SOURCE

    Open Source (MIT)

    sgrep is a local CLI for searching code and documents in plain English, released under the MIT license. No account, hosted index, or model server is needed.

    • MIT License
    • Runs locally; source and queries stay on your machine
    • No account, hosted index, or model server needed
    • Requires Rust 1.90 or later and ripgrep
    • Downloads a 32–34 MB model on first search; later searches can run offline

    Capabilities

    Key Features

    • Plain-English semantic search over local code and documents
    • Hybrid ranking combining static-embedding semantic scores with BM25
    • Exact case-sensitive identifier matches ranked first
    • Rank ripgrep results via --stdin or --rg-json
    • Syntax-aware chunking for Python, C/C++, Go, Java, Rust, JavaScript/JSX, TypeScript/TSX
    • Automatic or explicit code/text model selection
    • JSON output with optional score explanations
    • Local index cache with configurable limits and offline operation

    Integrations

    ripgrep
    Tree-sitter
    Chonkie
    Model2Vec
    Hugging Face Hub
    API Available
    View Docs

    Ratings & Reviews

    No ratings yet

    Be the first to rate sgrep and help others make informed decisions.

    Rate other tools you’ve used

    Developer

    Context.dev

    Context.dev builds a unified web data API that gives developers and AI agents real-time access to structured web content, brand assets, and company enrichment data. The platform delivers logos, colors, fonts, styleguides, and scraped Markdown from any domain through a single integration. Context.dev serves over 5,000 businesses and is built in New York City.

    Founded 2025
    San Francisco, CA
    $9M raised
    6 employees

    Used by

    Mintlify
    Super.com
    Zero
    Similarweb
    +10 more
    Read more about Context.dev
    WebsiteLinkedInX / Twitter
    2 tools in directory

    Similar Tools

    gutcheck icon

    gutcheck

    A local CLI tool that applies plain-English semantic questions to lines, logs, diffs, and JSON records — like grep, but for meaning — running entirely on your CPU with no API key required.

    whichllm icon

    whichllm

    A CLI tool that auto-detects your GPU/CPU/RAM and ranks the best local LLMs from HuggingFace that actually fit and perform on your hardware.

    Vomit icon

    Vomit

    A local CLI tool that translates Claude's verbose token output into readable English by piping it through a local LLM, with no telemetry or external dependencies.

    Browse all tools

    Related Topics

    Code Intelligence

    AI tools that analyze, generate, and transform code through natural language understanding and programming language comprehension.

    131 tools

    Command Line Assistants

    AI-powered command-line assistants that help developers navigate, search, and execute terminal commands with intelligent suggestions and context awareness.

    314 tools

    Local Inference

    Tools and platforms for running AI inference locally without cloud dependence.

    285 tools
    Browse all topics
    Back to all toolsSuggest an edit
    ratings
    discussions