Smgrep banner
can1357 can1357

Smgrep

Development community

Description

Semantic code search tool with GPU acceleration

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

smgrep

smgrep

Semantic code search, GPU-accelerated.

Crates.io Downloads License

Natural-language search that works like `grep`. Fast, local, GPU-accelerated, and built for coding agents.

  • Semantic: Finds concepts ("where do transactions get created?"), not just strings.
  • GPU-Accelerated: CUDA on NVIDIA GPUs, Metal on Apple Silicon.
  • Local & Private: 100% local embeddings. No API keys required.
  • Auto-Isolated: Each repository gets its own index automatically.
  • On-Demand Grammars: Tree-sitter WASM grammars download automatically as needed.
  • Agent-Ready: Native MCP server and Claude Code integration.

Quick Start

  1. **Install**

    cargo install smgrep

    Or build from source:

    git clone https://github.com/can1357/smgrep
    cd smgrep
    cargo build --release

    For CPU-only builds (no CUDA):

    cargo build --release --no-default-features
  2. **Setup (Recommended)**

    smgrep setup

    Downloads embedding models (~500MB) and tree-sitter grammars upfront. If you skip this, models download automatically on first use.

  3. **Search**

    cd my-repo
    smgrep "where do we handle authentication?"

    **Your first search will automatically index the repository.** Each repository is automatically isolated with its own index. Switching between repos "just works".

Coding Agent Integration

Claude Code

  1. Run `smgr