Skip to content
Search

Mgrep

lastmod 2026-01-13created 2026-01-131 edits

A semantic grep-style CLI search tool for exploring code and documents in natural language

About

  • Brings natural-language semantic search into the terminal to make up for the limits of traditional grep; useful for exploring large codebases
  • After indexing a local repository, supports searching code, documents, PDFs, and images with intent-driven questions like “Where is auth configured?”
  • mgrep watch continuously watches a git repository and indexes in the background
    • Recognizes .gitignore and automatically excludes unneeded files
  • Uses meaning-based search + reranking rather than exact string matching, putting the most relevant results first
  • Can run web search alongside local file search with the --web option
    • The --answer option generates a response summarizing the search results
  • Designed with integration with coding agents such as Claude Code in mind
    • Cuts agent token usage by reducing unnecessary repeated grep calls
  • Keeps grep-like CLI flags to preserve existing users' muscle memory as much as possible
  • Uses a cloud store based on Mixedbread Search so search results can be shared across teams and agents
  • Still leaves regular expressions, symbol tracing, etc. to grep/ripgrep, positioning itself as a complementary tool specialized for exploration, onboarding, and understanding context

See also

Favorite site

author Zer0 sitemap