@artale/pi-memory
v1.2.0
Published
Persistent memory for Pi sessions
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-memoryHow 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
