pi-mem

pi-mem is an open-source memory harness and persistent context manager developed by Jo Inc for the Pi CLI coding agent. It provides a structured, file-based memory system inspired by OpenClaw to retain context across terminal sessions without requiring complex database infrastructure. Operating directly within the user's filesystem under `~/.pi/agent/memory/`, the harness injects curated long-term memories, active scratchpad notes, and recent daily logs into the Pi agent session upon startup. The agent reads and updates markdown files as it works, capturing durable architectural preferences, ongoing tasks, and daily session logs. What sets pi-mem apart from ephemeral session orchestrators is its lightweight, human-readable file layout. Developers can inspect, edit, or version-control their agent's memory files directly using standard text editors and Git, maintaining clear oversight over what the LLM remembers. pi-mem is distributed as an open-source npm package (`@askjo/pi-mem`) under the MIT license, making it free to use and modify for terminal-based development workflows.

Tags: ai agent, cli, coding agent, developer tools, memory, OpenSource

Visit pi-mem