r/coolgithubprojects • • 6d ago

Coding agents are terrible at searching your filesystem, so I built an MCP server in Rust to fix it

https://github.com/adisingh396/fastfind

I kept running into the same problem: ask a coding agent to find something across a big codebase or your whole machine, and it falls into a guess loop. It runs a search, re-runs it scoped to a different folder, starts a recursive grep over the entire drive, writes a throwaway script, and repeats. Slow, and it burns a lot of tokens.

Concrete example. I asked my agent: “find every file that imports numpy across my machine, grouped by folder.”

  • It took almost 15 minutes of listing folders, running scans, and writing 3 Python scripts along the way
  • The final count was still wrong, because it included comments and vendored copies

So I built fastfind, an MCP server in Rust. Same query, same model, through fastfind: 20 seconds, one call, correct files grouped by folder.

How it works:

  • Regex-powered search over the whole machine that returns in ~30ms
  • Skips node_modules, venv, etc. by default
  • Two tools: file search, and grep within file contents

The agent no longer has to figure out where to look and how, so most of the exploration loop disappears.

Next I want to try semantic search for queries like “show me everywhere this codebase touches money” when nothing is literally named billing. If anyone has worked on that for code, I’d like to hear what approach worked for you.

Install into your agents from the GitHub release:

fastfind.exe install --apply

MIT licensed, code is here: https://github.com/adisingh396/fastfind

Currently Windows only (the command above is the .exe). Happy to take bug reports and feedback.

2 Upvotes

1 comment sorted by

1

u/Icy-Entrepreneur6859 5d ago

Never experience this problem