whereismyai
Fmgrep
Fmgrep is a regular expression search engine for huge codebases that uses a persistent index for fast queries.
Fmgrep is a regular expression search engine designed for huge codebases. It builds a persistent FM-index of the file tree rather than scanning every file on every search. It is built for developers and coding agents that run many queries consecutively. The engine supports efficient AND and OR expressions, follows rg formats and conventions, and includes a server mode for repeated searches. It tracks changes using watchman and git, and runs on Linux and macOS.
Fmgrep at a glance
- Best for: Software engineer
- Runs on: Linux, macOS, CLI
- Pricing: Free under the MIT license
- Released: November 2026
- Category: AI coding tool
- Website: github.com/pepeiborra/fmgrep
Key features
- Index file trees once for persistent search
- Resolve queries with efficient AND and OR expressions
- Run as a server to keep the index loaded
- Track tree changes using watchman and git
- Output results in JSON format
- Search edited or added files since indexing
Use it for
- Searching huge codebases rapidly for coding agents
- Running regex queries across large repositories
- Querying shared code checkouts via a server
Alternatives to Fmgrep
- jevgrep — Reduces coding agent costs by providing targeted, relevant repository context.
- Sgrep — Runs locally without accounts or hosted indexes using small CPU models.
- Anygrep — Runs locally on the CPU using EmbeddingGemma 2 without sending data away.
- Firgit — It gives repositories a standard way to prevent agents from retaining temporary data.
- Visiongrep — Runs fully offline with local CLIP inference and SQLite caching for fast searches.
- Agy Fast — Cuts LLM turns by 33.7% and billable token quota by 31.5% using batched local calls.
- Gtree — Runs multiple AI coding agents together and flags file overlaps.
- jscpd — A native Rust binary that runs fast without a Node.js runtime and integrates with AI agents.
- Freebuff — Access multiple coding AI models for free without subscriptions.
- Shell GPT — Executes generated shell commands and code snippets directly within the terminal.
- LlamaIndex — It provides hosted APIs for parsing documents and extracting typed data with one API key.
- zvec-grep — Unifies ripgrep, BM25, and vector search behind one local-first interface.
All Fmgrep alternatives