Truffle
Find any file by name, content or meaning.
Instantly. Offline.
One Rust binary for macOS and Linux. Free and open source.
33 MBone binary |
50 MBRAM, idle |
< 1 msacross 3 M files |
0cloud calls |
Install
brew install azilone/tap/truffle
truffle setup
setup walks you through everything: login service, Full Disk Access, the model (865 MB, once), your folders.
Prefer a binary? Grab it from Releases.
Use
truffle recete # name, typos welcome → recette.md
truffle 'grep:TODO in:~/Code/app' # inside files
truffle 'regex:fn\s+\w+' # regex over contents
truffle meaning search 'a dog on the beach' # photos, by what they show
truffle meaning search 'the clause about pets in the lease' # PDFs, by what they say
Search by meaning works on photos, screenshots, PDFs, docs, audio and video, in 100+ languages.
New files show up by name in ~1 ms, by meaning a few seconds later.
Why Truffle
|
Spotlight |
fd / find |
ripgrep |
Truffle |
| Names, typo tolerant |
– |
– |
– |
✓ |
| Inside files, indexed |
✓ |
– |
– |
✓ |
| By meaning (images, audio, video) |
~ |
– |
– |
✓ |
| Linux |
– |
✓ |
✓ |
✓ |
| 100% offline |
✓ |
✓ |
✓ |
✓ |
Plug it in
- Coding agents (MCP):
claude mcp add truffle -- truffle mcp
- Raycast: the extension lives in
raycast/
- Your own tools:
truffle stdio speaks JSON lines, --json for scripts
Benchmarks (M1 Pro, 1.7 M files on disk)
|
|
| Name search |
0.06–0.15 ms |
| Meaning search, warm |
~30 ms; 23 ms at 100k vectors |
| First meaning search |
~1 s to load the model (7 s the very first time: Metal compiles its shaders) |
| New file searchable by meaning |
~4 s |
| Indexing 1,924 files (photos, PDFs, docs, audio, video) |
7 min 48 s (DigUp, same files: 17 min) |
| Daemon memory |
49 MB idle; 131 MB with the model loaded, released after 5 idle minutes |
| Disk |
33 MB binary; indexes 42 MB (names) + 17 MB (contents) + 14 MB (meaning); model 865 MB |
| Ranking on DigUp's evals (R@1 / MRR) |
synthetic 0.95 / 0.97, multilingual 0.85 / 0.90, code 1.00 / 1.00 |
How it works
One daemon, one file watcher, three indexes. The model is Google DeepMind's EmbeddingGemma 2 on a statically linked
llama.cpp (Metal on macOS, AVX2/NEON on Linux).
crates/
truffle-index names + contents (fork of fsearch): FSEvents / inotify, NEON + SSE2 SIMD
truffle-embed EmbeddingGemma 2 on llama.cpp, built by build.rs (--features vulkan|cuda for a GPU on Linux)
truffle-semantic meaning index: SQLite + FTS5, float16 vectors, brute-force cosine
truffle-extract readers: PDF (pure Rust), docx/odt/rtf/doc/html, EXIF, SVG, OCR, audio, video
truffle the binary: CLI, daemon, MCP server, indexer
raycast/ Raycast extension, a client of the daemon's socket
Indexing runs in a child process that exits when done, so the encoders' memory goes back to the system.
Status
- macOS (Apple Silicon, Intel) and Linux (x86_64, arm64). Windows: not yet.
- Linux: no OCR yet; video frames need
ffmpeg.
- macOS without Full Disk Access: Desktop, Documents and Downloads are skipped instead of prompting.
Credits
Built on fsearch, DigUp,
trovara and llama.cpp.
See NOTICE. Demo photos: credits.
If Truffle found something for you, a ⭐ helps others find it.