Search what the user has on this Mac with hayfind: the folders they chose to index, their Claude Code conversations, and Apple Notes and Reminders when those are turned on, by meaning or by exact words, all on the Mac. Use whenever the user wants to find something they wrote, read, saved or talked about before: a file, a note, a past conversation, a decision, a number, a link, a quote, or where something was mentioned. Also shows their earlier searches and records which result answered. Needs...
2 stars
0 votes
0 copies
0 views
Added November 29, 2026
ai-agentspythonshellgit
Works with
claude code
Security analysis
B88/100
criticalDownloads and executes remote scripts — classic supply chain attack
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Hayfind?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/razorii-hayfind)
---
name: hayfind
description: "Search what the user has on this Mac with hayfind: the folders they chose to index, their Claude Code conversations, and Apple Notes and Reminders when those are turned on, by meaning or by exact words, all on the Mac. Use whenever the user wants to find something they wrote, read, saved or talked about before: a file, a note, a past conversation, a decision, a number, a link, a quote, or where something was mentioned. Also shows their earlier searches and records which result answered. Needs Claude Code on the Mac where hayfind is set up; it can't run in claude.ai's cloud sandbox."
---
# hayfind: search what is on this Mac
hayfind keeps an index of the user's own text on their Mac: the folders they chose, their Claude Code conversations, and Apple Notes and Reminders when they turned those on. A server on the Mac answers every search, by meaning (an embedding model sized to the Mac's memory) or by exact words, and keeps a private log of the searches so the user can look back at them. Nothing here leaves the Mac. Everything you get back is the user's own private text: quote only what answers the question.
This skill needs **hayfind 0.1.3 or newer**, on macOS. Anywhere else (`uname -s` isn't `Darwin`), say hayfind runs only on a Mac and stop.
## 1. Find hayfind, or install it
uv puts the command in `~/.local/bin`, which often isn't on the shell's PATH, so look before installing. Run `hayfind doctor --json` once per conversation; if `hayfind` isn't found, run `~/.local/bin/hayfind doctor --json`. Use the form that works for every command below, written the same way: those are the two forms the permission rules in the plugin's README allow.
**Not installed** (neither runs): say in one line that hayfind isn't installed on this Mac, and offer to install this release. Setting it up is the user's choice at every step, because the index reads their folders, so run each command below only after they say yes to it, and say first what it does. The install downloads this release's wheel from its GitHub release into `~/.local/bin`, checks it against the SHA-256 written here, installs that file with uv and deletes it:
```
mkdir -p ~/.local/bin && curl -fsSL -o ~/.local/bin/hayfind-0.1.3-py3-none-any.whl https://github.com/RazorII/hayfind/releases/download/v0.1.3/hayfind-0.1.3-py3-none-any.whl && echo "ef24561f2b7dd94ad6123f998fae3e4fdf7b2c953d792e4a5252452f992a58b7 $HOME/.local/bin/hayfind-0.1.3-py3-none-any.whl" | shasum -a 256 -c - && uv tool install --python 3.14 ~/.local/bin/hayfind-0.1.3-py3-none-any.whl && { rm -f ~/.local/bin/hayfind-0.1.3-py3-none-any.whl; true; } || { rm -f ~/.local/bin/hayfind-0.1.3-py3-none-any.whl; echo "Nothing was installed."; false; }
```
Give it a 10-minute timeout. A download that doesn't match the SHA-256 is deleted before anything is installed. Then `hayfind setup --root <folder>` once for each folder they want indexed (ask which, unless they said); setup says which folders macOS protects and need Full Disk Access. Searching by meaning also needs `hayfind setup --venv`, which downloads the model libraries and the profile's models (several GB). `hayfind setup --load all` installs the background jobs that keep the index fresh; until the index job has run, a search exits 3.
**No uv** (neither `uv` nor `~/.local/bin/uv` runs): say that hayfind is installed with uv, and point the user to uv's install page, https://docs.astral.sh/uv/getting-started/installation/. Never install uv yourself, and never pipe a download into a shell.
**Too old**: when hayfind refuses a command or an option this skill names (exit 2, saying `invalid choice` or `unrecognized arguments`), the installed copy is older than this release. A `version` older than 0.1.3 in doctor's answer means the same. On the user's yes, install this release over it, checked the same way (a plain `uv tool upgrade` won't move it to a new release, and on an install this skill made it fails, because uv looks for the wheel file the install deleted):
```
mkdir -p ~/.local/bin && curl -fsSL -o ~/.local/bin/hayfind-0.1.3-py3-none-any.whl https://github.com/RazorII/hayfind/releases/download/v0.1.3/hayfind-0.1.3-py3-none-any.whl && echo "ef24561f2b7dd94ad6123f998fae3e4fdf7b2c953d792e4a5252452f992a58b7 $HOME/.local/bin/hayfind-0.1.3-py3-none-any.whl" | shasum -a 256 -c - && uv tool install --force --python 3.14 ~/.local/bin/hayfind-0.1.3-py3-none-any.whl && { rm -f ~/.local/bin/hayfind-0.1.3-py3-none-any.whl; true; } || { rm -f ~/.local/bin/hayfind-0.1.3-py3-none-any.whl; echo "Nothing was installed."; false; }
```
**`"ok": false`** (doctor exits 3): a check says `fail`. Tell the user what it says, with its `hint`, in plain words and stop: a search on an install that can't run would only fail again. On a new Mac it is often `tool.gitleaks`: hayfind scans every document for secrets with gitleaks before storing it, and the hint says how to install it (`brew install gitleaks`).
## 2. Who asked
The log tells the user's own searches from yours. When the user asked for the search, pass `--initiator owner`: `owner` always stands for the Mac's owner, whatever name their profile gives them in the log. When you search on your own, to check something while you work, pass `--initiator claude`. Never leave `--initiator` out of a search in a session: such a search is logged as `unknown`.
## 3. Search
```
hayfind search "<question>" --json --initiator <owner|claude>
```
- **The question**: the user's own words, or a short rewording of what they want. One search per question; if the first finds nothing useful, reword once.
- **Mode**: the default searches by meaning and reranks when the user's profile runs a reranker (tier 3, unless `hayfind profile set-reranker off` turned it off). `--fast` skips the reranker. `--exact` finds exact words, phrases in double quotes, codes and numbers, and needs no model. On a Mac whose profile runs no model, every search is answered and logged in exact mode.
- **Narrowing**: `--source <name>` (repeatable: `file`, `convo`, `note`, `reminder`, `page`, or any other source the index holds), `--since YYYY-MM-DD`, `--until YYYY-MM-DD`, and `-k N` for the number of results (1 to 50, 8 by default). The conversation you are in is left out unless you pass `--include-self`.
- **Busy**: when another job holds the model, the search exits 4 saying `busy`. Run it again with `--fallback-exact` to get exact-word results at once.
The JSON answer has `search_id`, `mode_used`, `notes` and `results`. Each result has `rank`, `doc_id`, `source`, `title`, `date`, `path`, `snippet` and `state`, and some carry an object for their source (`session` for a conversation, `note`, `reminder`, `page`). Exit codes: 0 results, 1 none, 2 a usage error, 3 no index yet (the index job hasn't run: say so), 4 the server failed, 5 refused (a filter that matches nothing).
## 4. Read what answers
`hayfind show <doc_id> --json` gives a document's chunks, path and source object; `--chunk N` only that chunk. Read before you answer, and answer from what the document says, naming where it is (its path or title and date) so the user can open it.
## 5. Say what answered
When the user confirms a result answered them, record it: `hayfind mark last used <rank>`, or `hayfind mark <search_id> used <rank>`. When none did: `mark last not-it`, and `--found <doc_id or path>` when the answer turned up elsewhere. Mark only what the user told you, never a guess. These marks are what `hayfind report` uses to say whether a smaller model would serve the user as well.
## 6. Earlier searches
Only when the user asks about their earlier searches: `hayfind history` lists the newest, newest first: number, time, mode, who started it, what was marked, and the question. `--limit N` (1 to 1000, 20 by default) and `--json`. The log is the user's alone: the server gives it to nobody else. Show what they asked for and no more.