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…
Manage note status transitions in Basic Memory: archive completed work, move notes between status folders, update frontmatter. Use when marking items complete or archiving entities.
Claude Code
$ npx -y skills add basicmachines-co/basic-memory --skill memory-lifecycle --agent claude-code
Codex
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a codex -y
Cursor
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a cursor -y
Gemini CLI
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a gemini-cli -y
GitHub Copilot
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a github-copilot -y
OpenCode
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a opencode -y
Windsurf
$ npx skills add basicmachines-co/basic-memory --skill memory-lifecycle -a windsurf -y
name: memory-lifecycle description: "Manage note status transitions in Basic Memory: archive completed work, move notes between status folders, update frontmatter. Use when marking items complete or archiving entities."
Manage how entities move through status stages in Basic Memory. The core principle: **archive, never delete.** Completed work is valuable context — move it out of the active view, but keep it in the knowledge graph.
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.
Deleting a note removes it from the knowledge graph — its observations and relations disappear, and links to it from other notes become unresolved links. Archiving preserves everything while signaling the entity is no longer active.
# Good — entity stays in the knowledge graph bm_move → active/ to archive/ # Bad — knowledge is lost bm_delete
The only exception: notes created by mistake (typos, true duplicates) can be deleted.
Organize entities by status using folders. The exact folder names depend on your domain, but follow a consistent pattern:
entities/ active/ # Currently relevant, in-progress archive/ # Completed, no longer active, but worth keeping pipeline/ # Future items, not yet started
For tasks specifically:
tasks/ active/ # Work in progress completed/ # Finished work
For any entity type with a clear lifecycle:
[type]/ active/ # Current [end-state]/ # Whatever "done" means for this type
Pick folder names that match your domain. The pattern matters more than the specific names.
When the user mentions completion or status change, extract the intent:
| Signal | Status | Action | |--------|--------|--------| | "finished", "done", "completed", "shipped" | Complete | Move to archive/completed folder | | "submitted", "sent", "delivered" | Complete | Move to archive/completed folder | | "missed", "passed", "skipped", "expired" | Missed | Move to archive or missed folder | | "cancelled", "abandoned", "killed" | Cancelled | Move to archive folder | | "paused", "on hold", "deferred" | Paused | Update frontmatter status, keep in place | | "restarting", "reopening", "reviving" | Reactivate | Move back to active folder |
Search Basic Memory with multiple variations to locate the entity:
bm_search(query="quarterly report", project="<project>") bm_search(query="Q1 report", project="<project>")
If multiple matches come back, present options and ask which one.
If no match is found, ask for clarification — don't guess.
Use `bm_move` to relocate the entity to the appropriate status folder:
bm_move( identifier="tasks/active/quarterly-report", destination="tasks/completed/quarterly-report.md", project="<project>", )
By default the permalink stays the same after a move, so links keep resolving. Projects with `update_permalinks_on_move` enabled rewrite it from the new path.
After moving, merge the new status (and completion date, if the type tracks one) into frontmatter with `command="set_metadata"` and the `metadata` parameter; this leaves the body unchanged:
bm_edit(
identifier="tasks/completed/quarterly-report.md",
command="set_metadata",
metadata={"status": "completed", "completed": "2026-02-22"},
project="<project>",
)If the note also carries a `- [status]` observation, update it too (for example with `find_replace` on `- [status] active`).
Report what was done concisely:
Marked complete: Quarterly Report Moved to: tasks/completed/quarterly-report.md Status: completed
If the entity is already in an archive/completed folder, notify the user:
> "Quarterly Report is already in tasks/completed/. Want me to update anything on it?"
Sometimes only part of an entity is done. Don't move it — instead, update observations or status notes within the entity to reflect partial progress.
A note with `locked: true` in its frontmatter still moves, and keeps its lock, but the status edit in step 3 is refused. Report that it moved and that its status is unchanged. Only the user can unlock it, by editing the file.
If something was archived by mistake, move it back:
bm_move(
identifier="tasks/completed/quarterly-report",
destination="tasks/active/quarterly-report.md",
project="<project>",
)
bm_edit(
identifier="tasks/active/quarterly-report.md",
command="set_metadata",
metadata={"status": "active"},
project="<project>",
)Some status changes don't require a folder move — "paused" or "blocked" items often stay in `active/` with just a frontmatter update. Reserve folder moves for terminal or major state transitions.
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…