Basic Memory Pi Setup
Set up Basic Memory for a Pi workspace.
Install
npx skills add basicmachines-co/basic-memory --skill basic-memory-pi-setup -g -a claude-code -y- Repository
- basicmachines-co/basic-memory4.4k
- Category
- AI and agents
- Updated
- 3d ago
- License
- AGPL-3.0
- Context cost
- Lightabout 702 tokens
- Runs scripts
- No, instructions only
What it does
Set up Basic Memory for a Pi workspace. Use when Basic Memory is not configured, /bm-status shows no project, recall returns setup guidance, or the user asks to enable durable memory, choose CLI vs MCP, or configure automatic continuity.
Set up Basic Memory for Pi
Use this skill when the user wants Basic Memory continuity in a Pi workspace or when recall reports that the workspace is not configured.
Goal
Create one explicit, project-local Pi configuration file:
.pi/basic-memory.json
This keeps routing predictable and avoids mutating the user's global Basic Memory default project.
Steps
- Check status with
/bm-statuswhen available. - Ask which Basic Memory project should own this workspace's Pi checkpoints, unless the user already named one.
- Prefer a project name for readability. Use
projectIdonly when disambiguation is needed. - Create
.pi/basic-memory.jsonin the workspace with opinionated defaults:
{
"transport": "cli",
"project": "PROJECT_NAME",
"captureFolder": "pi/sessions",
"useHookFlow": true,
"autoRecall": true,
"autoCapture": true
}
- If the user wants MCP mode, install the adapter and switch transport:
pi install npm:pi-mcp-adapter
{
"transport": "mcp",
"project": "PROJECT_NAME",
"captureFolder": "pi/sessions",
"useHookFlow": true,
"autoRecall": true,
"autoCapture": true
}
- If the user wants automatic recall/capture or MCP tools, confirm they trust this workspace's project mapping, then set
BASIC_MEMORY_PI_TRUST_WORKSPACE=1in the environment used to launch Pi. A project mapping alone does not enable automation. Manual/bm-recalland/bm-captureremain available with an explicit mapping without this trust setting. - Run
/bm-statusand check the effective auto recall/capture state, then/bm-recall setupor/bm-capture Pi setup checkpointto verify the path.

