Searches the Mnemon knowledge library for sources, extracts, synthesis notes, collections, and wiki pages. Use when the user asks what they know about a topic, references prior context, or needs to find saved information.
Ships in mnemon. 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.
None: SKILL.md is the whole skill.
Searches the library of the selected Mnemon instance for sources matching a query. Results are ranked by rating (higher is more useful to the reader) then recency.
The engine performs a grep-style token scan — every token must appear in the file (for a video: in its extract or in the video's title, which the engine reads from source.md). It does not run a semantic (qmd) search, whatever the instance's search_provider says: the JSON reports provider: "grep" (the method that ran) and configured_provider (the config value, null when --vault was given). Never tell the user that semantic search was used.
All the logic lives in the engine. Call the dispatcher via Bash — this is the only path form to use:
"${MNEMON_HOME:-$HOME/.local/share/mnemon/engine}/bin/mnemon" [--instance <name>] search \
--query "<query>" \
[--domain <domain>] \
[--limit <n>] \
[--include-source] \
[--include-synthesis] \
[--include-collections] \
[--include-wiki [--wiki-limit <n>] [--include-orphans]]
The command prints a JSON object to stdout. Parse it and format the results for the user (see "Output format" below).
--instance <name> goes before search and selects another Mnemon instance. Without it the engine uses the instance named by MNEMON_INSTANCE (a vault sets it in .claude/settings.json under "env") or the default instance from ~/.config/mnemon/default.
| Flag | Default | Purpose |
|---|---|---|
--query | required | The search query. Tokenized into lowercase words of ≥2 chars; matching is AND across tokens (a file must contain all of them). |
--domain | none | Filter by one domain tag from the extract frontmatter, e.g. career, learning, ai. |
--limit | 10 | Max number of results to return. |
--include-source | off | Also search source.md (raw captured content), not just extract.md. Use when the user is looking for a specific phrase that might only appear in the raw source. Not needed to find a video by its title: the default search matches each extract together with the title of its video. |
--include-synthesis | off | Also search the Synthesis/ directory (the reader's own notes). Use when the user might be looking for their own writing, not just captured material. |
--include-collections | off | Also search Collections/ (research dossiers: a question and the revisions filed under it). Use when the user asks what has been gathered on a topic, or which dossier a source belongs to. |
--include-wiki | off | Also search Wiki/ pages — what the evidence says about a topic now, built by an agent with locators into the sources. They come as a separate block (wiki in the JSON) with its own limit; pages the doctor marks suppressed (vetoed by the owner), unbound (a broken locator or seal) or not probed are never shown, orphan pages (no open dossier) only with --include-orphans. Use when the user asks what the evidence says, not which sources exist. |
--wiki-limit | 5 | Max pages in the wiki block. |
--include-orphans | off | With --include-wiki: show orphan pages too. |
Pass the whole query as a single --query argument. The engine tokenizes it and matches by AND (all tokens must appear in the same file). You do NOT need to construct separate grep calls. Examples:
--query "karpathy knowledge bases" → finds files containing karpathy AND knowledge AND bases--query "organizational design" → finds files containing both words--query "AI agents" → sameIf zero files match all tokens (AND intersection is empty), the engine automatically relaxes to the most specific token that actually exists in the corpus — the one with the smallest nonzero match count — and returns those results with "fallback_applied": true and "fallback_token": "<token>" in the JSON. If none of the tokens appear in any file, fallback_applied stays false and count is 0.
Tell the user when fallback fires, using the fallback_token value from the JSON:
"No file matched all of your search terms. Showing results for
<fallback_token>only — the most specific term I could find in the library."
Do not guess which token was used — read it from the JSON.
If count == 0 even after fallback, report: "No sources found for ''. Try broader terms or use /source-status to see what's in the library."
The command returns JSON shaped like:
{
"schema": "mnemon-search/2",
"query": "karpathy knowledge bases",
"tokens": ["karpathy", "knowledge", "bases"],
"provider": "grep",
"configured_provider": "grep",
"fallback_applied": false,
"fallback_token": null,
"count": 2,
"results": [
{
"path": "Sources/2026-04-04_5c78d63f/",
"file": "extract.md",
"result_type": "extract",
"tier": "full",
"status": "extracted",
"title": "Andrej Karpathy — LLM Knowledge Bases (tweet, Apr 2026)",
"author": "Andrej Karpathy",
"url": "https://x.com/karpathy/status/...",
"domains": ["learning", "career", "ai"],
"tags": ["knowledge-base", "llm", "obsidian"],
"rating": 10,
"created": "2026-04-04",
"snippet": "Andrej Karpathy describes his personal workflow..."
}
]
}
result_type says what the result is — extract or source (a captured revision), synthesis (the reader's note), collection (a research dossier; status is open, inbox or closed), wiki (a page; only inside the wiki block). tier is the capture tier of a Sources result — full, or bookmark for a lightweight capture — and null for a synthesis or collection result; a bookmark-tier source has no full extract, say so when you show it (status: dismissed on one means the reader dismissed it in the triage). --tier full|bookmark keeps only Sources results of that tier (bookmark cards without an extract need --include-source to be scanned at all); a result without a tier never matches the filter. (Before mnemon-search/2 the tier key carried the result type; read result_type now.) A collection's path + file is Collections/<name>.md; several collections live in one folder and are distinct results.
With --include-wiki the JSON carries a wiki key (null without the flag): {"count": n, "limit": m, "results": [...]} — the same result keys plus kind (concept · comparison · contradiction · open-question), updated and states (the doctor's derived states the page still carries, e.g. ["stale"]; [] = clean). The block is ordered by updated desc, not by rating (pages have none), and its snippets never come from the page's ## Atlas reading section (the agent's opinion, not evidence). Show the block after the sources, as "What the wiki says", with each page's kind and states — a stale or inputs-changed page is still usable but say it may lag the sources; cite the page by Wiki/<name> and let the user open its locators.
Format it for the user like this:
Found 2 results for "karpathy knowledge bases":
1. **Andrej Karpathy — LLM Knowledge Bases (tweet, Apr 2026)** · rating 10
by Andrej Karpathy · 2026-04-04 · domains: learning, career, ai
https://x.com/karpathy/status/...
→ Andrej Karpathy describes his personal workflow...
path: Sources/2026-04-04_5c78d63f/
2. **LLM Wiki** · rating 8
...
Lead with title + rating — rating is the reader's primary triage signal, so it should be visible immediately. Include the wikilink-friendly path at the end so the reader can jump to the note.
If the first pass returns few or zero results and the user seemed to expect more, try:
--include-source — the phrase might be in the raw capture, not the summary (a source captured without an extract is found only this way, a video too)--include-synthesis — the reader may have written about it themselves--include-collections — a dossier may already gather the sources on this question--include-wiki — a page may already state what the evidence says (its locators lead to the sources)Don't do all four silently — tell the user what you're broadening and why.
No such file or directory on the dispatcher path → the engine is not installed at $MNEMON_HOME (default ~/.local/share/mnemon/engine); follow docs/install.md in the Mnemon repositorymnemon init <name> --vault <path> or set MNEMON_INSTANCE; mnemon doctor explains what is missing/source-add.Read tool on the returned path. Paths are relative to the instance's vault root — mnemon [--instance <name>] config get vault_path prints it.--instance <name>.What SKILL.md sets; muted values are Claude Code's defaults
/mnemon:source-searchfrom mnemon
npx claudepluginhub dkushnikov/mnemon --plugin mnemon7 skills in this plugin
/research-askAnswer a research question from the Mnemon knowledge library's wiki pages — the engine serves the usable pages' evidential bodies with their locators into source.md, the answer rests on them, and the use is recorded with a task id. Use when the user asks "what does the evidence say about X", "what do my sources say about X", "according to the wiki, …", "answer from the research pages", "what positions are there on X", or any substantive question a built Wiki/ page may cover./research-synthesizeDraft a Synthesis/ note of the owner's own thought in the Mnemon knowledge library — a seed or a draft with drafted_by, written by the engine only while the ratification radius holds; never stable. Use when the user explicitly asks "draft my position on X", "write a seed for my thesis", "sketch what I think about X as a synthesis note", "put my thought into Synthesis". Not for cross-source summaries (those are Wiki/ pages: /research-update) and not for filing sources (a dossier)./research-triageMap an agent-drafted Synthesis/ note of the Mnemon knowledge library into its destinations for the owner's verdict — items for a dossier, a reason to build a Wiki/ page, the agent's position for the page's reading, a seed of the owner's thesis, or a drop (read-only). Use when the user says "triage the agent drafts", "what should happen to the old Atlas drafts", "reclassify the draft on X", "clear the ratification queue", or when the doctor reports unratified drafts over the radius./research-updateBuild or rebuild a Wiki/ page of the Mnemon knowledge library from a research dossier (Collections/), through the engine's fenced build — or see what the pages need (--propose: a stale page's rebind, a rebuild, a delete) and apply one approved rebind. Use when the user says "build the wiki page", "update the page on X", "what does the evidence say about X — make a page", "rebuild the page", "what do the wiki pages need", "the source was re-captured, rebind the dossier", "delete the vetoed page", or asks about a collection's derived page./source-addAdd a source to your Mnemon knowledge library — articles, YouTube videos, podcasts, PDFs, books, ideas, screenshots. Captures content and generates a structured extract framed by your reader context. Use when the user provides a URL to save, hands over a screenshot or an image file, says "add source", "capture this", "save this article/video/podcast", "save this screenshot", or wants to process any content into their knowledge library./source-statusShow the status of your Mnemon knowledge library — total sources, how many are extracted, the stored status words, superseded and chunked counts, recent additions. Use when the user asks "how many sources", "library status", "what have I captured", "knowledge dashboard", or wants an overview of their library.Other plugins' skills for the same job