Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codex-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"source": "git-subdir",
"url": "https://github.com/davidrobertson/agentmemory.git",
"path": "./plugin",
"ref": "v0.9.30-codex.1"
"ref": "v0.9.30-codex.2"
},
"policy": {
"installation": "AVAILABLE",
Expand Down
2 changes: 1 addition & 1 deletion .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Persistent memory for Cursor: auto-captures sessions, prompts, and tool use via hooks, recalls with hybrid BM25 + vector + graph search, and exposes 54 memory tools over MCP. Keyless by default, runs entirely on your machine.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import).
- Test files go in `test/` with `.test.ts` extension
- Follow existing patterns in `test/crystallize.test.ts` for function tests

## Current Stats (v0.9.30-codex.1)
## Current Stats (v0.9.30-codex.2)

- 54 MCP tools (8 visible by default, `AGENTMEMORY_TOOLS=all` for all)
- 138 REST endpoints
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

## [Unreleased]

## [0.9.30-codex.2] — 2026-10-10

- Keep hook captures and CLI drain records when the engine returns 404 during worker startup or shutdown. Retry them when the worker registers its routes.

## [0.9.30-codex.1] — 2026-10-10
## [0.9.30] - 2026-10-06

Expand Down Expand Up @@ -262,6 +266,7 @@ Wave release closing several breaking regressions reported against v0.9.26, plus
- `/agentmemory:forget` skill still calls `memory_governance_delete` which only touches `KV.memories` and never observations ([#833](https://github.com/rohitg00/agentmemory/issues/833)). Skill rewrite + new `memory_forget` MCP tool tracked separately.
- `crypto.randomUUID()` global-only on Node <19 ([#715](https://github.com/rohitg00/agentmemory/issues/715)). Drop-in import fix tracked.

[0.9.30-codex.2]: https://github.com/davidrobertson/agentmemory/compare/v0.9.30-codex.1...v0.9.30-codex.2
[0.9.30-codex.1]: https://github.com/davidrobertson/agentmemory/compare/v0.9.30...v0.9.30-codex.1
[0.9.30]: https://github.com/rohitg00/agentmemory/compare/v0.9.29...v0.9.30
[0.9.29]: https://github.com/rohitg00/agentmemory/compare/v0.9.28...v0.9.29
Expand Down
2 changes: 1 addition & 1 deletion deploy/coolify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image

FROM node:22-slim

ARG AGENTMEMORY_VERSION=0.9.30-codex.1
ARG AGENTMEMORY_VERSION=0.9.30-codex.2
ARG III_VERSION=0.22.1
ARG III_SDK_VERSION=0.22.1

Expand Down
2 changes: 1 addition & 1 deletion deploy/coolify/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:
context: .
dockerfile: Dockerfile
args:
AGENTMEMORY_VERSION: "0.9.30-codex.1"
AGENTMEMORY_VERSION: "0.9.30-codex.2"
III_VERSION: "0.22.1"
III_SDK_VERSION: "0.22.1"
restart: unless-stopped
Expand Down
2 changes: 1 addition & 1 deletion deploy/fly/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image

FROM node:22-slim

ARG AGENTMEMORY_VERSION=0.9.30-codex.1
ARG AGENTMEMORY_VERSION=0.9.30-codex.2
ARG III_VERSION=0.22.1
ARG III_SDK_VERSION=0.22.1

Expand Down
2 changes: 1 addition & 1 deletion deploy/railway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image

FROM node:22-slim

ARG AGENTMEMORY_VERSION=0.9.30-codex.1
ARG AGENTMEMORY_VERSION=0.9.30-codex.2
ARG III_VERSION=0.22.1
ARG III_SDK_VERSION=0.22.1

Expand Down
2 changes: 1 addition & 1 deletion deploy/render/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image

FROM node:22-slim

ARG AGENTMEMORY_VERSION=0.9.30-codex.1
ARG AGENTMEMORY_VERSION=0.9.30-codex.2
ARG III_VERSION=0.22.1
ARG III_SDK_VERSION=0.22.1

Expand Down
2 changes: 1 addition & 1 deletion deploy/render/render.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ services:
- key: PORT
value: "3111"
- key: AGENTMEMORY_VERSION
value: "0.9.30-codex.1"
value: "0.9.30-codex.2"
- key: III_VERSION
value: "0.22.1"
- key: III_SDK_VERSION
Expand Down
2 changes: 1 addition & 1 deletion integrations/hermes/plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: agentmemory
version: 0.9.30-codex.1
version: 0.9.30-codex.2
description: "Persistent cross-session memory for Hermes Agent via agentmemory. 95.2% retrieval accuracy on LongMemEval."
author: "Rohit Ghumare"
homepage: "https://github.com/rohitg00/agentmemory"
Expand Down
2 changes: 1 addition & 1 deletion integrations/openclaw/openclaw.plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"kind": "memory",
"name": "agentmemory",
"description": "Persistent cross-session memory for OpenClaw via agentmemory.",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"configSchema": {
"type": "object",
"additionalProperties": false,
Expand Down
2 changes: 1 addition & 1 deletion integrations/openclaw/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"type": "module",
"openclaw": {
"extensions": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agentmemory/agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives",
"type": "module",
"main": "dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions packages/mcp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@agentmemory/mcp",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Standalone MCP server for agentmemory — thin shim that re-exposes @agentmemory/agentmemory's MCP entrypoint",
"type": "module",
"bin": {
Expand Down Expand Up @@ -28,7 +28,7 @@
"homepage": "https://github.com/davidrobertson/agentmemory#readme",
"bugs": "https://github.com/davidrobertson/agentmemory/issues",
"dependencies": {
"@agentmemory/agentmemory": "0.9.30-codex.1"
"@agentmemory/agentmemory": "0.9.30-codex.2"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion plugin/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 54 MCP tools, 17 skills, real-time viewer.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion plugin/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Local persistent memory for coding agents. Recall decisions, resume sessions, learn from corrections, and manage memory through 54 MCP tools and 17 skills. Optional capture through 6 Codex hooks.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion plugin/.devin-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Persistent memory for AI coding agents. Captures sessions, recalls with hybrid BM25 + vector + graph search, and exposes 54 memory tools over MCP. Keyless by default, runs on your machine.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion plugin/dist/standalone.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ function getStandalonePersistPath() {
}
//#endregion
//#region src/version.ts
const VERSION = "0.9.30-codex.1";
const VERSION = "0.9.30-codex.2";
createRequire(import.meta.url);
//#endregion
//#region src/state/schema.ts
Expand Down
2 changes: 1 addition & 1 deletion plugin/opencode/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory-capture",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "OpenCode plugin for agentmemory — full Claude Code hook parity: session lifecycle (create/idle/status/compacted/update/diff/delete/error), messages & prompts (chat.message, message.updated user+assistant, message.removed), tool lifecycle (ToolPart states with timing), part tracking (subtask, step-finish, reasoning, file, patch, compaction, agent, retry), file enrichment pipeline, permissions, task tracking (w/ priority), commands, config & model tracking. 22 hooks, 2 slash commands.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agentmemory",
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 54 MCP tools, 17 skills, real-time viewer.",
"author": {
"name": "Rohit Ghumare",
Expand Down
2 changes: 1 addition & 1 deletion plugin/scripts/_capture.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ function withEventId(body, host, content, options = {}) {
}
function classify(status) {
if (status >= 200 && status < 300) return status === 200 ? "duplicate" : "delivered";
if (status === 408 || status === 429 || status >= 500) return "retry";
if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry";
return "rejected";
}
async function post(body, timeoutMs) {
Expand Down
2 changes: 1 addition & 1 deletion plugin/scripts/plugin-bridge.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync, realpathSync } from "node:fs";
import { homedir } from "node:os";
import { join } from "node:path";
//#region src/version.ts
const VERSION = "0.9.30-codex.1";
const VERSION = "0.9.30-codex.2";
//#endregion
//#region src/secret-store.ts
const SECRET_KEY = "AGENTMEMORY_SECRET";
Expand Down
2 changes: 1 addition & 1 deletion scripts/docs-sync.state.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.9.30-codex.1",
"version": "0.9.30-codex.2",
"facts": {
"mcpTools": [
"54"
Expand Down
3 changes: 2 additions & 1 deletion src/cli/capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ function headers(secret?: string): Record<string, string> {
function classify(status: number): SendOutcome {
if (status === 200) return "duplicate";
if (status >= 200 && status < 300) return "delivered";
if (status === 408 || status === 429 || status >= 500) return "retry";
// The engine returns 404 while the worker is starting or shutting down.
if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry";
return "rejected";
}

Expand Down
2 changes: 1 addition & 1 deletion src/functions/export-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export function registerExportImportFunction(sdk: IIIClient, kv: StateKV): void
const strategy = data.strategy || "merge";
const importData = data.exportData;

const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6", "0.8.7", "0.8.8", "0.8.9", "0.8.10", "0.8.11", "0.8.12", "0.8.13", "0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5", "0.9.6", "0.9.7", "0.9.8", "0.9.9", "0.9.10", "0.9.11", "0.9.12", "0.9.13", "0.9.14", "0.9.15", "0.9.16", "0.9.17", "0.9.18", "0.9.19", "0.9.20", "0.9.21", "0.9.22", "0.9.23", "0.9.24", "0.9.25", "0.9.26", "0.9.27", "0.9.28", "0.9.29", "0.9.28-codex.1", "0.9.28-codex.2", "0.9.29-codex.1", "0.9.30", "0.9.30-codex.1"]);
const supportedVersions = new Set(["0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.7.0", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.7.7", "0.7.9", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.8.6", "0.8.7", "0.8.8", "0.8.9", "0.8.10", "0.8.11", "0.8.12", "0.8.13", "0.9.0", "0.9.1", "0.9.2", "0.9.3", "0.9.4", "0.9.5", "0.9.6", "0.9.7", "0.9.8", "0.9.9", "0.9.10", "0.9.11", "0.9.12", "0.9.13", "0.9.14", "0.9.15", "0.9.16", "0.9.17", "0.9.18", "0.9.19", "0.9.20", "0.9.21", "0.9.22", "0.9.23", "0.9.24", "0.9.25", "0.9.26", "0.9.27", "0.9.28", "0.9.29", "0.9.28-codex.1", "0.9.28-codex.2", "0.9.29-codex.1", "0.9.30", "0.9.30-codex.1", "0.9.30-codex.2"]);
if (!supportedVersions.has(importData.version)) {
return {
success: false,
Expand Down
3 changes: 2 additions & 1 deletion src/hooks/_capture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ export function withEventId(

function classify(status: number): SendOutcome {
if (status >= 200 && status < 300) return status === 200 ? "duplicate" : "delivered";
if (status === 408 || status === 429 || status >= 500) return "retry";
// The engine returns 404 while the worker is starting or shutting down.
if (status === 404 || status === 408 || status === 429 || status >= 500) return "retry";
return "rejected";
}

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ export interface ExportPagination {
}

export interface ExportData {
version: "0.3.0" | "0.4.0" | "0.5.0" | "0.6.0" | "0.6.1" | "0.7.0" | "0.7.2" | "0.7.3" | "0.7.4" | "0.7.5" | "0.7.6" | "0.7.7" | "0.7.9" | "0.8.0" | "0.8.1" | "0.8.2" | "0.8.3" | "0.8.4" | "0.8.5" | "0.8.6" | "0.8.7" | "0.8.8" | "0.8.9" | "0.8.10" | "0.8.11" | "0.8.12" | "0.8.13" | "0.9.0" | "0.9.1" | "0.9.2" | "0.9.3" | "0.9.4" | "0.9.5" | "0.9.6" | "0.9.7" | "0.9.8" | "0.9.9" | "0.9.10" | "0.9.11" | "0.9.12" | "0.9.13" | "0.9.14" | "0.9.15" | "0.9.16" | "0.9.17" | "0.9.18" | "0.9.19" | "0.9.20" | "0.9.21" | "0.9.22" | "0.9.23" | "0.9.24" | "0.9.25" | "0.9.26" | "0.9.27" | "0.9.28" | "0.9.29" | "0.9.28-codex.1" | "0.9.28-codex.2" | "0.9.29-codex.1" | "0.9.30" | "0.9.30-codex.1";
version: "0.3.0" | "0.4.0" | "0.5.0" | "0.6.0" | "0.6.1" | "0.7.0" | "0.7.2" | "0.7.3" | "0.7.4" | "0.7.5" | "0.7.6" | "0.7.7" | "0.7.9" | "0.8.0" | "0.8.1" | "0.8.2" | "0.8.3" | "0.8.4" | "0.8.5" | "0.8.6" | "0.8.7" | "0.8.8" | "0.8.9" | "0.8.10" | "0.8.11" | "0.8.12" | "0.8.13" | "0.9.0" | "0.9.1" | "0.9.2" | "0.9.3" | "0.9.4" | "0.9.5" | "0.9.6" | "0.9.7" | "0.9.8" | "0.9.9" | "0.9.10" | "0.9.11" | "0.9.12" | "0.9.13" | "0.9.14" | "0.9.15" | "0.9.16" | "0.9.17" | "0.9.18" | "0.9.19" | "0.9.20" | "0.9.21" | "0.9.22" | "0.9.23" | "0.9.24" | "0.9.25" | "0.9.26" | "0.9.27" | "0.9.28" | "0.9.29" | "0.9.28-codex.1" | "0.9.28-codex.2" | "0.9.29-codex.1" | "0.9.30" | "0.9.30-codex.1" | "0.9.30-codex.2";
exportedAt: string;
sessions: Session[];
observations: Record<string, CompressedObservation[]>;
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = "0.9.30-codex.1";
export const VERSION = "0.9.30-codex.2";
export const III_PINNED_VERSION = "0.22.1";
27 changes: 27 additions & 0 deletions test/capture-cli-restart.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { mkdtempSync, rmSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, expect, it, vi } from "vitest";
import { runCaptureCommand } from "../src/cli/capture.js";
import { appendSpool, spoolSummary } from "../src/capture/spool.js";

afterEach(() => { vi.unstubAllGlobals(); vi.unstubAllEnvs(); });

it("keeps a CLI drain record on a missing worker route, then delivers it when ready", async () => {
const dir = mkdtempSync(join(tmpdir(), "am-cli-restart-"));
const base = "http://127.0.0.1:39111";
vi.stubEnv("AGENTMEMORY_CAPTURE_SPOOL_DIR", dir);
let status = 404;
vi.stubGlobal("fetch", async (url: string) => new Response("{}", { status: url.endsWith("/observe") ? status : 200 }));
try {
expect(appendSpool(base, "evc_cli_restart_404", { sessionId: "restart-cli", data: { tool_output: "keep me" } }, "unreachable").spooled).toBe(true);
const options = { base, args: ["--drain", "--json"], log: () => {} };
expect(await runCaptureCommand(options)).toBe(0);
expect(spoolSummary(base).records).toBe(1);
status = 201;
expect(await runCaptureCommand(options)).toBe(0);
expect(spoolSummary(base).records).toBe(0);
expect(spoolSummary(base).stats.delivered).toBe(1);
expect(spoolSummary(base).stats.rejected).toBe(0);
} finally { rmSync(dir, { recursive: true, force: true }); }
});
14 changes: 14 additions & 0 deletions test/capture-hook.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,20 @@ describe("hooks capture when the server is unavailable", () => {
expect(spoolLines(dir, port)).toHaveLength(0);
});

it("spools while the engine is reachable but the worker route is absent", async () => {
const dir = mkdtempSync(join(tmpdir(), "am-hook-restart-"));
const received: Array<Record<string, unknown>> = [];
const port = await startServer(404, received);
const result = await runHook("post-tool-use.mjs", toolPayload("worker-restarting", { tool_use_id: "restart-404" }), {
AGENTMEMORY_URL: `http://127.0.0.1:${port}`,
AGENTMEMORY_CAPTURE_SPOOL_DIR: dir,
});
expect(result.exitCode).toBe(0);
expect(spoolLines(dir, port)).toEqual([
expect.objectContaining({ eventId: received[0]!.eventId, body: expect.objectContaining({ sessionId: "ses_hook_capture" }) }),
]);
});

it("keeps every record when many hooks spool at once", async () => {
const dir = mkdtempSync(join(tmpdir(), "am-hook-spool-"));
const port = await closedPort();
Expand Down
Loading