yjid/kensaku
Search inside documents, code, and even screenshots - instantly and locally. A free, open-source file launcher with OCR, semantic search, and MCP agent access.
Kensaku (検索) — a fast, private, local file search app
What it is: Kensaku is a free, open-source (MIT) desktop app that finds files on your computer by name, by the text inside them, by what's shown in images (OCR), and even by meaning. It's designed to work like a launcher: you summon it with a keystroke, type what you remember, and press Enter to open the match.
The core idea
You don't remember filenames — you remember what was in the file. Kensaku searches names, file contents, and meaning all at once, and highlights the matching words in results. The README's example: a PDF about database indexing saved as notes-final-2.pdf, or a screenshot with a CUDA error that has no useful name at all. Kensaku can find both.
Key capabilities
- Filename search — very fast (see Performance below).
- Full-text search inside documents — PDF, DOCX, PPTX, XLSX, EPUB, ODT/ODS/ODP, RTF, plain text, code, and logs, including CJK (Chinese/Japanese/Korean) text.
- OCR for images — reads text out of screenshots and images. Default engine is PP-OCRv6 (bundled, no system install). Optional higher-quality Indra engine (deskew, multi-script, ~27 MB pack downloaded on demand) and classic Tesseract are selectable in settings.
- Search by meaning — you can type something like "the PDF about indexing" and it understands intent, not just keywords.
- Natural-language time filters — "last Tuesday", "3 days ago", "last week", "today", "yesterday" work as queries.
- Typo tolerance — fuzzy matching that tolerates typos.
- A query language for precise searches, e.g.
type:pdf invoice,ext:md in:"~/Notes",modified:7d,size:>10mb,lang:rust,content:"timeout",-draft. - Launcher behavior — starts hidden in the system tray, summons with a keystroke, results update as you type (no separate search page), full keyboard navigation, spacebar preview (Quick Look) for PDFs/images/text, grid or list layout, light and dark themes.
- Recents — ranked by what you actually opened, persisted across restarts.
- AI agent access (MCP) — compatible agents like Claude or Cursor can search the same local index over MCP (read-only by default). Also supports loopback HTTP with a bearer token.
- Incremental indexing — changed files are picked up without rescanning the whole disk; tracks renames and deletes.
Performance (measured, Linux, 8 vCPU, SSD, 100k files)
| What | Result |
|---|---|
| Name search, in memory (avg of 8 queries) | 1.3 ms (best 0.5 ms, worst 2.4 ms) |
| Index 101,101 files, first run | 184 s, peak 183 MB |
| Re-index with nothing changed | 0.56 s |
| Memory for file names + metadata, 100k files | ~12 MB |
Compared against plocate (34 ms / 6 ms) and fd (109 ms / 98 ms) for the same queries — though the README notes these tools start a fresh process per search while Kensaku runs in memory inside an already-running app. On Windows (1.0.6, Windows 11): installer is 9 MB, ~20 MB private memory idling in tray with a 24,500-file index, ~150 MB while actively browsing results.
Privacy & security
- Local by default — no telemetry, no account, no cloud search. "Zero bytes leave your machine."
- You choose what gets indexed (watched folders, exclusions). Hidden files and common build folders are skipped by default; credential files (
.pem,.key,.pfx) are excluded. - Bounded processing — each file has time and size limits so one bad file can't stall the index.
- Agent access is read-only by default;
reindexis off unless you enable it. - The index itself is treated as sensitive (contains file names and extracted text) — README advises not syncing it to a shared location.
Platforms & install
- Windows —
.exeor.msiinstaller - macOS (Apple silicon and Intel) — universal
.dmg - Linux —
.AppImage,.deb, or.rpm - Every release ships
kensaku-cli(command-line search) and aSHA256SUMSchecksum file. - Builds are not yet code-signed, so macOS/Windows show a first-run warning (expected for an independent app).
- Built from source with Rust (stable), Bun 1.1+, and platform webview libraries (
bun install && bun run tauri build). A Makefile coversmake dev,make build,make test,make reset.
Current status (1.0.6, shipping now)
Known limitations:
- Not code-signed; auto-updater not wired up yet.
- OCR: PP-OCRv6 default (
6 MB model pack on first run); Indra optional (27 MB); Intel Macs fall back to Tesseract. JPEG 2000, fax, and JBIG2 scans not decoded yet. - Thumbnails cover image files only — documents and code show type icons.
- Visual search is a beta model download and not yet part of search results.
- Windows gets the most real-world testing; macOS and Linux builds ship from CI and would benefit from more testing.
Roadmap (explored, not promised)
Ideas under discussion, prioritized by community votes: a glass/translucent theme with more customization; app search and launch (type "term", open Terminal); opt-in internet quick search (off by default, separated from local results); an "ask your files questions" answers layer (local-first, cloud only if you opt in with a key); and a signed auto-updater.
Contributing
The README calls out: bug reports with reproduction steps (especially from macOS/Linux users), feature ideas in Discussions, good first issues in the tracker, search-quality work (ranking, typo tolerance, new extractors), MCP tooling and guides, docs/translations/screenshots, and private vulnerability reports via SECURITY.md. The test suite is 240+ Rust tests run on every push.
All facts above are drawn directly from the project README; nothing has been added or inferred beyond what the README states.
Related
- Project
- Project
- Project
- Project