# mixedbread-ai/mgrep

A calm, CLI-native way to semantically grep everything, like code, images, pdfs and more.

Repository: https://github.com/mixedbread-ai/mgrep
Canonical: https://ross.abutalabs.com/products/mgrep
Homepage: https://demo.mgrep.mixedbread.com
Language: TypeScript
License: Apache-2.0
License Family: permissive
Last push: 2026-04-25T17:26:31+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 79, release rhythm 81, longevity 21
- inputs: {"age_days": 301, "days_push": 130, "days_rel": 130, "gap_med": 0.5, "n_releases_24m": 31}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4387, forks 175 (observed 2026-08-28T04:08:47.174824+00:00)

## What it is
mgrep is a CLI tool by Mixedbread that provides semantic, natural-language search over local files including code, text, PDFs, and images. It uses background indexing via 'mgrep watch' to keep a Mixedbread store up to date, supports web search, and integrates with coding agents to reduce token usage.

## Use cases
- semantically search a codebase with natural language queries
- find where authentication is set up in a repo without knowing keywords
- search PDFs and images alongside code from the terminal
- index a git repository in the background for instant semantic lookup
- give coding agents a semantic search tool to reduce token usage
- search the web together with local files

## When to choose
- you want grep-like speed but with natural-language, semantic queries
- you work across mixed file types like code, PDFs, and images
- you want to equip AI coding agents with efficient repo search
- you prefer a CLI-native workflow with background indexing

## When to avoid
- you need fully offline search without a Mixedbread account or API key
- you only need exact string/regex matching, which plain grep handles well
- you cannot send your code or documents to a cloud service

## Facets
- artifact type: cli-tool
- maturity: active
- function: search-engine, cli, rag, nlp
- domain: developer-tools
- platform: cli, cross-platform, windows
- tags: semantic-search, grep, embeddings, multimodal, code-search, agent-tools, pdf-search, image-search, command-line, search, natural-language-processing, nodejs, macos, linux

## Member repositories
- mixedbread-ai/mgrep (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:47.174824+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:21:14.432546+00:00, confidence not recorded.
  - readme: https://github.com/mixedbread-ai/mgrep (fetched 2026-08-28T04:08:47.174824+00:00, sha 6cd5c17e4ab8)
  - homepage: https://demo.mgrep.mixedbread.com (fetched 2026-08-29T09:09:32.430198+00:00, sha b50acc695894)
- Data as of 2026-08-30T08:39:29.467469+00:00.
