intellectronica/agent-skills/mgrep-code-search
Claude Code and agent skill by intellectronica/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Semantic code search using mgrep for efficient codebase exploration. This skill should be used when searching or exploring codebases with more than 30 non-gitignored files and/or nested directory structures. It provides natural language semantic search that complements traditional grep/ripgrep for finding features, understanding intent, and exploring unfamiliar code.
Install
npx vskill@latest install intellectronica/agent-skills/mgrep-code-searchSKILL.md
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:
The watch command indexes the repository and maintains synchronisation with file changes. It respects .gitignore and .mgrepignore patterns.
Searching
Search Commands
Basic Search
Search Options
| Option | Description | |
|---|---|---|
-m <count> | Maximum results (default: 10) | |
-c, --content | Display full result content | |
-a, --answer | Generate AI-powered synthesis of results | |
-s, --sync | Update index before searching | |
--no-rerank | Disable relevance optimisation |
Examples with Options
Workflow
- Start watcher (once per session or when files change significantly):
``bash bunx @mixedbread/mgrep watch ``
- Search semantically:
``bash bunx @mixedbread/mgrep "what you're looking for" [optional/path] ``
- Refine as needed using path constraints or options:
``bash bunx @mixedbread/mgrep -m 20 -c "refined query" src/specific/directory ``
Environment Variables
Configure defaults via environment variables:
| Variable | Purpose | |
|---|---|---|
MGREP_MAX_COUNT | Default result limit | |
MGREP_CONTENT | Enable content display (1/true) | |
MGREP_ANSWER | Enable AI synthesis (1/true) | |
MGREP_SYNC | Pre-search sync (1/true) |
Important Notes
- Always use
bunx @mixedbread/mgrepto run commands (not npm/npx or direct installation) - Run
bunx @mixedbread/mgrep watchbefore searching to ensure the index is current - mgrep respects
.gitignorepatterns automatically - Create
.mgrepignorefor additional exclusions
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/mgrep-code-search/SKILL.md
Popularity
- Repository stars
- 228
- Repository forks
- 18
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/intellectronica/agent-skills/mgrep-code-search)