basic-memory-pi-setup
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status shows no project, recall returns…
Search Basic Memory notes by custom frontmatter fields with equality, range, array, and nested filters. Use when finding notes by status, priority, confidence, or any YAML field, not free text.
Claude Code
$ npx -y skills add basicmachines-co/basic-memory --skill memory-metadata-search --agent claude-code
Codex
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a codex -y
Cursor
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a cursor -y
Gemini CLI
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a gemini-cli -y
GitHub Copilot
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a github-copilot -y
OpenCode
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a opencode -y
Windsurf
$ npx skills add basicmachines-co/basic-memory --skill memory-metadata-search -a windsurf -y
name: memory-metadata-search description: "Search Basic Memory notes by custom frontmatter fields with equality, range, array, and nested filters. Use when finding notes by status, priority, confidence, or any YAML field, not free text."
Find notes by their structured frontmatter fields instead of (or in addition to) free-text content. Any custom YAML key in a note's frontmatter beyond the standard set (`title`, `type`, `tags`, `permalink`, `schema`) is automatically indexed as `entity_metadata` and becomes queryable.
If the project is unknown, discover it with `bm_project_list()`. Pass a nonempty `project` on every note, folder, context and schema call, even with one project or a qualified `memory://` URL. Use the chosen project's name, `workspace/project`, or external ID; `<project>` below is a placeholder for it. Recent activity also requires `project`. Search accepts `project` for one project, `projects` for selected projects, or `all_projects=True` explicitly. Discovery and bundled manuals need no project. Keep the same scope when following returned paths, paginating, or recovering from a refusal.
Use `bm_search` for ranked results or `bm_find` for file discovery with selected fields. Pass frontmatter conditions via `filters`, including tags and status. Omit `query` (or pass `None`) for filter-only searches.
Filters are a JSON dictionary. Each key targets a frontmatter field; the value specifies the match condition. Multiple keys combine with **AND** logic.
{"status": "active"}{"tags": ["security", "oauth"]}{"priority": {"$in": ["high", "critical"]}}{"confidence": {"$gt": 0.7}}Numeric values use numeric comparison; strings use lexicographic comparison.
{"score": {"$between": [0.3, 0.8]}}{"owner": null}Matches notes with no `owner` key and notes whose `owner` is explicitly null. Null works only as a plain equality value — inside `$in`, `$between`, an array-contains list, or a comparison it is rejected, because those compare against the value and a comparison with null is never true.
{"schema.version": "2"}| Operator | Syntax | Example | |----------|--------|---------| | Equality | `{"field": "value"}` | `{"status": "active"}` | | Is null | `{"field": null}` | `{"owner": null}` | | Array contains | `{"field": ["a", "b"]}` | `{"tags": ["security", "oauth"]}` | | `$in` | `{"field": {"$in": [...]}}` | `{"priority": {"$in": ["high", "critical"]}}` | | `$gt` / `$gte` | `{"field": {"$gt": N}}` | `{"confidence": {"$gt": 0.7}}` | | `$lt` / `$lte` | `{"field": {"$lt": N}}` | `{"score": {"$lt": 0.5}}` | | `$between` | `{"field": {"$between": [lo, hi]}}` | `{"score": {"$between": [0.3, 0.8]}}` | | `$contains` | `{"field": {"$contains": value}}` | `{"tags": {"$contains": "security"}}` | | `$exists` | `{"field": {"$exists": true}}` | `{"owner": {"$exists": false}}` | | Nested | `{"a.b": "value"}` | `{"schema.version": "2"}` |
**Rules:**
can hold (a 400-digit integer, which JSON keeps as an ordinary `int`) is refused rather than compared against an infinite bound
regular files carry no frontmatter and are never hits, not even for `null`
> The leading `$` is optional (`gte` works), but write it for clarity.
Frontmatter fields say when a note was filed or reviewed. To ask what a note *claims was true* on a date, use observation qualifiers (see **memory-notes**) and `bm_search(valid_at="2026-07-01", project="<project>")` or `bm_search(valid_overlaps="[2026-07-01,2026-08-01)", project="<project>")`.
Pass `filters` to `bm_search`. Omit `query` for filter-only searches, or combine text and filters together.
# Filter-only — find all notes with a given status
bm_search(filters={"status": "in-progress"}, project="<project>")
# Filter-only — high-priority specs in a specific project
bm_search(
filters={"type": "spec", "priority": {"$in": ["high", "critical"]}},
project="research",
page_size=10,
)
# Filter-only — notes with confidence above a threshold
bm_search(filters={"confidence": {"$gt": 0.7}}, project="<project>")
# Tags and status use the same filter syntax
bm_search(filters={"status": "active"}, project="<project>")
bm_search(filters={"tags": ["security", "oauth"]}, project="<project>")
# Text search narrowed by metadata
bm_search("authentication", filters={"status": "draft"}, project="<project>")
# Mix text, tags, and an advanced filter
bm_search(
"oauth flow",
filters={"tags": ["security"], "confidence": {"$gt": 0.7}},
project="<project>",
)Use one `
AI conversations that actually remember. Never re-explain your project to your AI again. Join our Discord: https://discord.gg/tyvKNccgqN
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status shows no project, recall returns…
Use Basic Memory from Pi for durable continuity. Capture checkpoints with bm_capture, recall prior Pi checkpoints with bm_recall,…
Guide Basic Memory setup in Tau. Use when a user wants to install or configure the Tau memory extension, choose a memory…
Save a deliberate work checkpoint to Basic Memory with the story, changed files, verification, decisions, blockers, and the next…
Capture a durable engineering decision in Basic Memory with rationale, alternatives, consequences, and affected work. Use when…
Orient Claude from Basic Memory before substantial repo work by reading active tasks, open decisions, recent checkpoints, and…
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude…
Keep a durable record of work passed between Bots in the shared Hindsight memory bank. Use when handing work to another Bot, when…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…
Install, configure, and operate MemPalace, including a private local palace, a shared-brain hub, or a client joining an existing…