@artale/pi-memory
extensionPersistent memory for Pi sessions
by — · v1.2.0 · published 3mo ago
$ pi install npm:@artale/pi-memorydownloads/mo
73
stars
—
last push
—
open issues
—
Signals
license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0
Download trend
No downloads in the last 12 weeks.
README
pi-memory
Persistent memory for Pi. Learns patterns and decisions per project, recalls context across sessions, generates handover docs.
Install
pi install npm:@artale/pi-memory
How it works
Two memory layers:
- MEMORY.md — project-level knowledge base. Patterns, decisions, gotchas, architecture notes. Lives in the project root.
- Episodic memory — JSONL log of insights with timestamps. Lives in
~/.pi/memory/episodes/.
Tools
memory_learn— record a learning/insight (pattern, decision, gotcha, architecture, process)memory_recall— search project memory + episodic memory for contextmemory_handover— generate handover document (focus, blockers, next actions, learnings)
Examples
The agent discovers a gotcha:
→ memory_learn({ insight: "Windows paths need forward slashes in bash", category: "gotcha" })
Next session, the agent recalls:
→ memory_recall({ query: "windows paths" })
→ Returns: "Windows paths need forward slashes in bash" + related episodes
End of session:
→ memory_handover({ summary: "Fixed build pipeline", nextActions: ["Deploy to staging"] })
Categories
pattern— recurring code patternsdecision— architectural/design decisions with reasoninggotcha— things that tripped you uparchitecture— system design notesprocess— workflow/process learnings
License
MIT