ram-company/pool-cli
Über uns
Search your Mac's photos from the terminal, for you and your agents.
Design und MedienGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
Original
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
brew install ram-company/tap/pool
Or with the install script, into ~/.local without sudo:
curl -fsSL https://github.com/ram-company/pool-cli/releases/latest/download/install.sh | bash
You need a Mac with Apple silicon on macOS 26 or later.
Your agent
In Claude Code, install the plugin:
/plugin marketplace add ram-company/pool-cli
/plugin install pool@pool
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://raw.githubusercontent.com/ram-company/pool-cli/main/.docs/installation.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.
| 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.
For coding agents
- JSON when piped. One document per command:
{schema, success, data, next}.--jsonforces it in a terminal. - Errors are specific. Each has a stable code, a hint, and the commands that fix it in
next. A wrong place, album or person name is an error, never an empty result, and so is a flag that could do nothing. - Suggestions say when they need you. A
nextentry markedwrites: truechanges something or needs you at the Mac, such as the Photos prompt or the background service, so an agent asks before running it. - Ids chain.
--format idsprints one id a line:pool sheet $(pool search "a dog" --limit 12 --format ids). - Exit codes: 0 ok, 1 error, 3 Photos access, 4 still indexing, 64 bad arguments, 130 cancelled.
- It never prompts, and the everyday commands answer at once. Searches and listings read the local index: a search over 49,000 photos takes 0.14 s.
pool indexis the exception: it waits for its whole pass. The first pass downloads the search model, about 376 MB, then reads every photo, which takes minutes on a large library; a later pass reads only what changed, 2 s when nothing did. An agent runs it in its own shell, or asks the person forpool service install, which keeps the index current in the background, and once the model is downloaded searches with--partialmeanwhile. Downloads (pool places install,pool models install) and the opt-in jobs are slow too, and run only when asked. Before a delete or a hide macOS itself asks you, at the Mac, and pool waits up to 90 seconds for the answer (--wait). A folder source in Documents, Desktop or Downloads can make macOS ask whether pool may read it: a folder that does not open within 10 seconds is skipped withsource.not_answering, its photos stay as they were, and the rest of the pass goes on. - Nothing is uploaded without your agreement:
--accept-uploadon the command, or, for a remote model, on its install, which saves the agreement for that provider's host. No suggested command ever adds that flag. pool commands --summarylists every command with its options, whether it writes or can upload, and every error code with its exit code, in about 20 KB.
Without the skill, one line in your AGENTS.md does it:
Find photos on this Mac with `pool`: run `pool skill` first and follow the guide it prints.
How it works
- One vector per photo, made on the Mac.
pool indexruns the default model, SigLIP 2, through Core ML on the Neural Engine, GPU and CPU at once, newest photos first. The index keeps each photo's details and its vector, never its pixels. - A search is a comparison. Your text becomes a vector with the same model, and the photos that pass the filters are ranked by how close their vectors are to it.
- Places are offline.
pool places installdownloads place names and outlines once; a photo's place is then looked up on the Mac, by the place's real outline. - Auto albums come from the same vectors.
pool indexsorts photos into People, Food, Nature, Document, Receipt and others;pool categorieslists them and--categorysearches one. - Changes go through Photos.
pool delete,pool favorite,pool hideand thepool albumscommands take photo ids. A delete or a hide only previews until you add--yes, and macOS then asks you once more at the Mac. Deleted photos go to Recently Deleted. Changing the library has the rest.
What it does not do
- Apple silicon Macs on macOS 26 or later only.
- It reads the system Photos library and the folders you add, not other Photos libraries.
- Jobs that need a photo at full size (
--read-text,--describe) first download the photos that are only in iCloud: on a 49,000-photo library,--read-textread 478 a minute. - Place names cover towns of 500 people or more; a neighbourhood is known only where it has an outline.
- Text in photos is read with Apple Vision, which reads Latin and Cyrillic scripts but not Georgian.
Speed
On a MacBook Pro with an M4 Pro, the default model embeds 361 photos a second once their thumbnails are loaded. Over 49,000 photos a text search takes 0.14 s (the first after the Mac has sat idle, 0.7 to 2.1 s), finding similar photos 0.04 s, and a background pass with nothing new 2 s. Benchmarks compares the models and engines, and says how each number was measured.
Privacy
- The index, models and place files stay in
~/Library/Application Support/Pool, the settings in~/.config/pool/config.json. The index holds each photo's details and one vector per photo, never its pixels. poolhas no account. It goes online to fetch the default model from Pool's server (once, about 376 MB, each file checked against a checksum built intopool), Pool's own photo category file from Hugging Face (once, pinned by revision and checksum), the place data when you install it, an optional model you install, and to send anonymous usage counts.- The usage counts are one small event per command: the command, the options used by name, how it ended and its exit code, how long it took, whether the output went to a terminal, pool's and macOS's versions, the Mac's processor type, a random id and the time of the event, and a random install id. Never a search text, a path, a photo or a name. They are on by default, and the first command that records one says so once, on stderr.
pool telemetryshows exactly what is sent;pool telemetry disableorDO_NOT_TRACK=1turns it off. Telemetry lists every field. PoolKit, the SDK, sends nothing. - A photo leaves the Mac only for a remote model, describer or decider you chose, after you agreed with
--accept-upload. A remote model's agreement is saved for its provider's host when you install it, so every photo it indexes from then on goes to that host, the background service's included. No suggested command adds that flag. - Provider keys live in a file only you can read,
keys.jsonin pool's data folder, never in the settings file.poolnever asks the Keychain, so macOS never prompts for them.
Documentation
Installation · Benchmarks · Models · Places · Changing the library · Auto albums · People · Hybrid search · Labels · Settings · Telemetry · Contributing
Credits
Place outlines © OpenStreetMap contributors, via Overture Maps Foundation, under the Open Database License; they include geoBoundaries, Esri Community Maps and LINZ data (CC BY 4.0). Place names © GeoNames (CC BY 4.0). The default model is Google's SigLIP 2 (Apache 2.0).
Licence
pool's source code is licensed under the Apache License 2.0. See NOTICE.
pool links PoolKit, Pool's search engine. PoolKit is not open source. It comes as a prebuilt binary under its own terms, and those terms do not allow using PoolKit or pool to build search into another product or service without a PoolKit licence. Contact [email protected].
Contributions are accepted under the Apache License 2.0; CONTRIBUTING.md says how. THIRD_PARTY_NOTICES.md lists the licences of the software, models and data pool uses.
Ähnliche Projekte entdecken
Wird geladen…