← Catalog

@wierdbytes/pi-memory

Long-term memory for pi: injects the approved wierd-memory index into every session and adds memory_search / memory_read / memory_inbox tools and /memory, /dream, /remember commands. Needs the wierd-memory server.

Extension

Install

Install with PiG

pig install npm:@wierdbytes/pi-memory

Install with Pi

pi install npm:@wierdbytes/pi-memory
Review 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": [
    "./index.js"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.5 (README.md). PiG does not review it.

@wierdbytes/pi-memory

Long-term memory for pi: the pi side of wierd-memory, a memory kept as Markdown notes in a git repository, where background dreams over your past sessions propose changes and nothing becomes memory until you accept it.

pi install npm:@wierdbytes/pi-memory

It needs the wierd-memory server running on this machine (wmem serve, by default on 127.0.0.1:7433) — see Setup. The extension only talks to the server's HTTP API.

What it does

  • <memory> in the system prompt: the approved notes for the session's project (global + project scope), as a small index within a token budget. It is asked of the server once per session and then frozen, so the prompt cache keeps hitting; resumed sessions replay what they got.
  • Skills approved in memory are offered to the session.
  • Tools
    • memory_search — approved notes and digests of past pi sessions;
    • memory_read — a note by id (m-xxxxxx) with its evidence, or a past session entry (s:<session>#<entry>);
    • memory_inbox — keep something for the next dream; it becomes memory only after you approve it.
  • Commands
    • /memory — what this session got from memory, and the server's status;
    • /dream [status|run|review|dry|index|log|open] — drive dreams on the server;
    • /remember <text> — put a note in the inbox yourself.
  • Flag --no-memory — no injection and no memory tools for this run (also WMEM_DISABLE=1).

A pi session never waits on memory: calls have short timeouts, and without a server the session simply goes without memory. When the server does not answer, the extension tries once to start it — the launchd agent of wmem service install on macOS, else wmem serve if wmem is on PATH (WMEM_NO_AUTOSTART=1 turns this off). WMEM_URL points it at another server.

License

MIT