registry: list @vshulcz/magpie-deja, deja-vu's project-scoped gateway recall hook (#611)

Lists @vshulcz/magpie-deja (deja-vu's gateway recall hook) as a middleware
entry in registry.json and the README's gateway hooks table, after
OpenViking. The summary (en, zh) says recall is scoped to the request's
ctx.cwd, secret patterns are scrubbed, the recalled excerpt goes with the
request to the model provider, and the model is asked to end a helped reply
with a one-line "déjà vu: … — reusing it." note.

Contributed by @vshulcz (#611).

What was run at the reviewed head 1dca7a2853bc, merged onto main a90b7aa4:
- Linux (magpie-desktop, Bun 1.4.2): `bun scripts/check.mjs` exit 0;
  `bun test scripts/` 22 pass, 0 fail; registry.json parses, 83 entries,
  deja-vu right after @openviking/magpie-plugin; the icon URL answers 200
  image/svg+xml.
- The package npm serves now, @vshulcz/magpie-deja 0.23.5 (the registry
  lists no version, so this is what users get): deja.hooks.mjs is
  byte-identical to 0.23.3, reviewed in #611; only README, version,
  funding and the @vshulcz/deja-vu ^0.23.5 range changed. The linux-amd64
  binary (sha256 86502a9d…) is the one in GitHub release v0.23.5's
  tarball, whose sha256 matches checksums.txt. At v0.23.5 the network
  code (embed client, update look) is not on the hook-prompt path: embed
  is used only by search/MCP with a sidecar the user made, and the
  release look skips hook-* commands.
- In a sandbox HOME on Linux, `bun add --ignore-scripts
  @vshulcz/magpie-deja@0.23.5`, two fake Claude Code transcripts in two
  projects, `deja index`, then onRequest under `unshare -rn` (no network):
  local origin with projA's cwd recalled projA only (projB's canary
  absent), projB likewise; a same-named folder elsewhere came back empty;
  remote, gateway-key and no-cwd were skipped with the body unchanged.
  The sk-…, password= and AKIA… strings in the transcript did not reach
  the request. The closing "déjà vu: … — reusing it." line is there, as
  the summary says. deja wrote only under ~/.cache/deja.

Not tried: a real magpie gateway with a real agent session; Windows and
macOS binaries of 0.23.5.
This commit is contained in:
Vlad Shulcz
2026-11-05 12:45:40 +08:00
committed by GitHub
parent a90b7aa41d
commit ba442a62a5
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -194,6 +194,7 @@ Like middleware, these run on the requests agents send, but in magpie's Bun host
| [aelios](packages/aelios) | [Aelios](https://github.com/Aelios-project/Aelios) recall before each turn from your own Aelios on Cloudflare, and opt-in recording of each turn so Aelios can remember it |
| [respire-memory](packages/respire-memory) | [Respire](https://github.com/risense-ai/respire-magpie): per-turn recall and complete policy reads, automatic process diaries, and grounded experience archival with readback; storage runs after reply completion |
| [OpenViking](https://github.com/volcengine/OpenViking/tree/main/examples/magpie-memory-plugin) | OpenViking context recall and opt-in completed-conversation capture using existing OpenViking configuration; published as `@openviking/magpie-plugin` and maintained in the OpenViking repository |
| [@vshulcz/magpie-deja](https://github.com/vshulcz/deja-vu/tree/main/extensions/magpie) | [deja-vu](https://github.com/vshulcz/deja-vu) local cross-agent session memory: recalls project-scoped (`ctx.cwd`) history from the transcripts Claude Code, Codex, Hermes, Gemini CLI, OpenCode, Cursor and DSH write on disk, scrubs secret patterns, and attaches the recalled excerpt to the request sent to your model provider; when recalled history helped, the model is asked to end its reply with a one-line `déjà vu: … — reusing it.` note |
| [notify](packages/notify) | A push to ntfy, Bark, Gotify, Server酱, Feishu, DingTalk, WeCom, Telegram or a webhook when an agent's turn is done or fails, after it ran `minMinutes` or longer |
Use the same plugin management commands as middleware:
+3
View File
@@ -16,6 +16,9 @@
{ "package": "@openviking/magpie-plugin", "name": "OpenViking", "kind": "middleware", "community": true,
"icon": "https://raw.githubusercontent.com/volcengine/OpenViking/main/docs/images/ov-logo-icon.png",
"summary": { "en": "Recall OpenViking context before model requests and optionally capture completed conversations. Reuses your existing OpenViking configuration; capture is off by default. Maintained by the OpenViking project.", "zh": "在模型请求前召回 OpenViking 上下文,并按需采集完整对话。复用现有 OpenViking 配置;采集默认关闭。由 OpenViking 项目维护。" } },
{ "package": "@vshulcz/magpie-deja", "name": "deja-vu", "kind": "middleware", "community": true,
"icon": "https://raw.githubusercontent.com/vshulcz/deja-vu/main/docs/assets/icon.svg",
"summary": { "en": "Recall local session history from the transcripts Claude Code, Codex, Hermes, Gemini CLI, OpenCode, Cursor and DSH write on this machine before each request. Scopes lookup to the request's project directory (ctx.cwd) by default and scrubs secret patterns before attaching recalled excerpts to the request sent to your model provider. When recalled history helped, the model is asked to end its reply with a one-line \"déjà vu: … — reusing it.\" note.", "zh": "每次请求前从本机 Claude Code、Codex、Hermes、Gemini CLI、OpenCode、Cursor 与 DSH 的磁盘会话记录中召回相关历史。默认严格限定在请求所属的项目目录(ctx.cwd)内检索,并对密钥与令牌执行脱敏后,将召回片段随请求一并发送给所配置的模型供应商。当召回的历史记录有帮助时,会请模型在回复末尾附上一行“déjà vu: … — reusing it.”说明。" } },
{ "package": "@magpie-community/opencode-copilot-auth", "name": "GitHub Copilot", "icon": "githubcopilot", "providers": ["github-copilot"], "community": true,
"summary": { "en": "GitHub Copilot on GitHub.com or GitHub Enterprise, with premium request or credit usage, remaining allowance and quota reset dates.", "zh": "GitHub Copilot:支持 GitHub.com 与 GitHub Enterprise,显示高级请求或积分用量、剩余额度和重置时间。" } },
{ "package": "@magpie-community/opencode-joycode-auth", "name": "JoyCode", "providers": ["joycode"], "community": true,