omp packages

pi-dejavu-memory1.4.8

DejaVu memory extension for Pi — automated memory management with SessionStart boot protocol

GitHub Actions Published 21 days ago MIT ~906 downloads/mo

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.

Did it work for you?

Result

One report per person. A new report replaces your old one.

Reports 0

No reports yet.

Readme

pi-dejavu-memory

pi-dejavu-memory — SessionStart boot protocol + memory tools for Pi

DejaVu extension for Pi — automated memory management with SessionStart boot protocol.

Agent-side companion to a DejaVu MCP memory server on Cloudflare. Also available for dsh: dsh-dejavu-memory.

The OpenAI/Codex plugin is the only client that opens the interactive memory graph. Pi uses the same server and boot protocol through tools only; there is no graph UI or direct MCP setup for end users here.

The OpenAI/Codex DejaVu Memory plugin showing the memory tree as an interactive graph

The OpenAI/Codex DejaVu Memory plugin inspector showing a node, its metadata, body text, and subtree

Features

  • SessionStart Boot Protocol — the hook emits DEJAVU_BOOT_REQUIRED; the agent then calls dejavu_boot (reads system://boot, system://recent/5, system://triggers, then best-effort system://briefing) and reads system://focus to resume active working trees (recent is a briefing subset, so no need to re-read it after boot)
  • Memory Rules — global rules injected every session for intelligent memory usage (write-judgement, update-over-create, trigger discipline)
  • Memory Tools — dejavu_boot, dejavu_read, dejavu_create, dejavu_update, dejavu_delete, dejavu_search

Install

pi install npm:pi-dejavu-memory

Configure

Add to ~/.claude/rules.md or project rules:

- DejaVu memory rules (from pi-dejavu-memory extension)

Set your MCP endpoint in ~/.pi/agent/extensions/pi-dejavu-memory/config.json:

{ "mcpUrl": "https://dejavu.example.com/mcp", "mcpHeaders": { "CF-Access-Client-Id": "<service-token-id>", "CF-Access-Client-Secret": "<service-token-secret>" } }

For servers behind Cloudflare Access (e.g. dejavu.example.com), pass the service token headers instead of mcpAuth:

{
  "mcpUrl": "https://dejavu.example.com/mcp",
  "mcpHeaders": {
    "CF-Access-Client-Id": "your-client-id",
    "CF-Access-Client-Secret": "your-client-secret"
  }
}

mcpHeaders is merged into every MCP request; mcpAuth (Authorization) can be combined if the server also accepts it.

Without a config file, the extension also accepts DEJAVU_MCP_URL and DEJAVU_MCP_AUTH.

How It Works

  1. SessionStart Hook — emits DEJAVU_BOOT_REQUIRED
  2. Agent calls dejavu_boot — loads system://boot, system://recent/5, system://triggers, then best-effort system://briefing
  3. Agent reads system://focus — resume active working trees (recent already covered by boot/briefing)
  4. Global Rules — memory operation rules injected every session
  5. Agent uses memory tools — read/create/update/delete based on rules

Tool naming

The dejavu_boot / dejavu_read prefixes make the memory tools explicit in the tool list and in the boot protocol, so agents call them directly instead of probing for a generic resource first.

License

MIT

Related