Skip to content

Semantic natural-language code search via mgrep, complementing grep and ripgrep in larger, unfamiliar codebases.

CCM score
58 of 100
skills.sh installs
638
GitHub stars
305
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers indexing with bunx @mixedbread/mgrep watch and natural-language searches that can be scoped to a given path
  • Includes search options -m, -c, -a, -s, and --no-rerank, plus matching environment variables such as MGREP_MAX_COUNT
  • Enforces running the watcher before searching so results reflect the current state of the index, and respects .gitignore and .mgrepignore
  • Designed for codebases with more than 30 non-gitignored files or nested directories, where exact-pattern tools fall short

Install

$ npx -y skills add intellectronica/agent-skills --skill mgrep-code-search -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

mgrep Code Search

Overview

mgrep is a semantic search tool that enables natural language queries across code, text, PDFs, and images. It is particularly effective for exploring larger or complex codebases where traditional pattern matching falls short.

When to Use This Skill

Use mgrep when:

  • The codebase contains more than 30 non-gitignored files
  • There are nested directory structures
  • Searching for concepts, features, or intent rather than exact strings
  • Exploring an unfamiliar codebase
  • Need to understand "where" or "how" something is implemented

Use traditional grep/ripgrep when:

  • Searching for exact patterns or symbols
  • Regex-based refactoring
  • Tracing specific function or variable names

Quick Start

Indexing

Before searching, start the watcher to index the repository:

bunx @mixedbread/mgrep watch

The watch command indexes the repository and maintains synchronisation with file changes. It respects .gitignore and .mgrepignore patterns.

Searching

bunx @mixedbread/mgrep "your natural language query" [path]

Search Commands

Basic Search

Details

Repository
github.com/intellectronica/agent-skills
Categories
CLI & Terminal, Memory & Context
First seen
Jun 3, 2026

More from intellectronica/agent-skills

All 22

Similar to Mgrep Code Search

More CLI & Terminal