Skip to main content
  1. Posts/

fff: File Search 100x Faster Than ripgrep

··261 words·2 mins·

fff: the file finder that beats ripgrep

Do you use ripgrep or fzf to search your code? Meet fff (Fast File Finder), a Rust library that is 100x faster in long-running processes that search more than once.

🔍 What makes fff special?

  • In-memory index: no regex, no disk index, instant search
  • Frecency memory: files you actually open rank higher automatically
  • Smart-case with fuzzy fallback: IsOffTheRecord finds snake_case variants; zero matches retries as fuzzy
  • Git-aware: tags modified, untracked, and staged files
  • Definition-first: code definition lines are classified on the Rust side, no prompt overhead

🤖 For AI agents (MCP server):

curl -L https://dmtrkovalenko.dev/install-fff-mcp.sh | bash

Works with Claude Code, Codex, Cursor, and any MCP-capable client. Fewer grep roundtrips, less wasted context.

🖊️ Also as a Neovim plugin — demo on the Linux kernel (100k files, 8GB).

💡 Explanation in a nutshell
#

ripgrep is great at searching files once. But when you use an editor or AI agent that searches constantly, fff keeps everything in memory and learns which files you use most, making each search progressively faster and more relevant.

More information at the link 👇

Also published on LinkedIn.
Juan Pedro Bretti Mandarano
Author
Juan Pedro Bretti Mandarano