/miyo:miyo-searchfrom miyo
Searches the user's local knowledge base (notes, documents, saved ChatGPT/Claude chats) via the miyo CLI. Use when an answer may exist in the user's own material, even if they don't mention Miyo or a filename.
Ships in miyo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Miyo is a local-first knowledge tool. It indexes the user's notes, documents, and
saved AI chats into a local vector database and exposes hybrid semantic search
(dense + sparse, fused with RRF) over them. The miyo CLI is a thin client over a
local HTTP service — everything stays on the user's machine.
Reach for it whenever the answer likely lives in the user's own material rather than your training data or the open web — including questions that never say "Miyo" or "notes" ("what did we land on for the pricing model?", "have I written about this already?"). When in doubt, search: it's cheap, and answering from your own guess when the user has a real note on it is the failure mode to avoid.
The CLI ships with the Miyo desktop app, which also runs the local service the
CLI queries. Invocation differs by OS below; the miyo subcommands are identical
everywhere.
1. Invoke miyo by its full path
Don't rely on miyo being on PATH. An agent that wasn't started from a terminal (an
editor running it over ACP, say) can inherit a bare environment that never sources the
user's shell rc files, so a plain miyo fails on a perfectly good install. Invoke the
CLI by its full install path instead — the form depends on the shell:
| Shell | Full invocation (replaces miyo) |
|---|---|
| macOS / Linux (bash, zsh) | ~/.miyo/bin/miyo |
| Windows PowerShell | & "$env:LOCALAPPDATA\Miyo\bin\miyo\miyo.exe" |
| Windows cmd | "%LOCALAPPDATA%\Miyo\bin\miyo\miyo.exe" |
The examples below write plain miyo for brevity; swap in the full form for your shell
(%LOCALAPPDATA% only expands in cmd, so PowerShell must use $env:LOCALAPPDATA). Each
command runs in a fresh shell, so don't stash it in a variable — write the path out.
If that path doesn't exist, fall back to a bare miyo — a non-standard install may
still be on PATH. Only when both fail is Miyo actually missing: tell the user to
install it from https://miyo.md/ and launch the app once — first launch installs the
miyo CLI.
If the full path is present but still fails, references/troubleshooting.md has the PATH fixes.
2. Is the service up?
Don't run a separate health probe — the first real command is the readiness check.
Every service-backed miyo command opens the same local connection, so if the
service is down it exits 1 with "Cannot connect to Miyo service / Is the Miyo app
running?". That means the app isn't running: ask the user to open it (or
download it from https://miyo.md/). It never means "the user has no notes about this."
Inside a sandboxed coding agent (e.g. Codex), that local connection counts as network
access and may prompt for approval the first time miyo runs — a separate curl
would only add a second prompt.
references/troubleshooting.md covers allowing it
once, and pointing the CLI at a non-default service (MIYO_URL).
miyo search <query> searches, miyo files lists indexed files, and miyo folders
lists indexed folders. miyo <command> --help gives each one's flags. Pass --json
whenever you parse the output.
(miyo mcp also exists but is deprecated — don't use or recommend it.)
User: "What did we decide about rate-limiting the ingest API?" — a question about a past decision, so the answer is likely in the user's own notes, not yours.
# 1. Search the user's documents for the decision.
miyo search --json -n 5 "rate limiting the ingest API decision"
# → results[0].path = "Notes/eng/ingest-api.md"
# results[0].content = "...settled on a token bucket, 100 req/s per key..."
# 2. The snippet is often enough to answer. If you need fuller context, read the
# file from disk. A result path starts with its folder's name, which need not
# match the directory's name: find the folder whose path is that name, and
# swap the name for its absolute_path.
miyo folders --json # → { "path": "Notes", "absolute_path": "/Users/me/Notes" }
# read /Users/me/Notes/eng/ingest-api.md
Then answer from what you found, citing Notes/eng/ingest-api.md. The pattern —
search → trust the user's material over your own guess → cite the path → read the
file when the snippet is thin — is the core of using Miyo well.
miyo search "kubernetes ingress notes" # default: documents and chats together
miyo search --source chats "tax question I asked ChatGPT"
miyo search -n 5 --json "quarterly planning" # top 5, parsed programmatically
Two corpora, searched together by default and returned in one list ordered by
meaning; each --json result carries its source. --source narrows to one:
documents — the user's own notes and files.chats — saved ChatGPT and Claude conversations. Use this when the user
refers to a past AI conversation ("the chat where we designed the schema").--folder <name> (repeatable) searches only the named folders, each in its own
corpus, and ignores --source.
Miyo embeds each query as a single vector and runs one keyword pass over the same string, so one phrasing only reaches the notes written in that vocabulary. Widen recall with more queries, not a longer one: padding a query with synonyms blurs the semantic match and costs an exactly-titled file the ranking edge it would otherwise get.
Keep the user's own wording as the query and pass one or two rewrites as
--variant. They are searched alongside it and fused into a single ranking by
the service, so this stays one call with nothing for you to merge. Raise -n,
since variants widen what is searched, not how much comes back:
miyo search --json -n 30 "rate limiting the ingest API decision" --variant "ingest API throttling policy" --variant "token bucket quota per API key"
Expand up front when the ask is broad ("everything I have on…", "did I ever write about…") or when the query is short or jargon-heavy. Otherwise expand as a second pass, once a first search has come back thin or off-topic.
How to write the variants, why the budget is two, and what an empty result actually means: references/search.md.
Results are grouped by file: each hit shows a path and a matching snippet — an
excerpt, not the whole file (the worked example above shows how to read the full
file). Narrow with --path / --mtime-after / --mtime-before rather than adding
words to the query.
Use these to scope a search or to answer "what do I have on disk":
miyo folders # folders Miyo watches + how far indexing got
miyo files --title "roadmap" # find files by title/path without a semantic query
miyo files --order-by mtime -n 10 # 10 most-recently-modified files
miyo files filters are plain substring matches, not semantic; for "files about a
topic", use miyo search. In miyo folders, indexed_files below total_files
means a scan is still running and search may miss files. A folder's allow_writes
field is left over from an old switch and no longer decides anything.
--source or loosening filters would
find it. Only once that comes back empty too, say so plainly rather than filling the
gap from general knowledge.What SKILL.md sets; muted values are Claude Code's defaults
3 skills in this plugin
/miyo-parseConvert a document (PDF, EPUB, Word .docx, or PowerPoint .pptx) or the text in an image (PNG, JPEG, WebP, AVIF, JPEG XL) into Markdown/plain text with the local `miyo parse` CLI, so you can read, quote, or feed its contents onward. Reach for this whenever the user points at one of those and wants its text — "read this PDF", "what does this contract say", "pull the text out of report.pdf", "convert this PDF to Markdown", "summarize this PDF", "read this ebook/epub", "what's in book.epub", "read this Word doc", "what's in proposal.docx", "what's in this deck", "summarize slides.pptx", "what does this screenshot say", "copy the text out of receipt.jpg". Works on any file path and needs **no** running Miyo app or service — it parses in-process. This is document *conversion*, distinct from searching the user's indexed notes (that's the `miyo-search` skill). Command: `miyo parse`./miyo-taskSchedule a prompt for Claude Code, Codex or OpenCode to run on this computer at set times and write its result to a file in the user's folders, and manage those scheduled tasks, with the local `miyo task` CLI. Reach for this whenever the user wants an agent to do something later or on a repeat, even when they don't mention Miyo: "every morning summarize my notes", "every weekday at 9, check ...", "remind me weekly to ...", "run this every Friday", "once on the 1st, ...", "set up a recurring job", "make this an automation", "schedule this prompt", "instead of a cron job". Also for tasks that already exist: "list my Miyo tasks", "what's scheduled", "turn off the task", "move it to 8am", "run it now", "delete that task". Needs the Miyo app running. Commands: `miyo task list|create|update|enable|disable|run|delete`. (Searching the user's notes is the `miyo-search` skill; converting a PDF is `miyo-parse`.)npx claudepluginhub brevilabs/miyo-releases --plugin miyoOther plugins' skills for the same job