Skip to main content

Command Palette

Search for a command to run...

grep for documents, image, code

Updated
โ€ข2 min read
 grep for documents, image, code
A

Developer who sees beyond the hype

Providing context to LLMs is more important than ever. It is not just what you provide (just text), but also how which makes Agentic coding either a wasteful and costly run vs cheap and fast.

Found a tool that solves the retrieval process: mgrep

It is an enhanced `grep`. Whilst, grep does text-based searching, it was built around 50 years ago in the UNIX era. Philosophy of being simple is commendable, but in this age of multi-model; we need something better

mgrep is multimodal with semantic search. It can search in human language across PDFS, text, audio, video and codebases.

Now for numbers:

- ๐—ง๐—ผ๐—ธ๐—ฒ๐—ป ๐—˜๐—ณ๐—ณ๐—ถ๐—ฐ๐—ถ๐—ฒ๐—ป๐—ฐ๐˜†: Reduces token usage by 53% when utilized by coding agents like Claude Code.

- ๐—Ÿ๐—ฎ๐˜๐—ฒ๐—ป๐—ฐ๐˜†: Improves response speeds by 48%

- ๐—ฅ๐—ฒ๐˜€๐—ฝ๐—ผ๐—ป๐˜€๐—ฒ ๐—ค๐˜‚๐—ฎ๐—น๐—ถ๐˜๐˜†: Yields 3.2x better responses based on an LLM-as-a-judge evaluation (GPT-4 / Gemini) on 50 coding tasks

mgrep is a CLI which can be used simply with ๐˜ฎ๐˜จ๐˜ณ๐˜ฆ๐˜ฑ "๐˜ฉ๐˜ฐ๐˜ธ ๐˜ด๐˜ต๐˜ณ๐˜ฆ๐˜ข๐˜ฎ๐˜ช๐˜ฏ๐˜จ ๐˜ช๐˜ด ๐˜ช๐˜ฎ๐˜ฑ๐˜ญ๐˜ฆ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต๐˜ฆ๐˜ฅ". It can be leveraged with tools like Claude Code, Codex, Opencode as simple as ๐˜ฎ๐˜จ๐˜ณ๐˜ฆ๐˜ฑ ๐˜ช๐˜ฏ๐˜ด๐˜ต๐˜ข๐˜ญ๐˜ญ-๐˜ค๐˜ญ๐˜ข๐˜ถ๐˜ฅ๐˜ฆ-๐˜ค๐˜ฐ๐˜ฅ๐˜ฆ.

I've been using it in Codex and it has made me use the web-based LLM sites even less.

Check it out here: https://www.mgrep.dev/ย 

#LLM #AgenticCoding #SofwareEngineering #RAG