@agentmemory/agentmemory 0.9.10 → 0.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -107,7 +107,7 @@ agentmemory works with any agent that supports hooks, MCP, or REST API. All agen
107
107
  <td align="center" width="12.5%">
108
108
  <a href="https://github.com/openai/codex"><img src="https://github.com/openai.png?size=120" alt="Codex CLI" width="48" height="48" /></a><br/>
109
109
  <strong>Codex CLI</strong><br/>
110
- <sub>MCP server</sub>
110
+ <sub>6 hooks + MCP + skills</sub>
111
111
  </td>
112
112
  <td align="center" width="12.5%">
113
113
  <a href="https://github.com/cline/cline"><img src="https://github.com/cline.png?size=120" alt="Cline" width="48" height="48" /></a><br/>
@@ -355,6 +355,25 @@ Implementation details live in `src/cli.ts` (see `runUpgrade` around the `src/cl
355
355
  Install agentmemory: run `npx @agentmemory/agentmemory` in a separate terminal to start the memory server. Then run `/plugin marketplace add rohitg00/agentmemory` and `/plugin install agentmemory` — the plugin registers all 12 hooks, 4 skills, AND auto-wires the `@agentmemory/mcp` stdio server via its `.mcp.json`, so you get 51 MCP tools (memory_smart_search, memory_save, memory_sessions, memory_governance_delete, etc.) without any extra config step. Verify with `curl http://localhost:3111/agentmemory/health`. The real-time viewer is at http://localhost:3113.
356
356
  ```
357
357
 
358
+ ### Codex CLI (Codex plugin platform)
359
+
360
+ ```bash
361
+ # 1. start the memory server in a separate terminal
362
+ npx @agentmemory/agentmemory
363
+
364
+ # 2. register the agentmemory marketplace and install the plugin
365
+ codex plugin marketplace add rohitg00/agentmemory
366
+ codex plugin install agentmemory
367
+ ```
368
+
369
+ The Codex plugin ships from the same `plugin/` directory as the Claude Code plugin. It registers:
370
+
371
+ - `@agentmemory/mcp` as an MCP server (all 51 tools when `AGENTMEMORY_TOOLS=all`)
372
+ - 6 lifecycle hooks: `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PreCompact`, `Stop`
373
+ - 4 skills: `/recall`, `/remember`, `/session-history`, `/forget`
374
+
375
+ Codex's hook engine injects `CLAUDE_PLUGIN_ROOT` into hook subprocesses (per [`codex-rs/hooks/src/engine/discovery.rs`](https://github.com/openai/codex/blob/main/codex-rs/hooks/src/engine/discovery.rs)), so the same hook scripts work across both hosts without duplication. Subagent / SessionEnd / Notification / TaskCompleted / PostToolUseFailure events are Claude-Code-only and are not registered for Codex.
376
+
358
377
  <details>
359
378
  <summary><b>OpenClaw (paste this prompt)</b></summary>
360
379
 
@@ -427,7 +446,8 @@ The agentmemory entry is the **same MCP server block** across every host that us
427
446
  | **Windsurf** | `~/.codeium/windsurf/mcp_config.json` | Same `mcpServers` block. |
428
447
  | **Gemini CLI** | `~/.gemini/settings.json` | `gemini mcp add agentmemory npx -y @agentmemory/mcp --scope user` (auto-merges). |
429
448
  | **OpenClaw** | OpenClaw MCP config | Same `mcpServers` block, or use the deeper [memory plugin](integrations/openclaw/). |
430
- | **Codex CLI** | `.codex/config.toml` | TOML shape: `codex mcp add agentmemory -- npx -y @agentmemory/mcp`, or add `[mcp_servers.agentmemory]` manually. |
449
+ | **Codex CLI (MCP only)** | `.codex/config.toml` | TOML shape: `codex mcp add agentmemory -- npx -y @agentmemory/mcp`, or add `[mcp_servers.agentmemory]` manually. |
450
+ | **Codex CLI (full plugin)** | Codex plugin marketplace | `codex plugin marketplace add rohitg00/agentmemory` then `codex plugin install agentmemory`. Registers MCP + 6 lifecycle hooks (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PreCompact, Stop) + 4 skills. |
431
451
  | **OpenCode** | `opencode.json` | Different shape — top-level `mcp` key, command as array: `{"mcp": {"agentmemory": {"type": "local", "command": ["npx", "-y", "@agentmemory/mcp"], "enabled": true}}}`. |
432
452
  | **pi** | `~/.pi/agent/extensions/agentmemory` | Copy [`integrations/pi`](integrations/pi/) and restart pi. |
433
453
  | **Hermes Agent** | `~/.hermes/config.yaml` | Use the deeper [memory provider plugin](integrations/hermes/) with `memory.provider: agentmemory`. |
package/dist/cli.mjs CHANGED
@@ -361,12 +361,12 @@ async function main() {
361
361
  p.intro("agentmemory");
362
362
  if (skipEngine) {
363
363
  p.log.info("Skipping engine check (--no-engine)");
364
- await import("./src-d1vwmuPU.mjs");
364
+ await import("./src-IbjZ5iJi.mjs");
365
365
  return;
366
366
  }
367
367
  if (await isEngineRunning()) {
368
368
  p.log.success("iii-engine is running");
369
- await import("./src-d1vwmuPU.mjs");
369
+ await import("./src-IbjZ5iJi.mjs");
370
370
  return;
371
371
  }
372
372
  if (!await startEngine()) {
@@ -410,7 +410,7 @@ async function main() {
410
410
  process.exit(1);
411
411
  }
412
412
  s.stop("iii-engine is ready");
413
- await import("./src-d1vwmuPU.mjs");
413
+ await import("./src-IbjZ5iJi.mjs");
414
414
  }
415
415
  async function apiFetch(base, path, timeoutMs = 5e3) {
416
416
  try {
@@ -872,7 +872,7 @@ async function runUpgrade() {
872
872
  ].join("\n"), "agentmemory upgrade");
873
873
  }
874
874
  async function runMcp() {
875
- await import("./standalone-DQrqCL0s.mjs");
875
+ await import("./standalone-awLAlipf.mjs");
876
876
  }
877
877
  async function runImportJsonl() {
878
878
  const VALUE_FLAGS = new Set(["--port", "--tools"]);
@@ -0,0 +1,3 @@
1
+ import { n as getImageRefCount, r as incrementImageRef, t as decrementImageRef } from "./src-IbjZ5iJi.mjs";
2
+
3
+ export { decrementImageRef, incrementImageRef };
@@ -1,3 +1,3 @@
1
- import { a as deleteImage, c as saveImageToDisk, i as IMAGES_DIR, l as touchImage, o as getMaxBytes, s as isManagedImagePath } from "./src-d1vwmuPU.mjs";
1
+ import { a as deleteImage, c as saveImageToDisk, i as IMAGES_DIR, l as touchImage, o as getMaxBytes, s as isManagedImagePath } from "./src-IbjZ5iJi.mjs";
2
2
 
3
3
  export { deleteImage, saveImageToDisk };
package/dist/index.mjs CHANGED
@@ -5755,7 +5755,7 @@ function registerAutoForgetFunction(sdk, kv) {
5755
5755
 
5756
5756
  //#endregion
5757
5757
  //#region src/version.ts
5758
- const VERSION = "0.9.10";
5758
+ const VERSION = "0.9.11";
5759
5759
 
5760
5760
  //#endregion
5761
5761
  //#region src/functions/export-import.ts
@@ -5883,7 +5883,8 @@ function registerExportImportFunction(sdk, kv) {
5883
5883
  "0.9.7",
5884
5884
  "0.9.8",
5885
5885
  "0.9.9",
5886
- "0.9.10"
5886
+ "0.9.10",
5887
+ "0.9.11"
5887
5888
  ]).has(importData.version)) return {
5888
5889
  success: false,
5889
5890
  error: `Unsupported export version: ${importData.version}`