dmtrKovalenko/fff
The fastest and the most accurate file search SDK for AI agents, Neovim, Rust, C, Python, Bun and NodeJS
fff is a fast file-search toolkit for humans and AI agents. It helps you find files and search inside their contents much faster than traditional command-line tools like ripgrep or fzf, especially when you search repeatedly in a long-running process (like an editor or an AI coding assistant).
What makes it special?
- Typo-resistant – it can find files even when you misspell or use different casing/separators (e.g.,
IsOffTheRecordmatchesis_off_the_record). - Frequency-ranked – files you open often rank higher in future searches (called frecency).
- Background watcher – it keeps an in-memory index of your files and their contents, so searches are instant after the initial scan.
- Definition-first – it can prioritize code declarations (like function or class definitions) when you search, which is useful for AI agents.
- Git-aware – it tags modified, untracked, and staged files so you know what's actively changing.
What does it include?
fff is not just one tool – it's a library plus several integrations:
- MCP server – works with AI coding assistants like Claude Code, Codex, OpenCode, Cursor, and Cline. It provides
grep,find_files, andmulti_greptools that the AI can call to search your project. - Pi agent extension – adds FFF-powered search tools to the Pi agent, replacing its built-in
grep/findwith faster versions. - Neovim plugin (
fff.nvim) – a fuzzy finder and live grep for the Neovim editor, with a public Lua API for programmatic search.
How does it work?
- It builds an in-memory index of your project's files and their contents (the first scan may take a moment, but after that searches are very fast).
- It uses frecency – a combination of frequency and recency – to rank files you actually open higher.
- It supports smart-case matching and fuzzy fallback – if an exact search finds nothing, it retries with fuzzy matching and shows the best approximate hits.
- It can classify code definitions on the Rust side, so it can show declarations first without extra regex processing.
Performance claims
The README includes a benchmark chart comparing FFF's MCP server to normal shell search in small and big repositories. It claims FFF is faster in terms of search time and token usage for AI agents, though the exact numbers vary by model and repository size.
Installation highlights
- MCP server: one-line install via
curl(Linux/macOS) or PowerShell (Windows), or via Homebrew (brew install dmtrKovalenko/fff/fff-mcp). - Pi extension:
pi install npm:@ff-labs/pi-fff. - Neovim: via lazy.nvim or vim.pack, with a build step that downloads a prebuilt binary or compiles from source.
Who uses it?
It powers file search in opencode, nushell, and many other projects. It started as a Neovim plugin and evolved into a general-purpose library.
License and sponsorship
fff is MIT licensed and open source forever. Development is supported by sponsors like Anomaly, Mango Proxy, and RapidProxy.
For full details, check the README in the repository – it includes extensive documentation for each integration, configuration options, and API references.
Related
- Project
- Project
- Project
- Project
- Dispatch