Search the photo library on this Mac by what photos show, when and where they were taken, with the pool CLI. Runs on the Mac; nothing is uploaded without your agreement.
Search your Mac's photos from the terminal, for you and your agents.
pool searches the photo library on your Mac by what the photos show, when and where they were taken. It runs on the Mac: your photos are indexed locally and nothing is uploaded unless you ask for it.
pool search "two people on a beach at sunset" --limit 3
# date kind score place id
1 2025-08-14 19:42 photo 0.142 Lisbon, Portugal 8C1F0A52-…/L0/001
2 2024-07-02 20:15 live 0.137 Batumi, Georgia 41D7E9B3-…/L0/001
3 2025-08-14 19:44 photo 0.131 Lisbon, Portugal F03A6C18-…/L0/001
3 shown, ranked from 49656 photos
The rows above are an example. A search over 49,000 photos takes 0.14 s once the model is loaded. The first search after the Mac has sat idle loads the model and reads the index from disk, and took 0.7 to 2.1 s.
It is built for coding agents and scripts first: piped output is JSON, every error says what to run next, and pool skill prints the guide an agent needs. In a terminal it prints tables like the one above.
Install
The CLI
curl -fsSL https://pool.day/cli/install | bash
The script installs into ~/.local without sudo. Or with Homebrew:
brew install ram-company/tap/pool
You need a Mac with Apple silicon on macOS 26 or later.
Codex, Cursor and other coding agents get the skill (it needs Node.js):
npx skills add ram-company/pool-cli
The skill asks the installed pool for its guide, pool skill, so the agent always reads the one that matches your version.
Or let your agent do both
Paste this into it:
Set up pool on this Mac following https://pool.day/cli/install.md
Installation has the rest: how the install script checks what it downloads, another install folder, Full Disk Access, building from source and uninstalling.
Quick start
pool permissions request # once: the macOS Photos prompt
pool index # downloads the model once (about 376 MB), then reads the library; safe to stop and run again
pool search "a dog on a beach"
Write the text as a short caption of what you want to see; several wordings in one search beat one long query. Filters narrow by date, place, kind (--photo, --video, --screenshot), album, person, event, favourites and more: pool search --help lists them. Search works on a partial index with --partial. --understand also says which dates, places and kinds it read in the text and gives the flags that ask for them; the search itself stays as typed unless you add --apply-understood. It reads English first: German and Russian, people and the other filters are only suggested. Understanding a search says what it reads.
Command
What it does
pool similar <id>
Photos that look like this one
pool sheet <ids…>
A contact sheet of the photos, to look at; pool export <ids…> --out <dir> writes a JPEG of each
pool places install
Search by place name, --place Tokyo: a one-time 47 MB download. --near, --bbox and --areas work without it
pool service install
Runs the indexer in the background from login, picking up new photos as the library changes
pool doctor checks access, the model, the index and the background service, and gives the fix for anything missing.