@ryan_nookpi/pi-extension-memory-layer
extensionmaintainedLong-term memory layer for pi — remember, recall, forget, and browse memories across sessions.
by — · v0.3.4 · published 3w ago
$ pi install npm:@ryan_nookpi/pi-extension-memory-layerdownloads/mo
974
stars
21
last push
1d ago
open issues
2
Signals
license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0
Download trend
No downloads in the last 12 weeks.
README
memory-layer
Long-term memory layer for pi — remember, recall, forget, and browse memories across sessions.
What it does
Provides persistent memory that survives across pi sessions:
- remember tool — save facts, rules, or lessons with
user(global) orproject(repo-specific) scope - recall tool — search memories by keyword, retrieve by ID, or list the full index
- forget tool — permanently delete memories that are no longer valid
- memory_list tool — list all active memories, optionally filtered by scope
/remembercommand — interactive memory save with topic selection UI/memorycommand — full-featured overlay browser with search, scope filter, view, copy, and delete
Storage
Memories are stored as Markdown files under ~/.pi/memory/:
~/.pi/memory/
user/
MEMORY.md # index
general.md # topic file
coding-rules.md # topic file
projects/
<project-id>/
MEMORY.md
general.md
Project ID resolution
Project identity is resolved automatically:
git remote originURL → normalized slug- Root commit hash →
commit-{hash8} - Fallback: cwd path hash →
local-{hash8}
System prompt injection
On each turn, the memory index is injected into the system prompt so the LLM knows what's stored without needing an explicit recall call.
Install
pi install npm:@ryan_nookpi/pi-extension-memory-layer