mgrep-code-search
Semantic code search using mgrep for efficient codebase exploration.
Skill by intellectronica
Chalk Labs
Need help deploying mgrep-code-search?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/intellectronica-mgrep-code-search-800e74
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
mgrep-code-search- Description
- 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.
- License
- CC0-1.0
- Instructions
- 110 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# 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: ```bash bunx @mixedbread/mgrep watch ``` The `watch` command indexes the repository and maintains synchronisation with file changes. It respects `.gitignore` and `.mgrepignore` patterns. ### Searching ```bash bunx @mixedbread/mgrep "your natural language query" [path] ``` ## Search Commands ### Basic Search ```bash bunx @mixedbread/mgrep "where is authentication configured?" bunx @mixedbread/mgrep "how do we handle errors in API calls?" src/ bunx @mixedbread/mgrep "database connection setup" src/lib ``` ### 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 ```bash # Get more results bunx @mixedbread/mgrep -m 25 "user authentication flow" # Show full content of matches bunx @mixedbread/mgrep -c "error handling patterns" # Get an AI-synthesised answer bunx @mixedbread/mgrep -a "how does the caching layer work?" # Sync index before searching bunx @mixedbread/mgrep -s "payment processing" src/services ``` ## Workflow 1. **Start watcher** (once per session or when files change significantly): ```bash bunx @mixedbread/mgrep watch ``` 2. **Search semantically**: ```bash bunx @mixedbread/mgrep "what you're looking for" [optional/path] ``` 3. **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/mgrep` to run commands (not npm/npx or direct installation) - Run `bunx @mixedbread/mgrep watch` before searching to ensure the index is current - mgrep respects `.gitignore` patterns automatically - Create `.mgrepignore` for additional exclusions
From intellectronica/agent-skills, CC0-1.0.
More from intellectronica/agent-skills
- 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
beautiful-mermaid
intellectronica
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-pro
intellectronica
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
mgrep-code-search
intellectronica
Semantic code search using mgrep for efficient codebase exploration.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
ray-so-code-snippet
intellectronica
Generate beautiful code snippet images using ray.so.
SkillDFreshness: D★ 297Claude Code +9 - 0.530score
raindrop-api
intellectronica
This skill provides comprehensive instructions for interacting with the Raindrop.io bookmarks service via its REST API using curl and jq.
SkillDFreshness: D★ 297Claude Code +9 - 0.528score
ultrathink
intellectronica
Display colorful ANSI art of the word "ultrathink".
SkillDFreshness: D★ 297Claude Code +9 - 0.514score
gog-cli
intellectronica
Use this skill whenever the user wants to operate Google Workspace from the command line with gog/gogcli, including Gmail, Calendar, Drive, Docs, Sheets…
SkillDFreshness: D★ 297Claude Code +9 - 0.505score
monologue-notes-api
intellectronica
Use this skill when the user wants to read or search their Monologue notes through the Monologue Notes REST API.
SkillDFreshness: D★ 297Claude Code +9
Signals
- Stars
- 297
- Forks
- 27
- Open issues
- 1
- Last commit (this folder)
- Jan 20, 2026 (9 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- CC0-1.0
- Repository
- github.com/intellectronica/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from intellectronica
- 0.620score
todoist-api
intellectronica
This skill provides instructions for interacting with Todoist using the td CLI tool.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
notion-api
intellectronica
This skill provides comprehensive instructions for interacting with the Notion API via REST calls.
SkillDFreshness: D★ 297Claude Code +9 - 0.620score
beautiful-mermaid
intellectronica
Render Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library.
SkillDFreshness: D★ 297Claude Code +9 - 0.536score
copilot-sdk
intellectronica
This skill helps with GitHub Copilot SDK work across Node.js/TypeScript, Python, Go, .NET, and Java.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
nano-banana-2
intellectronica
Generate and edit images using Google's Nano Banana 2 (Gemini 3.1 Flash Image Preview) API.
SkillDFreshness: D★ 297Claude Code +9 - 0.534score
mgrep-code-search
intellectronica
Semantic code search using mgrep for efficient codebase exploration.
SkillDFreshness: D★ 297Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get mgrep-code-search running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
mgrep-code-search skill. Agent Mart. https://agentmart.dev/skills/intellectronica-mgrep-code-search-800e74 (last updated 2026-10-24)