m3m0s-pi0.2.0
Long-term memory from m3m0s for the pi coding agent (recall and capture).
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi integration
A pi extension that gives pi the same memory loop as the Claude Code hooks, by reusing the m3m0s binary:
- Recall (
before_agent_start): runsm3m0s hook claude-code --injectwith the prompt and injects the relevant memories as a hidden custom message (D44). - Capture (
agent_endasStop,session_shutdownasSessionEnd): runsm3m0s hook claude-codeagainst pi's session file. The transcript parser accepts pi'smessagelines; memories are stored withsource: "pi"(D46).
Install
From npm (needs the m3m0s binary on PATH or at ~/go/bin/m3m0s, plus ~/.m3m0s/hook.env):
pi install npm:m3m0s-pi
Manual install:
go install(or copy)m3m0sto~/go/bin/m3m0s, and create~/.m3m0s/hook.envwithM3M0S_URLandM3M0S_API_KEY.- Copy
m3m0s-memory.tsto~/.pi/agent/extensions/. AdjustBINat the top if the binary lives elsewhere. - Optional: register the MCP server read-only in
~/.pi/agent/mcp.json:{"m3m0s": {"command": "sh", "args": ["-c", "set -a; . \"$HOME/.m3m0s/hook.env\"; exec \"$HOME/go/bin/m3m0s\" mcp --read-only"]}}
Failures are silent and never block pi; the log is ~/.m3m0s/hooks/claude-code.log.