Install
Install with PiG
pig install npm:m3m0s-piInstall with Pi
pi install npm:m3m0s-piReview before installing
Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.
Pi manifest JSON
The pi field of package.json.
{
"extensions": [
"./m3m0s-memory.ts"
]
}README
Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.
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.