From a7d0b28c922761fb8167b343c4cbe5b29ab1711f Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Thu, 1 Oct 2026 17:03:51 +0530 Subject: [PATCH 01/26] chore: bump version to 0.10.0 Bump every manifest and the export-import contract to 0.10.0: package.json, packages/mcp (and its @agentmemory/agentmemory range to ~0.10.0 so the shim resolves the new release), the Claude, Codex, Cursor, Devin and OpenCode plugin manifests, the hermes and openclaw integrations, src/version.ts, the ExportData.version union and supportedVersions. The deploy templates (fly, railway, render, coolify) now pin AGENTMEMORY_VERSION 0.10.0 with III_VERSION and III_SDK_VERSION 0.22.1, the engine and iii-sdk pair this release is built against. --- .cursor-plugin/plugin.json | 2 +- deploy/coolify/Dockerfile | 8 ++++---- deploy/coolify/docker-compose.yml | 6 +++--- deploy/fly/Dockerfile | 8 ++++---- deploy/railway/Dockerfile | 8 ++++---- deploy/render/Dockerfile | 8 ++++---- deploy/render/render.yaml | 6 +++--- integrations/hermes/plugin.yaml | 2 +- integrations/openclaw/openclaw.plugin.json | 2 +- integrations/openclaw/package.json | 2 +- package.json | 2 +- packages/mcp/package.json | 4 ++-- plugin/.claude-plugin/plugin.json | 2 +- plugin/.codex-plugin/plugin.json | 2 +- plugin/.devin-plugin/plugin.json | 2 +- plugin/opencode/plugin.json | 2 +- plugin/plugin.json | 2 +- src/functions/export-import.ts | 2 +- src/types.ts | 2 +- src/version.ts | 2 +- 20 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 7fe3ea1feb..6931e4b46a 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "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", diff --git a/deploy/coolify/Dockerfile b/deploy/coolify/Dockerfile index c6ac809d8b..5918a2722d 100644 --- a/deploy/coolify/Dockerfile +++ b/deploy/coolify/Dockerfile @@ -1,12 +1,12 @@ -ARG III_VERSION=0.11.2 +ARG III_VERSION=0.22.1 FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.29 -ARG III_VERSION=0.11.2 -ARG III_SDK_VERSION=0.11.2 +ARG AGENTMEMORY_VERSION=0.10.0 +ARG III_VERSION=0.22.1 +ARG III_SDK_VERSION=0.22.1 RUN apt-get update \ && apt-get install -y --no-install-recommends openssl ca-certificates tini gosu curl \ diff --git a/deploy/coolify/docker-compose.yml b/deploy/coolify/docker-compose.yml index b34823dbc6..09f9ba525a 100644 --- a/deploy/coolify/docker-compose.yml +++ b/deploy/coolify/docker-compose.yml @@ -4,9 +4,9 @@ services: context: . dockerfile: Dockerfile args: - AGENTMEMORY_VERSION: "0.9.29" - III_VERSION: "0.11.2" - III_SDK_VERSION: "0.11.2" + AGENTMEMORY_VERSION: "0.10.0" + III_VERSION: "0.22.1" + III_SDK_VERSION: "0.22.1" restart: unless-stopped environment: SERVICE_FQDN_AGENTMEMORY_3111: ${SERVICE_FQDN_AGENTMEMORY_3111} diff --git a/deploy/fly/Dockerfile b/deploy/fly/Dockerfile index 4fa61c4874..2cc9710c63 100644 --- a/deploy/fly/Dockerfile +++ b/deploy/fly/Dockerfile @@ -1,12 +1,12 @@ -ARG III_VERSION=0.11.2 +ARG III_VERSION=0.22.1 FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.29 -ARG III_VERSION=0.11.2 -ARG III_SDK_VERSION=0.11.2 +ARG AGENTMEMORY_VERSION=0.10.0 +ARG III_VERSION=0.22.1 +ARG III_SDK_VERSION=0.22.1 RUN apt-get update \ && apt-get install -y --no-install-recommends openssl ca-certificates tini gosu curl \ diff --git a/deploy/railway/Dockerfile b/deploy/railway/Dockerfile index 4fa61c4874..2cc9710c63 100644 --- a/deploy/railway/Dockerfile +++ b/deploy/railway/Dockerfile @@ -1,12 +1,12 @@ -ARG III_VERSION=0.11.2 +ARG III_VERSION=0.22.1 FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.29 -ARG III_VERSION=0.11.2 -ARG III_SDK_VERSION=0.11.2 +ARG AGENTMEMORY_VERSION=0.10.0 +ARG III_VERSION=0.22.1 +ARG III_SDK_VERSION=0.22.1 RUN apt-get update \ && apt-get install -y --no-install-recommends openssl ca-certificates tini gosu curl \ diff --git a/deploy/render/Dockerfile b/deploy/render/Dockerfile index 4fa61c4874..2cc9710c63 100644 --- a/deploy/render/Dockerfile +++ b/deploy/render/Dockerfile @@ -1,12 +1,12 @@ -ARG III_VERSION=0.11.2 +ARG III_VERSION=0.22.1 FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.9.29 -ARG III_VERSION=0.11.2 -ARG III_SDK_VERSION=0.11.2 +ARG AGENTMEMORY_VERSION=0.10.0 +ARG III_VERSION=0.22.1 +ARG III_SDK_VERSION=0.22.1 RUN apt-get update \ && apt-get install -y --no-install-recommends openssl ca-certificates tini gosu curl \ diff --git a/deploy/render/render.yaml b/deploy/render/render.yaml index d1871d5795..5755274707 100644 --- a/deploy/render/render.yaml +++ b/deploy/render/render.yaml @@ -15,8 +15,8 @@ services: - key: PORT value: "3111" - key: AGENTMEMORY_VERSION - value: "0.9.29" + value: "0.10.0" - key: III_VERSION - value: "0.11.2" + value: "0.22.1" - key: III_SDK_VERSION - value: "0.11.2" + value: "0.22.1" diff --git a/integrations/hermes/plugin.yaml b/integrations/hermes/plugin.yaml index 4d647c8a81..a52d1ee418 100644 --- a/integrations/hermes/plugin.yaml +++ b/integrations/hermes/plugin.yaml @@ -1,5 +1,5 @@ name: agentmemory -version: 0.9.29 +version: 0.10.0 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" diff --git a/integrations/openclaw/openclaw.plugin.json b/integrations/openclaw/openclaw.plugin.json index aa990ccdf5..86c8d167d4 100644 --- a/integrations/openclaw/openclaw.plugin.json +++ b/integrations/openclaw/openclaw.plugin.json @@ -3,7 +3,7 @@ "kind": "memory", "name": "agentmemory", "description": "Persistent cross-session memory for OpenClaw via agentmemory.", - "version": "0.9.29", + "version": "0.10.0", "configSchema": { "type": "object", "additionalProperties": false, diff --git a/integrations/openclaw/package.json b/integrations/openclaw/package.json index 75232379c7..f5d8c98dfc 100644 --- a/integrations/openclaw/package.json +++ b/integrations/openclaw/package.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "type": "module", "openclaw": { "extensions": [ diff --git a/package.json b/package.json index 385cbd4842..cb1e9c0db0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/agentmemory", - "version": "0.9.29", + "version": "0.10.0", "description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives", "type": "module", "main": "dist/index.mjs", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index c88f9c89e5..af0520f881 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/mcp", - "version": "0.9.29", + "version": "0.10.0", "description": "Standalone MCP server for agentmemory — thin shim that re-exposes @agentmemory/agentmemory's MCP entrypoint", "type": "module", "bin": { @@ -28,7 +28,7 @@ "homepage": "https://github.com/rohitg00/agentmemory#readme", "bugs": "https://github.com/rohitg00/agentmemory/issues", "dependencies": { - "@agentmemory/agentmemory": "~0.9.0" + "@agentmemory/agentmemory": "~0.10.0" }, "publishConfig": { "access": "public", diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 52fc792805..e06457512e 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 12 hooks, 54 MCP tools, 8 skills, real-time viewer.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.json index cbcd5731ac..7187f09a58 100644 --- a/plugin/.codex-plugin/plugin.json +++ b/plugin/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "description": "Persistent memory for AI coding agents -- captures tool usage, compresses via LLM, injects context into future sessions. 6 hooks, 54 MCP tools, 8 skills, real-time viewer.", "author": { "name": "Rohit Ghumare", diff --git a/plugin/.devin-plugin/plugin.json b/plugin/.devin-plugin/plugin.json index ce59219744..a4d041d0fe 100644 --- a/plugin/.devin-plugin/plugin.json +++ b/plugin/.devin-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "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", diff --git a/plugin/opencode/plugin.json b/plugin/opencode/plugin.json index cf06cee5a2..01b8303516 100644 --- a/plugin/opencode/plugin.json +++ b/plugin/opencode/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory-capture", - "version": "0.9.29", + "version": "0.10.0", "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", diff --git a/plugin/plugin.json b/plugin/plugin.json index 09ab9ba204..42d17df9cf 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.9.29", + "version": "0.10.0", "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", diff --git a/src/functions/export-import.ts b/src/functions/export-import.ts index 2a14ea2737..ad315af13a 100644 --- a/src/functions/export-import.ts +++ b/src/functions/export-import.ts @@ -225,7 +225,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"]); + 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.10.0"]); if (!supportedVersions.has(importData.version)) { return { success: false, diff --git a/src/types.ts b/src/types.ts index 2c46ec4e52..db854d7d0d 100644 --- a/src/types.ts +++ b/src/types.ts @@ -350,7 +350,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"; + 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.10.0"; exportedAt: string; sessions: Session[]; observations: Record; diff --git a/src/version.ts b/src/version.ts index 2d78ca2d9d..832b0d3573 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = "0.9.29"; +export const VERSION = "0.10.0"; export const III_PINNED_VERSION = "0.22.1"; From c067dc13b79c16e4736ce66e3c499a5f2def11fc Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Fri, 25 Sep 2026 09:48:07 +0530 Subject: [PATCH 02/26] ci: sync documented numbers and versions automatically Counts in the READMEs, the 11 translations, AGENTS.md, plugin manifests and stat badges were kept by hand and had drifted: most translations still said 124 REST endpoints, the test counts ranged from 596 to 1,674 against about 1,760, and the OpenClaw README said 43 MCP tools. scripts/docs-sync.ts computes each fact from the source (MCP tools, core and local-fallback tools, REST endpoints, skills, hooks, tests, iii functions, source files, lines of code, KV scopes) and rewrites the previously synced value wherever it is followed by that fact's noun in any of the documented languages, so deliberate subset numbers are left alone. scripts/docs-sync.state.json holds the last synced values. A leftover report names any old value it could not place. A version bump in package.json carries into src/version.ts, the export format unions, every manifest that shared the old version, the deploy templates, the AGENTS.md stats heading and CHANGELOG.md, where the Unreleased section becomes the new release with its compare link. npm run docs:sync applies it and npm run docs:check fails on drift; CI runs the check. The Docs sync workflow runs the sync on each pull request and commits the result to the branch, then re-dispatches CI because pushes made with the workflow token start no runs. Fork pull requests get a failing check with instructions. A drift on main opens a sync pull request when a DOCS_SYNC_TOKEN secret is configured and fails with instructions otherwise. This commit also applies the first sync. --- .github/workflows/ci.yml | 1 + .github/workflows/docs-sync.yml | 82 ++++++++ AGENTS.md | 30 +-- README.md | 6 +- READMEs/README.de-DE.md | 8 +- READMEs/README.es-ES.md | 8 +- READMEs/README.fr-FR.md | 8 +- READMEs/README.hi-IN.md | 8 +- READMEs/README.ja-JP.md | 8 +- READMEs/README.ko-KR.md | 8 +- READMEs/README.pt-BR.md | 8 +- READMEs/README.ru-RU.md | 8 +- READMEs/README.tr-TR.md | 8 +- READMEs/README.zh-CN.md | 8 +- READMEs/README.zh-TW.md | 8 +- assets/tags/light/stat-tests.svg | 2 +- assets/tags/stat-tests.svg | 2 +- integrations/openclaw/README.md | 6 +- package.json | 2 + scripts/docs-sync.state.json | 38 ++++ scripts/docs-sync.ts | 319 +++++++++++++++++++++++++++++++ 21 files changed, 504 insertions(+), 72 deletions(-) create mode 100644 .github/workflows/docs-sync.yml create mode 100644 scripts/docs-sync.state.json create mode 100644 scripts/docs-sync.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cbedfaa6df..f91e026e1d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,4 +69,5 @@ jobs: - run: npm install --legacy-peer-deps --no-audit --no-fund - run: npm run build - run: npm run skills:check + - run: npm run docs:check - run: npm test diff --git a/.github/workflows/docs-sync.yml b/.github/workflows/docs-sync.yml new file mode 100644 index 0000000000..f411b87527 --- /dev/null +++ b/.github/workflows/docs-sync.yml @@ -0,0 +1,82 @@ +name: Docs sync + +on: + pull_request: + branches: [main] + push: + branches: [main] + workflow_dispatch: + +concurrency: + group: docs-sync-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: write + actions: write + pull-requests: write + +jobs: + sync: + runs-on: ubuntu-latest + env: + SAME_REPO: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} + SYNC_TOKEN: ${{ secrets.DOCS_SYNC_TOKEN }} + steps: + - uses: actions/checkout@v6 + with: + ref: ${{ github.head_ref || github.ref }} + token: ${{ secrets.DOCS_SYNC_TOKEN || github.token }} + persist-credentials: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} + - uses: actions/setup-node@v6 + with: + node-version: 22 + - run: npm install --legacy-peer-deps --no-audit --no-fund + - name: Sync documented numbers and versions + run: npm run docs:sync + - name: Detect changes + id: diff + run: | + if git diff --quiet; then + echo "changed=false" >> "$GITHUB_OUTPUT" + else + echo "changed=true" >> "$GITHUB_OUTPUT" + git diff --stat + fi + - name: Fork pull request + if: steps.diff.outputs.changed == 'true' && env.SAME_REPO != 'true' + run: | + echo "::error::Documented numbers or versions are out of date. Run 'npm run docs:sync' and commit the result." + exit 1 + - name: Commit to the pull request branch + if: steps.diff.outputs.changed == 'true' && env.SAME_REPO == 'true' && github.event_name == 'pull_request' + env: + GH_TOKEN: ${{ github.token }} + BRANCH: ${{ github.head_ref }} + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git commit -am "chore(docs): sync documented numbers and versions" + git push origin "HEAD:$BRANCH" + if [ -z "$SYNC_TOKEN" ]; then + gh workflow run ci.yml --ref "$BRANCH" + fi + - name: Open a sync pull request from main + if: steps.diff.outputs.changed == 'true' && github.event_name != 'pull_request' + env: + GH_TOKEN: ${{ secrets.DOCS_SYNC_TOKEN }} + run: | + if [ -z "$SYNC_TOKEN" ]; then + echo "::error::main has out-of-date documented numbers. Run 'npm run docs:sync' on a branch and open a PR, or add a DOCS_SYNC_TOKEN secret so this job opens one." + exit 1 + fi + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git switch -c chore/docs-sync + git commit -am "chore(docs): sync documented numbers and versions" + git push --force origin chore/docs-sync + if [ -z "$(gh pr list --head chore/docs-sync --state open --json number --jq '.[].number')" ]; then + gh pr create --base main --head chore/docs-sync \ + --title "chore(docs): sync documented numbers and versions" \ + --body "Automated by the Docs sync workflow after a merge to main changed a documented count or version." + fi diff --git a/AGENTS.md b/AGENTS.md index e65ccef47d..1c4d5b467f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,29 +11,19 @@ agentmemory is a persistent memory system for AI coding agents, built on iii-eng ## Consistency Rules -**When adding or removing MCP tools, you MUST update ALL of the following:** +**Documented numbers and versions are synced by `npm run docs:sync`.** It computes MCP tool counts (all, core, local fallback), REST endpoints, skills, hooks, tests, iii functions, source files, lines of code and KV scopes from the source, and rewrites them in README.md, the translated READMEs, AGENTS.md, INSTALL_FOR_AGENTS.md, plugin manifests, integration READMEs, the stat badges and the `src/index.ts` banner. The last synced values live in `scripts/docs-sync.state.json`. The Docs sync workflow runs it on every pull request and commits the result to the branch, and CI fails on drift with `npm run docs:check`. When it reports `check left in `, that phrasing needs a noun added to the fact in `scripts/docs-sync.ts`. + +**When adding or removing MCP tools, update:** 1. `src/mcp/tools-registry.ts` — tool definition + `getAllTools()` array 2. `src/mcp/server.ts` — handler case in the `mcp::tools::call` switch 3. `src/triggers/api.ts` — REST endpoint registration -4. `src/index.ts` — function registration + endpoint count in the log line +4. `src/index.ts` — function registration 5. `test/mcp-standalone.test.ts` — tool count assertion -6. `README.md` — tool counts (search for "MCP tools") -7. `plugin/.claude-plugin/plugin.json` — tool count in description -8. `plugin/plugin.json` and `plugin/.mcp.copilot.json` (when present) — tool count or MCP exposure -**When adding REST endpoints, you MUST update:** +**When adding REST endpoints, update:** 1. `src/triggers/api.ts` — endpoint registration -2. `src/index.ts` — endpoint count in the log line -3. `README.md` — endpoint count (search for "REST endpoints" and "endpoints on port") - -**When bumping version, you MUST update ALL of the following:** -1. `package.json` — version field -2. `src/version.ts` — VERSION constant and type union -3. `src/types.ts` — ExportData version union -4. `src/functions/export-import.ts` — supportedVersions set -5. `test/export-import.test.ts` — version assertion -6. `plugin/.claude-plugin/plugin.json` — version field -7. `plugin/plugin.json` (when present) — version field + +**When bumping version, change only `package.json`.** `npm run docs:sync` carries the new version into `src/version.ts`, the `src/types.ts` ExportData union, the `supportedVersions` set in `src/functions/export-import.ts`, every plugin and package manifest that shared the old version, the deploy templates, the AGENTS.md stats heading, and CHANGELOG.md (the Unreleased section becomes the new version with today's date, plus its compare link). **When adding new KV scopes:** 1. `src/state/schema.ts` — add to the KV object @@ -111,7 +101,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). ## Testing -- All tests must pass before PR: `npm test` (1,596+ tests) +- All tests must pass before PR: `npm test` (1,700+ tests) - Mock pattern: `vi.mock("iii-sdk")` with mock `sdk.trigger`, `kv.get/set/list` - Test files go in `test/` with `.test.ts` extension - Follow existing patterns in `test/crystallize.test.ts` for function tests @@ -122,5 +112,5 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). - 135 REST endpoints - 6 MCP resources, 3 MCP prompts - 12 hooks, 17 skills -- 260+ iii functions -- 1,596+ tests +- 288+ iii functions +- 1,700+ tests diff --git a/README.md b/README.md index 4fa80f5eeb..4a3765ae1e 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1362,7 +1362,7 @@ fi | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**184 source files · ~42,200 LOC · 1,674 tests · 264 functions · 50 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. +**192 source files · ~44,000 LOC · 1,700+ tests · 288 functions · 53 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. --- @@ -1721,7 +1721,7 @@ curl -X POST http://localhost:3111/agentmemory/graph/compact -H "Content-Type: a ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.de-DE.md b/READMEs/README.de-DE.md index 02631d18af..553e2f1395 100644 --- a/READMEs/README.de-DE.md +++ b/READMEs/README.de-DE.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1227,7 +1227,7 @@ Volle Registry: [workers.iii.dev](https://workers.iii.dev). Jeder Worker dort ko | Prometheus / Grafana | iii OTEL + Health-Monitor | | Eigene Plugin-Systeme | `iii worker add ` | -**182 Quelldateien · ~41.600 LOC · 1.674 Tests · 264 Funktionen · 50 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. +**192 Quelldateien · ~44.000 LOC · 1.700+ Tests · 288 Funktionen · 53 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-124 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers. +131 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers.
Wichtige Endpunkte @@ -1560,7 +1560,7 @@ Volle Endpunktliste: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.es-ES.md b/READMEs/README.es-ES.md index a01a1618c1..6568991dbc 100644 --- a/READMEs/README.es-ES.md +++ b/READMEs/README.es-ES.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1220,7 +1220,7 @@ Registro completo: [workers.iii.dev](https://workers.iii.dev). Cada worker allí | Prometheus / Grafana | iii OTEL + monitor de salud | | Sistemas de plugins propios | `iii worker add ` | -**182 ficheros de código · ~41.600 LOC · 1.674 tests · 264 funciones · 50 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. +**192 ficheros de código · ~44.000 LOC · 1.700+ tests · 288 funciones · 53 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. --- @@ -1519,7 +1519,7 @@ Crea `~/.agentmemory/.env`:

API

-124 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers. +131 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers.
Endpoints principales @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.fr-FR.md b/READMEs/README.fr-FR.md index 7261aea409..c7de4acf8e 100644 --- a/READMEs/README.fr-FR.md +++ b/READMEs/README.fr-FR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1227,7 +1227,7 @@ Registre complet : [workers.iii.dev](https://workers.iii.dev). Chaque worker là | Prometheus / Grafana | iii OTEL + moniteur de santé | | Systèmes de plugins personnalisés | `iii worker add ` | -**182 fichiers sources · ~41 600 LOC · 1 619 tests · 264 fonctions · 50 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. +**192 fichiers sources · ~44 000 LOC · 1 700+ tests · 288 fonctions · 53 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. --- @@ -1526,7 +1526,7 @@ Créez `~/.agentmemory/.env` :

API

-124 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs. +131 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs.
Endpoints clés @@ -1560,7 +1560,7 @@ Liste complète des endpoints : [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.hi-IN.md b/READMEs/README.hi-IN.md index aa959dd3f4..b4412b1f3b 100644 --- a/READMEs/README.hi-IN.md +++ b/READMEs/README.hi-IN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1209,7 +1209,7 @@ Full registry: [workers.iii.dev](https://workers.iii.dev)। वहाँ हर | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**184 source files · ~42,200 LOC · 1,674 tests · 264 functions · 50 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। +**192 source files · ~44,000 LOC · 1,700+ tests · 288 functions · 53 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-Port `3111` पर 124 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं। +Port `3111` पर 131 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं।
मुख्य endpoints @@ -1542,7 +1542,7 @@ Full endpoint list: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (running services की आवश्यकता है) ``` diff --git a/READMEs/README.ja-JP.md b/READMEs/README.ja-JP.md index 0badfa5c99..f19559382f 100644 --- a/READMEs/README.ja-JP.md +++ b/READMEs/README.ja-JP.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1230,7 +1230,7 @@ iii worker add mcp # agentmemory MCP の横に汎用 MCP ホス | Prometheus / Grafana | iii OTEL + ヘルスモニタ | | カスタムプラグインシステム | `iii worker add ` | -**182 ソースファイル · ~41,600 LOC · 1,619 テスト · 264 functions · 50 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 +**192 ソースファイル · ~44,000 LOC · 1,700+ テスト · 288 functions · 53 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 --- @@ -1529,7 +1529,7 @@ CONSOLIDATION_ENABLED=true

API

-ポート `3111` 上の 124 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。 +ポート `3111` 上の 131 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。
主要エンドポイント @@ -1563,7 +1563,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # ホットリロード npm run build # 本番ビルド -npm test # 1,619 テスト +npm test # 1,700+ テスト npm run test:integration # API テスト(サービス起動が必要) ``` diff --git a/READMEs/README.ko-KR.md b/READMEs/README.ko-KR.md index 1c3ae696ae..a526c6bc8b 100644 --- a/READMEs/README.ko-KR.md +++ b/READMEs/README.ko-KR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1209,7 +1209,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + 헬스 모니터 | | 사용자 정의 플러그인 시스템 | `iii worker add ` | -**182개 소스 파일 · ~41,600 LOC · 1,674 tests · 264개 함수 · 50개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. +**192개 소스 파일 · ~44,000 LOC · 1,700+ tests · 288개 함수 · 53개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` 포트의 124개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다. +`3111` 포트의 131개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다.
주요 엔드포인트 @@ -1542,7 +1542,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.pt-BR.md b/READMEs/README.pt-BR.md index 0dc6643d57..a999604c07 100644 --- a/READMEs/README.pt-BR.md +++ b/READMEs/README.pt-BR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1220,7 +1220,7 @@ Registry completo: [workers.iii.dev](https://workers.iii.dev). Todo worker lá s | Prometheus / Grafana | iii OTEL + monitor de saúde | | Sistemas de plugin customizados | `iii worker add ` | -**182 arquivos de código · ~41.600 LOC · 1.674 tests · 264 funções · 50 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. +**192 arquivos de código · ~44.000 LOC · 1.700+ tests · 288 funções · 53 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. --- @@ -1519,7 +1519,7 @@ Crie `~/.agentmemory/.env`:

API

-124 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers. +131 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers.
Endpoints principais @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.ru-RU.md b/READMEs/README.ru-RU.md index f41b0207b7..9053e0bc73 100644 --- a/READMEs/README.ru-RU.md +++ b/READMEs/README.ru-RU.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1227,7 +1227,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + монитор состояния | | Самописные плагинные системы | `iii worker add ` | -**182 исходных файла · ~41 600 LOC · 1 619 тестов · 264 функции · 50 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. +**192 исходных файла · ~44 000 LOC · 1 700+ тестов · 288 функции · 53 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-124 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах. +131 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах.
Ключевые эндпоинты @@ -1560,7 +1560,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.tr-TR.md b/READMEs/README.tr-TR.md index ae7923d597..340bfc8477 100644 --- a/READMEs/README.tr-TR.md +++ b/READMEs/README.tr-TR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1229,7 +1229,7 @@ Tam kayıt defteri: [workers.iii.dev](https://workers.iii.dev). Oradaki her work | Prometheus / Grafana | iii OTEL + sağlık monitörü | | Özel eklenti sistemleri | `iii worker add ` | -**182 kaynak dosya · ~41,600 LOC · 1,619 test · 264 fonksiyon · 50 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. +**192 kaynak dosya · ~44,000 LOC · 1,700+ test · 288 fonksiyon · 53 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. --- @@ -1528,7 +1528,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` portunda 124 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir. +`3111` portunda 131 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir.
Önemli endpoint'ler @@ -1562,7 +1562,7 @@ Tam endpoint listesi: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,674 tests +npm test # 1,700+ tests npm run test:integration # API testleri (çalışan servisler gerektirir) ``` diff --git a/READMEs/README.zh-CN.md b/READMEs/README.zh-CN.md index 7f7c8a03f2..b9fdb173a8 100644 --- a/READMEs/README.zh-CN.md +++ b/READMEs/README.zh-CN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁开通用 MCP | Prometheus / Grafana | iii OTEL + 健康监控 | | 自定义插件系统 | `iii worker add ` | -**182 个源文件 · ~41,600 行代码 · 1,619 个测试 · 264 个函数 · 50 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 +**192 个源文件 · ~44,000 行代码 · 1,700+ 个测试 · 288 个函数 · 53 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-端口 `3111` 上的 124 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。 +端口 `3111` 上的 131 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。
关键端点 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 热重载 npm run build # 生产构建 -npm test # 1,619 测试 +npm test # 1,700+ 测试 npm run test:integration # API 测试(需要服务运行中) ``` diff --git a/READMEs/README.zh-TW.md b/READMEs/README.zh-TW.md index bf7362d354..f99bbe3ee8 100644 --- a/READMEs/README.zh-TW.md +++ b/READMEs/README.zh-TW.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,674+ tests passing + 1,700+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁開設通用 MCP | Prometheus / Grafana | iii OTEL + 健康監控 | | 自訂外掛系統 | `iii worker add ` | -**182 個原始檔 · ~41,600 行程式碼 · 1,619 測試 · 264 個函式 · 50 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 +**192 個原始檔 · ~44,000 行程式碼 · 1,700+ 測試 · 288 個函式 · 53 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-連接埠 `3111` 上的 124 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。 +連接埠 `3111` 上的 131 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。
關鍵端點 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 熱重新載入 npm run build # 生產建置 -npm test # 1,619 測試 +npm test # 1,700+ 測試 npm run test:integration # API 測試(需要服務執行中) ``` diff --git a/assets/tags/light/stat-tests.svg b/assets/tags/light/stat-tests.svg index f4675bd97a..6fea766162 100644 --- a/assets/tags/light/stat-tests.svg +++ b/assets/tags/light/stat-tests.svg @@ -1,5 +1,5 @@ - 1648+ + 1700+ TESTS PASSING diff --git a/assets/tags/stat-tests.svg b/assets/tags/stat-tests.svg index a7599939cd..befec0c4f4 100644 --- a/assets/tags/stat-tests.svg +++ b/assets/tags/stat-tests.svg @@ -1,5 +1,5 @@ - 1648+ + 1700+ TESTS PASSING diff --git a/integrations/openclaw/README.md b/integrations/openclaw/README.md index 29c3a682eb..60f1d9d855 100644 --- a/integrations/openclaw/README.md +++ b/integrations/openclaw/README.md @@ -13,7 +13,7 @@

- 43 MCP tools + 54 MCP tools OpenClaw memory plugin 95.2% R@5 Self-hosted @@ -29,7 +29,7 @@ ```text Install agentmemory for OpenClaw. Run `npx @agentmemory/agentmemory` in a separate terminal to start the memory server on localhost:3111. -For zero-code setup, add this MCP server so OpenClaw gets all 43 memory tools: +For zero-code setup, add this MCP server so OpenClaw gets all 54 memory tools: { "mcpServers": { @@ -88,7 +88,7 @@ Then add to your OpenClaw MCP config: } ``` -OpenClaw now has access to all 43 MCP tools including `memory_recall`, `memory_save`, `memory_smart_search`, `memory_timeline`, `memory_profile`, and more. +OpenClaw now has access to all 54 MCP tools including `memory_recall`, `memory_save`, `memory_smart_search`, `memory_timeline`, `memory_profile`, and more. ## Option 2: OpenClaw memory plugin (deeper integration) diff --git a/package.json b/package.json index cb1e9c0db0..46c2c58946 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,8 @@ "test:all": "vitest run", "skills:gen": "tsx scripts/skills/generate.ts", "skills:check": "tsx scripts/skills/generate.ts --check && tsx scripts/skills/check.ts", + "docs:sync": "tsx scripts/docs-sync.ts", + "docs:check": "tsx scripts/docs-sync.ts --check", "bench:load": "node --import tsx benchmark/load-100k.ts", "eval:longmemeval": "tsx eval/runner/longmemeval.ts", "eval:coding-life": "tsx eval/runner/coding-life.ts" diff --git a/scripts/docs-sync.state.json b/scripts/docs-sync.state.json new file mode 100644 index 0000000000..12dcdffa5a --- /dev/null +++ b/scripts/docs-sync.state.json @@ -0,0 +1,38 @@ +{ + "version": "0.9.29", + "facts": { + "mcpTools": [ + "54" + ], + "coreTools": [ + "8" + ], + "fallbackTools": [ + "7" + ], + "restEndpoints": [ + "131" + ], + "skills": [ + "17" + ], + "hooks": [ + "12" + ], + "tests": [ + "1700+" + ], + "functions": [ + "288" + ], + "sourceFiles": [ + "192" + ], + "loc": [ + "44000" + ], + "kvScopes": [ + "53" + ] + } +} diff --git a/scripts/docs-sync.ts b/scripts/docs-sync.ts new file mode 100644 index 0000000000..57d2b248b0 --- /dev/null +++ b/scripts/docs-sync.ts @@ -0,0 +1,319 @@ +import { execFileSync } from "node:child_process"; +import { readFileSync, writeFileSync } from "node:fs"; +import { join } from "node:path"; +import { ESSENTIAL_TOOLS, getAllTools } from "../src/mcp/tools-registry.js"; + +const ROOT = join(import.meta.dirname, ".."); +const STATE_PATH = "scripts/docs-sync.state.json"; +const CHECK = process.argv.includes("--check"); +const REPO_URL = "https://github.com/rohitg00/agentmemory"; + +type State = { version: string; facts: Record }; + +interface Fact { + key: string; + label: string; + value: () => string | null; + nouns: string[]; + before?: string; + badge?: string; +} + +function read(path: string): string { + return readFileSync(join(ROOT, path), "utf-8"); +} + +function trackedFiles(): string[] { + return execFileSync("git", ["ls-files"], { cwd: ROOT, encoding: "utf-8" }).split("\n").filter(Boolean); +} + +function countMatches(path: string, pattern: RegExp): number { + return read(path).match(pattern)?.length ?? 0; +} + +function floorTo(n: number, step: number): number { + return Math.floor(n / step) * step; +} + +function countHookTypes(): number { + const union = read("src/types.ts").match(/export type HookType\s*=([\s\S]*?);/); + return union ? union[1].split("|").filter((s) => /^\s*["'`]/.test(s)).length : 0; +} + +function countKvScopes(): number { + const src = read("src/state/schema.ts"); + const body = src.slice(src.indexOf("export const KV = {")); + return (body.slice(0, body.indexOf("\n};")).match(/^ {2}\w+:/gm) ?? []).length; +} + +function countFallbackTools(): number { + const src = read("src/mcp/standalone.ts"); + const body = src.slice(src.indexOf("const IMPLEMENTED_TOOLS = new Set([")); + return (body.slice(0, body.indexOf("]);")).match(/"memory_\w+"/g) ?? []).length; +} + +function sourceFiles(): string[] { + return trackedFiles().filter((f) => f.startsWith("src/") && f.endsWith(".ts")); +} + +function countTests(): number | null { + try { + const out = execFileSync( + process.execPath, + [join(ROOT, "node_modules/vitest/vitest.mjs"), "list", "--json", "--exclude", "test/integration.test.ts"], + { cwd: ROOT, encoding: "utf-8", maxBuffer: 64 * 1024 * 1024, stdio: ["ignore", "pipe", "ignore"] }, + ); + return (JSON.parse(out) as unknown[]).length; + } catch { + return null; + } +} + +const TOOL_NOUNS = [ + "MCP tools", "MCP-Tools", "memory tools", "tools", "tool", "outils", "herramientas", "ferramentas", + "Werkzeuge", "инструмент", "ツール", "个工具", "個工具", "工具", "개의 도구", "개 도구", "araç", "टूल", +]; + +const FACTS: Fact[] = [ + { + key: "mcpTools", + label: "MCP tools", + value: () => String(getAllTools().length), + nouns: [...TOOL_NOUNS, "个", "個", "개", "'ü"], + badge: "stat-tools.svg", + }, + { + key: "coreTools", + label: "core tools", + value: () => String(ESSENTIAL_TOOLS.size), + nouns: ["core tools", "visible by default", "个必备工具", ...TOOL_NOUNS], + before: "(?:\"core\" \\(|core\\) \\(|AGENTMEMORY_TOOLS=core`[^\\n]{0,40}?|lean |The |\\()", + }, + { + key: "fallbackTools", + label: "local fallback tools", + value: () => String(countFallbackTools()), + nouns: [...TOOL_NOUNS, "个工具", "-Tool"], + }, + { + key: "restEndpoints", + label: "REST endpoints", + value: () => String(countMatches("src/triggers/api.ts", /api_path:\s*["`]/g)), + nouns: [ + "REST endpoints", "REST API endpoints", "endpoints", "endpoint", "Endpunkte", "эндпоинт", + "个端点", "個端點", "개 엔드포인트", "개의 엔드포인트", "エンドポイント", "uç nokta", "एंडपॉइंट", + ], + }, + { + key: "skills", + label: "skills", + value: () => String(trackedFiles().filter((f) => /^plugin\/skills\/[^/_][^/]*\/SKILL\.md$/.test(f)).length), + nouns: ["native skills", "skills", "skill", "SKILL", "個の skills", "個 skills", "個 Skills", "개의 skills", "개 skills", "навык"], + }, + { + key: "hooks", + label: "hooks", + value: () => String(countHookTypes()), + nouns: [ + "auto hooks", "hooks", "hook", "-hook", "scripts de hooks", "Hook-Skripte", "хук", "скриптов хуков", + "フック", "훅", + ], + badge: "stat-hooks.svg", + }, + { + key: "tests", + label: "tests", + value: () => { + const n = countTests(); + return n === null ? null : `${floorTo(n, 100)}+`; + }, + nouns: ["tests passing", "tests", "Tests", "test", "个测试", "個測試", "testes", "pruebas", "тест", "テスト", "测试", "測試", "테스트"], + badge: "stat-tests.svg", + }, + { + key: "functions", + label: "iii functions", + value: () => String(sourceFiles().reduce((n, f) => n + (read(f).match(/registerFunction\(/g)?.length ?? 0), 0)), + nouns: ["iii functions", "functions", "funciones", "funções", "fonctions", "Funktionen", "функци", "個函式", "个函数", "개 함수", "개의 함수", "fonksiyon"], + }, + { + key: "sourceFiles", + label: "source files", + value: () => String(sourceFiles().length), + nouns: ["source files", "fichiers sources", "ficheros de código", "arquivos de código", "archivos fuente", "arquivos-fonte", "arquivos fonte", "fichiers source", "Quelldateien", "исходных файл", "個原始檔", "个源文件", "개 소스 파일", "개의 소스 파일", "ソースファイル", "kaynak dosya"], + }, + { + key: "loc", + label: "lines of code", + value: () => String(floorTo(sourceFiles().reduce((n, f) => n + read(f).split("\n").length, 0), 1000)), + nouns: ["LOC", "行程式碼", "行代码", "行のコード"], + before: "~", + }, + { + key: "kvScopes", + label: "KV scopes", + value: () => String(countKvScopes()), + nouns: ["KV scopes", "KV-Scopes", "KV scope", "KV-scope", "scopes KV", "scopes de KV", "escopos KV", "областей KV", "個 KV", "个 KV", "개 KV", "KV スコープ", "KV kapsam"], + }, +]; + +const EXCLUDED = [ + /^CHANGELOG\.md$/, + /^test\//, + /^benchmark\//, + /^docs\/benchmarks\//, + /^eval\//, + /^website\/lib\/generated-meta\.json$/, + /(^|\/)package-lock\.json$/, + /^scripts\/docs-sync/, +]; +const TEXT_FILE = /\.(md|mdx|json|ts|tsx|mjs|yml|yaml|html)$/; + +function escapeRegex(s: string): string { + return s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); +} + +function numberPattern(display: string): string { + const digits = display.replace(/\D/g, ""); + const groups: string[] = []; + for (let end = digits.length; end > 0; end -= 3) groups.unshift(digits.slice(Math.max(0, end - 3), end)); + return groups.join("[,.\\u00a0\\u202f ]?"); +} + +function formatLike(matched: string, next: string): string { + const separator = matched.match(/\d([,.   ])\d{3}(?!\d)/)?.[1]; + const digits = next.replace(/\D/g, ""); + if (!separator || digits.length < 4) return digits; + return digits.replace(/\B(?=(\d{3})+(?!\d))/g, separator); +} + +function factRegex(fact: Fact, old: string): RegExp { + const nouns = [...fact.nouns].sort((a, b) => b.length - a.length).map(escapeRegex).join("|"); + const before = fact.before ? `(?<=${fact.before})` : ""; + return new RegExp( + `${before}(? { + const formatted = formatLike(num, next); + return next.endsWith("+") ? `${formatted}+` : `${formatted}${plus}`; + }); + if (fact.badge) { + out = out.replace(new RegExp(`>${escapeRegex(old)}\\+?<`, "g"), `>${next}<`); + } + } + return out; +} + +const VERSION_FILES: Array<{ file: RegExp; pattern: (v: string) => RegExp; replace: (v: string) => string }> = [ + { file: /(^|\/)(package|plugin|openclaw\.plugin)\.json$/, pattern: (v) => new RegExp(`("version":\\s*")${escapeRegex(v)}(")`), replace: (v) => `$1${v}$2` }, + { file: /^integrations\/hermes\/plugin\.yaml$/, pattern: (v) => new RegExp(`^(version:\\s*)${escapeRegex(v)}$`, "m"), replace: (v) => `$1${v}` }, + { file: /^deploy\/.*(Dockerfile|\.ya?ml)$/, pattern: (v) => new RegExp(`(AGENTMEMORY_VERSION[=:]\\s*"?|value:\\s*")${escapeRegex(v)}\\b`, "g"), replace: (v) => `$1${v}` }, + { file: /^src\/version\.ts$/, pattern: (v) => new RegExp(`(VERSION = ")${escapeRegex(v)}(")`), replace: (v) => `$1${v}$2` }, + { file: /^AGENTS\.md$/, pattern: (v) => new RegExp(`(## Current Stats \\(v)${escapeRegex(v)}(\\))`), replace: (v) => `$1${v}$2` }, +]; + +function syncVersion(files: Map, from: string, to: string): void { + for (const [path, text] of files) { + const rule = VERSION_FILES.find((r) => r.file.test(path)); + if (rule) files.set(path, text.replace(rule.pattern(from), rule.replace(to))); + } + const types = files.get("src/types.ts"); + if (types && !types.includes(`"${to}"`)) { + files.set("src/types.ts", types.replace(new RegExp(`(version: [^\\n]*"${escapeRegex(from)}")`), `$1 | "${to}"`)); + } + const exportImport = files.get("src/functions/export-import.ts"); + if (exportImport && !exportImport.includes(`"${to}"`)) { + files.set( + "src/functions/export-import.ts", + exportImport.replace(new RegExp(`(supportedVersions = new Set\\(\\[[^\\]]*"${escapeRegex(from)}")`), `$1, "${to}"`), + ); + } + const changelog = files.get("CHANGELOG.md"); + if (changelog && !changelog.includes(`## [${to}]`)) { + const date = new Date().toISOString().slice(0, 10); + let next = changelog.replace(/^## \[Unreleased\]\s*$/m, `## [Unreleased]\n\n## [${to}] — ${date}`); + next = next.replace(/^(\[[0-9][^\]]*\]: )/m, `[${to}]: ${REPO_URL}/compare/v${from}...v${to}\n$1`); + files.set("CHANGELOG.md", next); + } +} + +function main(): void { + const state = JSON.parse(read(STATE_PATH)) as State; + const paths = trackedFiles().filter((f) => (TEXT_FILE.test(f) || /Dockerfile$/.test(f) || /stat-[a-z]+\.svg$/.test(f)) && !EXCLUDED.some((r) => r.test(f))); + const files = new Map(paths.map((p) => [p, read(p)] as const)); + const original = new Map(files); + const nextState: State = { version: state.version, facts: { ...state.facts } }; + const report: string[] = []; + + const version = (JSON.parse(read("package.json")) as { version: string }).version; + if (version !== state.version) { + for (const extra of ["src/types.ts", "src/functions/export-import.ts", "CHANGELOG.md"]) { + if (!files.has(extra)) files.set(extra, read(extra)); + if (!original.has(extra)) original.set(extra, read(extra)); + } + syncVersion(files, state.version, version); + report.push(`version: ${state.version} -> ${version}`); + nextState.version = version; + } + + for (const fact of FACTS) { + const next = fact.value(); + if (next === null) { + report.push(`${fact.label}: skipped (could not compute)`); + continue; + } + const olds = state.facts[fact.key] ?? []; + if (olds.length === 1 && olds[0] === next) continue; + for (const [path, text] of files) { + if (fact.badge && path.endsWith(".svg") && !path.endsWith(fact.badge)) continue; + if (!fact.badge && path.endsWith(".svg")) continue; + files.set(path, replaceFact(text, fact, olds, next)); + } + report.push(`${fact.label}: ${olds.join(", ")} -> ${next}`); + nextState.facts[fact.key] = [next]; + } + + const changed = [...files].filter(([p, t]) => original.get(p) !== t).map(([p]) => p); + const stateChanged = JSON.stringify(nextState) !== JSON.stringify(state); + + if (CHECK) { + if (changed.length === 0 && !stateChanged) { + console.log("docs-sync: documented numbers and versions are current."); + return; + } + console.error("docs-sync: documented numbers or versions are out of date."); + for (const line of report) console.error(` ${line}`); + for (const p of changed) console.error(` would update ${p}`); + console.error("Run `npm run docs:sync` and commit the result."); + process.exit(1); + } + + for (const fact of FACTS) { + const next = nextState.facts[fact.key]?.[0]; + for (const old of state.facts[fact.key] ?? []) { + if (!next || old.replace(/\D/g, "") === next.replace(/\D/g, "")) continue; + const leftover = new RegExp(`(? { + if (leftover.test(line)) report.push(`check ${fact.label} ${old} left in ${path}:${i + 1}`); + leftover.lastIndex = 0; + }); + } + } + } + + for (const p of changed) writeFileSync(join(ROOT, p), files.get(p)!, "utf-8"); + if (stateChanged) writeFileSync(join(ROOT, STATE_PATH), JSON.stringify(nextState, null, 2) + "\n", "utf-8"); + for (const line of report) console.log(`docs-sync: ${line}`); + console.log(`docs-sync: ${changed.length} file(s) updated.`); +} + +main(); From e3b2c34dfcc33ac167797e96283c417b9147e21c Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Fri, 25 Sep 2026 09:49:52 +0530 Subject: [PATCH 03/26] chore: run docs sync locally before each commit instead of in CI Drops the Docs sync workflow and the CI docs check. The sync stays a local step: AGENTS.md now tells contributors and agents to run `npm run docs:sync` before every commit, as part of the same build, skills and test sequence CI runs, and to change the source rather than hand-editing documented numbers or versions. --- .github/workflows/ci.yml | 1 - .github/workflows/docs-sync.yml | 82 --------------------------------- AGENTS.md | 4 +- 3 files changed, 2 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/docs-sync.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f91e026e1d..cbedfaa6df 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,5 +69,4 @@ jobs: - run: npm install --legacy-peer-deps --no-audit --no-fund - run: npm run build - run: npm run skills:check - - run: npm run docs:check - run: npm test diff --git a/.github/workflows/docs-sync.yml b/.github/workflows/docs-sync.yml deleted file mode 100644 index f411b87527..0000000000 --- a/.github/workflows/docs-sync.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Docs sync - -on: - pull_request: - branches: [main] - push: - branches: [main] - workflow_dispatch: - -concurrency: - group: docs-sync-${{ github.head_ref || github.ref }} - cancel-in-progress: true - -permissions: - contents: write - actions: write - pull-requests: write - -jobs: - sync: - runs-on: ubuntu-latest - env: - SAME_REPO: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - SYNC_TOKEN: ${{ secrets.DOCS_SYNC_TOKEN }} - steps: - - uses: actions/checkout@v6 - with: - ref: ${{ github.head_ref || github.ref }} - token: ${{ secrets.DOCS_SYNC_TOKEN || github.token }} - persist-credentials: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }} - - uses: actions/setup-node@v6 - with: - node-version: 22 - - run: npm install --legacy-peer-deps --no-audit --no-fund - - name: Sync documented numbers and versions - run: npm run docs:sync - - name: Detect changes - id: diff - run: | - if git diff --quiet; then - echo "changed=false" >> "$GITHUB_OUTPUT" - else - echo "changed=true" >> "$GITHUB_OUTPUT" - git diff --stat - fi - - name: Fork pull request - if: steps.diff.outputs.changed == 'true' && env.SAME_REPO != 'true' - run: | - echo "::error::Documented numbers or versions are out of date. Run 'npm run docs:sync' and commit the result." - exit 1 - - name: Commit to the pull request branch - if: steps.diff.outputs.changed == 'true' && env.SAME_REPO == 'true' && github.event_name == 'pull_request' - env: - GH_TOKEN: ${{ github.token }} - BRANCH: ${{ github.head_ref }} - run: | - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git commit -am "chore(docs): sync documented numbers and versions" - git push origin "HEAD:$BRANCH" - if [ -z "$SYNC_TOKEN" ]; then - gh workflow run ci.yml --ref "$BRANCH" - fi - - name: Open a sync pull request from main - if: steps.diff.outputs.changed == 'true' && github.event_name != 'pull_request' - env: - GH_TOKEN: ${{ secrets.DOCS_SYNC_TOKEN }} - run: | - if [ -z "$SYNC_TOKEN" ]; then - echo "::error::main has out-of-date documented numbers. Run 'npm run docs:sync' on a branch and open a PR, or add a DOCS_SYNC_TOKEN secret so this job opens one." - exit 1 - fi - git config user.name "github-actions[bot]" - git config user.email "41898282+github-actions[bot]@users.noreply.github.com" - git switch -c chore/docs-sync - git commit -am "chore(docs): sync documented numbers and versions" - git push --force origin chore/docs-sync - if [ -z "$(gh pr list --head chore/docs-sync --state open --json number --jq '.[].number')" ]; then - gh pr create --base main --head chore/docs-sync \ - --title "chore(docs): sync documented numbers and versions" \ - --body "Automated by the Docs sync workflow after a merge to main changed a documented count or version." - fi diff --git a/AGENTS.md b/AGENTS.md index 1c4d5b467f..c57c19db63 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,7 +11,7 @@ agentmemory is a persistent memory system for AI coding agents, built on iii-eng ## Consistency Rules -**Documented numbers and versions are synced by `npm run docs:sync`.** It computes MCP tool counts (all, core, local fallback), REST endpoints, skills, hooks, tests, iii functions, source files, lines of code and KV scopes from the source, and rewrites them in README.md, the translated READMEs, AGENTS.md, INSTALL_FOR_AGENTS.md, plugin manifests, integration READMEs, the stat badges and the `src/index.ts` banner. The last synced values live in `scripts/docs-sync.state.json`. The Docs sync workflow runs it on every pull request and commits the result to the branch, and CI fails on drift with `npm run docs:check`. When it reports `check left in `, that phrasing needs a noun added to the fact in `scripts/docs-sync.ts`. +**Before every commit, run `npm run docs:sync` and commit what it changes.** It computes MCP tool counts (all, core, local fallback), REST endpoints, skills, hooks, tests, iii functions, source files, lines of code and KV scopes from the source, and rewrites them in README.md, the translated READMEs, AGENTS.md, INSTALL_FOR_AGENTS.md, plugin manifests, integration READMEs, the stat badges and the `src/index.ts` banner. The last synced values live in `scripts/docs-sync.state.json`; commit that file with the rest. `npm run docs:check` exits non-zero when anything is out of date. When the sync prints `check left in `, open that line: either fix it by hand or add its noun to the fact in `scripts/docs-sync.ts` so the next sync catches it. Never hand-edit these numbers or versions in the docs; change the source and sync. **When adding or removing MCP tools, update:** 1. `src/mcp/tools-registry.ts` — tool definition + `getAllTools()` array @@ -101,7 +101,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). ## Testing -- All tests must pass before PR: `npm test` (1,700+ tests) +- Before every commit run, in order: `npm run build`, `npm run skills:gen`, `npm run docs:sync`, `npm run skills:check`, `npm test` (1,700+ tests). Commit anything the generators changed. CI runs the same build, skills check and tests. - Mock pattern: `vi.mock("iii-sdk")` with mock `sdk.trigger`, `kv.get/set/list` - Test files go in `test/` with `.test.ts` extension - Follow existing patterns in `test/crystallize.test.ts` for function tests From 9b5f8ba33e477d19ee5608206a545bc29d8157ed Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Thu, 1 Oct 2026 17:08:16 +0530 Subject: [PATCH 04/26] docs: document the 0.10.0 features and sync the documented numbers README: the viewer section now describes the snapshot plus live stream model, the 12 tabs, the Memories, Sessions, Graph and Health pages and the empty states. The environment block gains the storage and durability settings (state backend, Redis URL, state save interval, index save interval, boot graph compaction), the session sweep, the hook capture filters and the audit log settings. The key endpoints table lists GET /agentmemory/status and GET /agentmemory/viewer/snapshot. npm run docs:sync updates the version, REST endpoint count, test count, function count, source file and LOC counts and KV scope count across README, the translated READMEs, AGENTS.md and the stat badges. --- AGENTS.md | 8 +++--- README.md | 47 +++++++++++++++++++++++++++++--- READMEs/README.de-DE.md | 8 +++--- READMEs/README.es-ES.md | 8 +++--- READMEs/README.fr-FR.md | 8 +++--- READMEs/README.hi-IN.md | 8 +++--- READMEs/README.ja-JP.md | 8 +++--- READMEs/README.ko-KR.md | 8 +++--- READMEs/README.pt-BR.md | 8 +++--- READMEs/README.ru-RU.md | 8 +++--- READMEs/README.tr-TR.md | 8 +++--- READMEs/README.zh-CN.md | 8 +++--- READMEs/README.zh-TW.md | 8 +++--- assets/tags/light/stat-tests.svg | 2 +- assets/tags/stat-tests.svg | 2 +- scripts/docs-sync.state.json | 14 +++++----- 16 files changed, 100 insertions(+), 61 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index c57c19db63..53b38e97f0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -101,16 +101,16 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). ## Testing -- Before every commit run, in order: `npm run build`, `npm run skills:gen`, `npm run docs:sync`, `npm run skills:check`, `npm test` (1,700+ tests). Commit anything the generators changed. CI runs the same build, skills check and tests. +- Before every commit run, in order: `npm run build`, `npm run skills:gen`, `npm run docs:sync`, `npm run skills:check`, `npm test` (2,200+ tests). Commit anything the generators changed. CI runs the same build, skills check and tests. - Mock pattern: `vi.mock("iii-sdk")` with mock `sdk.trigger`, `kv.get/set/list` - Test files go in `test/` with `.test.ts` extension - Follow existing patterns in `test/crystallize.test.ts` for function tests -## Current Stats (v0.9.29) +## Current Stats (v0.10.0) - 54 MCP tools (8 visible by default, `AGENTMEMORY_TOOLS=all` for all) - 135 REST endpoints - 6 MCP resources, 3 MCP prompts - 12 hooks, 17 skills -- 288+ iii functions -- 1,700+ tests +- 304+ iii functions +- 2,200+ tests diff --git a/README.md b/README.md index 4a3765ae1e..ce236aa26d 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1186,7 +1186,14 @@ cp plugin/opencode/commands/*.md ~/.config/opencode/commands/

Real-Time Viewer

-Auto-starts on port `3113`. Live observation stream with a stream status indicator, a two-pane session explorer (list beside a sticky detail panel on wide screens), memory and lesson rows that expand to the full stored record including raw JSON and origin provenance, a knowledge graph that clusters nodes by type while relations are sparse, session replay, and a health dashboard. +Auto-starts on port `3113`. The viewer loads one snapshot when it connects (`GET /agentmemory/viewer/snapshot`) and then applies live stream events: new memories, lessons, observations, audit entries, graph changes and health updates appear without polling or page reloads. The only other requests are the actions you click, "load more" pages and searches. When the stream drops, the viewer shows how old its numbers are, reconnects with backoff and resyncs from one snapshot. + +- **12 tabs in four groups** with live counts, deep links (`#memories/`, `#sessions/?obs=`, `#graph/`, `#health/consolidation`), keyboard shortcuts and a mobile menu. +- **Memories:** server-side search, filters by project, agent and type, a detail panel with the version chain and a word diff, provenance links, copy buttons for the id, the MCP call and a curl command, edit (a new version), forget with confirmation, bulk forget and JSON export. +- **Sessions:** an inline observation timeline with readable tool input and output, filters and paging, and the memories and lessons each session produced. +- **Graph:** search, node detail with relations and sources, a legend that does not rely on colour alone, and zoom controls. +- **Health:** the live version of `GET /agentmemory/status`. Every problem comes with its fix, plus the state backend, index save state, graph provenance compaction progress and a consolidation explainer with the real thresholds. +- **Audit, Activity, Profile, Replay, Lessons, Actions and Crystals** pages, each with an empty state that says what the section is, why it is empty and the command that fills it, and a `?` glossary tooltip on every term and number. ```bash open http://localhost:3113 @@ -1362,7 +1369,7 @@ fi | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**192 source files · ~44,000 LOC · 1,700+ tests · 288 functions · 53 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. +**209 source files · ~50,000 LOC · 2,200+ tests · 304 functions · 56 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. --- @@ -1658,6 +1665,36 @@ Create `~/.agentmemory/.env`: # CLAUDE_MEMORY_BRIDGE=false # SNAPSHOT_ENABLED=false +# Storage and durability +# AGENTMEMORY_STATE_BACKEND=file # file (default) or redis; see "Storage backend" below +# AGENTMEMORY_REDIS_URL=redis://localhost:6379 # Required with redis, plain redis:// only +# AGENTMEMORY_STATE_SAVE_INTERVAL_MS=2000 # How often the engine writes file state to disk. + # A hard kill loses at most this window. +# AGENTMEMORY_INDEX_SAVE_INTERVAL_MS=600000 # Minimum time between search index saves; + # shutdown and deletes still save at once. +# AGENTMEMORY_GRAPH_COMPACT_ON_BOOT=true # One-time background trim of oversized graph + # provenance; false skips it + +# Sessions +# AGENTMEMORY_SESSION_SWEEP_ENABLED=true # Hourly sweep marks sessions left active past + # the threshold as abandoned. Deletes nothing; + # new activity makes the session active again. +# AGENTMEMORY_SESSION_SWEEP_STALE_HOURS=24 + +# Capture filters (hooks) +# AGENTMEMORY_CAPTURE_ALLOW= # Comma or space list of tool names or globs; + # when set, only these tools are captured +# AGENTMEMORY_CAPTURE_DENY= # Extra names or globs to skip, added to the + # defaults: memory_*, toolsearch, + # listmcpresources, fetchmcpresource +# AGENTMEMORY_CAPTURE_OUTPUT_MAX=8000 # Max characters of tool output per observation +# AGENTMEMORY_PRE_COMPACT_BUDGET=1500 # Token budget for PreCompact context; 0 disables + +# Audit log +# AGENTMEMORY_AUDIT_RETENTION_MONTHS=0 # Drop month scopes older than N months; 0 keeps all +# AGENTMEMORY_AUDIT_INDEX_PERSIST=false # 1 or true records index migration and cleanup + # rows (debugging only) + # Team # TEAM_ID= # USER_ID= @@ -1679,6 +1716,8 @@ Create `~/.agentmemory/.env`: | Method | Path | Description | |--------|------|-------------| | `GET` | `/agentmemory/health` | Health check (always public) | +| `GET` | `/agentmemory/status` | What is wrong and how to fix it (HTML for browsers, JSON otherwise) | +| `GET` | `/agentmemory/viewer/snapshot` | Everything the viewer shows, in one response | | `POST` | `/agentmemory/session/start` | Start session + get context | | `POST` | `/agentmemory/session/end` | End session | | `POST` | `/agentmemory/observe` | Capture observation | @@ -1721,7 +1760,7 @@ curl -X POST http://localhost:3111/agentmemory/graph/compact -H "Content-Type: a ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.de-DE.md b/READMEs/README.de-DE.md index 553e2f1395..ac22e7160e 100644 --- a/READMEs/README.de-DE.md +++ b/READMEs/README.de-DE.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1227,7 +1227,7 @@ Volle Registry: [workers.iii.dev](https://workers.iii.dev). Jeder Worker dort ko | Prometheus / Grafana | iii OTEL + Health-Monitor | | Eigene Plugin-Systeme | `iii worker add ` | -**192 Quelldateien · ~44.000 LOC · 1.700+ Tests · 288 Funktionen · 53 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. +**209 Quelldateien · ~50.000 LOC · 2.200+ Tests · 304 Funktionen · 56 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-131 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers. +135 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers.
Wichtige Endpunkte @@ -1560,7 +1560,7 @@ Volle Endpunktliste: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.es-ES.md b/READMEs/README.es-ES.md index 6568991dbc..8d8e984589 100644 --- a/READMEs/README.es-ES.md +++ b/READMEs/README.es-ES.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1220,7 +1220,7 @@ Registro completo: [workers.iii.dev](https://workers.iii.dev). Cada worker allí | Prometheus / Grafana | iii OTEL + monitor de salud | | Sistemas de plugins propios | `iii worker add ` | -**192 ficheros de código · ~44.000 LOC · 1.700+ tests · 288 funciones · 53 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. +**209 ficheros de código · ~50.000 LOC · 2.200+ tests · 304 funciones · 56 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. --- @@ -1519,7 +1519,7 @@ Crea `~/.agentmemory/.env`:

API

-131 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers. +135 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers.
Endpoints principales @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.fr-FR.md b/READMEs/README.fr-FR.md index c7de4acf8e..80871d3946 100644 --- a/READMEs/README.fr-FR.md +++ b/READMEs/README.fr-FR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1227,7 +1227,7 @@ Registre complet : [workers.iii.dev](https://workers.iii.dev). Chaque worker là | Prometheus / Grafana | iii OTEL + moniteur de santé | | Systèmes de plugins personnalisés | `iii worker add ` | -**192 fichiers sources · ~44 000 LOC · 1 700+ tests · 288 fonctions · 53 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. +**209 fichiers sources · ~50 000 LOC · 2 200+ tests · 304 fonctions · 56 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. --- @@ -1526,7 +1526,7 @@ Créez `~/.agentmemory/.env` :

API

-131 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs. +135 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs.
Endpoints clés @@ -1560,7 +1560,7 @@ Liste complète des endpoints : [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.hi-IN.md b/READMEs/README.hi-IN.md index b4412b1f3b..6c95403a53 100644 --- a/READMEs/README.hi-IN.md +++ b/READMEs/README.hi-IN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1209,7 +1209,7 @@ Full registry: [workers.iii.dev](https://workers.iii.dev)। वहाँ हर | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**192 source files · ~44,000 LOC · 1,700+ tests · 288 functions · 53 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। +**209 source files · ~50,000 LOC · 2,200+ tests · 304 functions · 56 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-Port `3111` पर 131 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं। +Port `3111` पर 135 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं।
मुख्य endpoints @@ -1542,7 +1542,7 @@ Full endpoint list: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (running services की आवश्यकता है) ``` diff --git a/READMEs/README.ja-JP.md b/READMEs/README.ja-JP.md index f19559382f..86a52abd4d 100644 --- a/READMEs/README.ja-JP.md +++ b/READMEs/README.ja-JP.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1230,7 +1230,7 @@ iii worker add mcp # agentmemory MCP の横に汎用 MCP ホス | Prometheus / Grafana | iii OTEL + ヘルスモニタ | | カスタムプラグインシステム | `iii worker add ` | -**192 ソースファイル · ~44,000 LOC · 1,700+ テスト · 288 functions · 53 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 +**209 ソースファイル · ~50,000 LOC · 2,200+ テスト · 304 functions · 56 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 --- @@ -1529,7 +1529,7 @@ CONSOLIDATION_ENABLED=true

API

-ポート `3111` 上の 131 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。 +ポート `3111` 上の 135 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。
主要エンドポイント @@ -1563,7 +1563,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # ホットリロード npm run build # 本番ビルド -npm test # 1,700+ テスト +npm test # 2,200+ テスト npm run test:integration # API テスト(サービス起動が必要) ``` diff --git a/READMEs/README.ko-KR.md b/READMEs/README.ko-KR.md index a526c6bc8b..a9b175cabd 100644 --- a/READMEs/README.ko-KR.md +++ b/READMEs/README.ko-KR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1209,7 +1209,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + 헬스 모니터 | | 사용자 정의 플러그인 시스템 | `iii worker add ` | -**192개 소스 파일 · ~44,000 LOC · 1,700+ tests · 288개 함수 · 53개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. +**209개 소스 파일 · ~50,000 LOC · 2,200+ tests · 304개 함수 · 56개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` 포트의 131개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다. +`3111` 포트의 135개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다.
주요 엔드포인트 @@ -1542,7 +1542,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.pt-BR.md b/READMEs/README.pt-BR.md index a999604c07..0ba309c33a 100644 --- a/READMEs/README.pt-BR.md +++ b/READMEs/README.pt-BR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1220,7 +1220,7 @@ Registry completo: [workers.iii.dev](https://workers.iii.dev). Todo worker lá s | Prometheus / Grafana | iii OTEL + monitor de saúde | | Sistemas de plugin customizados | `iii worker add ` | -**192 arquivos de código · ~44.000 LOC · 1.700+ tests · 288 funções · 53 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. +**209 arquivos de código · ~50.000 LOC · 2.200+ tests · 304 funções · 56 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. --- @@ -1519,7 +1519,7 @@ Crie `~/.agentmemory/.env`:

API

-131 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers. +135 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers.
Endpoints principais @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.ru-RU.md b/READMEs/README.ru-RU.md index 9053e0bc73..86db7b519d 100644 --- a/READMEs/README.ru-RU.md +++ b/READMEs/README.ru-RU.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1227,7 +1227,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + монитор состояния | | Самописные плагинные системы | `iii worker add ` | -**192 исходных файла · ~44 000 LOC · 1 700+ тестов · 288 функции · 53 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. +**209 исходных файла · ~50 000 LOC · 2 200+ тестов · 304 функции · 56 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-131 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах. +135 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах.
Ключевые эндпоинты @@ -1560,7 +1560,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.tr-TR.md b/READMEs/README.tr-TR.md index 340bfc8477..81dfff465f 100644 --- a/READMEs/README.tr-TR.md +++ b/READMEs/README.tr-TR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1229,7 +1229,7 @@ Tam kayıt defteri: [workers.iii.dev](https://workers.iii.dev). Oradaki her work | Prometheus / Grafana | iii OTEL + sağlık monitörü | | Özel eklenti sistemleri | `iii worker add ` | -**192 kaynak dosya · ~44,000 LOC · 1,700+ test · 288 fonksiyon · 53 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. +**209 kaynak dosya · ~50,000 LOC · 2,200+ test · 304 fonksiyon · 56 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. --- @@ -1528,7 +1528,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` portunda 131 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir. +`3111` portunda 135 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir.
Önemli endpoint'ler @@ -1562,7 +1562,7 @@ Tam endpoint listesi: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 1,700+ tests +npm test # 2,200+ tests npm run test:integration # API testleri (çalışan servisler gerektirir) ``` diff --git a/READMEs/README.zh-CN.md b/READMEs/README.zh-CN.md index b9fdb173a8..c2dcb55b5c 100644 --- a/READMEs/README.zh-CN.md +++ b/READMEs/README.zh-CN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁开通用 MCP | Prometheus / Grafana | iii OTEL + 健康监控 | | 自定义插件系统 | `iii worker add ` | -**192 个源文件 · ~44,000 行代码 · 1,700+ 个测试 · 288 个函数 · 53 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 +**209 个源文件 · ~50,000 行代码 · 2,200+ 个测试 · 304 个函数 · 56 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-端口 `3111` 上的 131 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。 +端口 `3111` 上的 135 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。
关键端点 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 热重载 npm run build # 生产构建 -npm test # 1,700+ 测试 +npm test # 2,200+ 测试 npm run test:integration # API 测试(需要服务运行中) ``` diff --git a/READMEs/README.zh-TW.md b/READMEs/README.zh-TW.md index f99bbe3ee8..3e6af31959 100644 --- a/READMEs/README.zh-TW.md +++ b/READMEs/README.zh-TW.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 1,700+ tests passing + 2,200+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁開設通用 MCP | Prometheus / Grafana | iii OTEL + 健康監控 | | 自訂外掛系統 | `iii worker add ` | -**192 個原始檔 · ~44,000 行程式碼 · 1,700+ 測試 · 288 個函式 · 53 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 +**209 個原始檔 · ~50,000 行程式碼 · 2,200+ 測試 · 304 個函式 · 56 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-連接埠 `3111` 上的 131 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。 +連接埠 `3111` 上的 135 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。
關鍵端點 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 熱重新載入 npm run build # 生產建置 -npm test # 1,700+ 測試 +npm test # 2,200+ 測試 npm run test:integration # API 測試(需要服務執行中) ``` diff --git a/assets/tags/light/stat-tests.svg b/assets/tags/light/stat-tests.svg index 6fea766162..4329256652 100644 --- a/assets/tags/light/stat-tests.svg +++ b/assets/tags/light/stat-tests.svg @@ -1,5 +1,5 @@ - 1700+ + 2200+ TESTS PASSING diff --git a/assets/tags/stat-tests.svg b/assets/tags/stat-tests.svg index befec0c4f4..df5957dfb3 100644 --- a/assets/tags/stat-tests.svg +++ b/assets/tags/stat-tests.svg @@ -1,5 +1,5 @@ - 1700+ + 2200+ TESTS PASSING diff --git a/scripts/docs-sync.state.json b/scripts/docs-sync.state.json index 12dcdffa5a..b82d17a671 100644 --- a/scripts/docs-sync.state.json +++ b/scripts/docs-sync.state.json @@ -1,5 +1,5 @@ { - "version": "0.9.29", + "version": "0.10.0", "facts": { "mcpTools": [ "54" @@ -11,7 +11,7 @@ "7" ], "restEndpoints": [ - "131" + "135" ], "skills": [ "17" @@ -20,19 +20,19 @@ "12" ], "tests": [ - "1700+" + "2200+" ], "functions": [ - "288" + "304" ], "sourceFiles": [ - "192" + "209" ], "loc": [ - "44000" + "50000" ], "kvScopes": [ - "53" + "56" ] } } From 3e8d58d5c9e1c8598456c9187db0f6e569780967 Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Thu, 1 Oct 2026 17:10:39 +0530 Subject: [PATCH 05/26] docs(changelog): 0.10.0 release notes Turn the Unreleased section into 0.10.0 and cover everything merged since v0.9.29: upgrade notes (engine 0.22.1, boot graph compaction, monthly audit scopes, bucketed index migration, opt-in Redis, 2 s state saves, stop waiting for the engine flush, the session sweep, capture filters and the changed response shapes), then Security, Added, Changed, Fixed and Infrastructure with PR numbers and credit to the external contributors. Adds the compare link. --- CHANGELOG.md | 114 +++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 92 insertions(+), 22 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d5c598570..2f8c4b4d03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,35 +6,104 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] -### Changed +## [0.10.0] — 2026-10-01 + +Scale and durability release. The iii engine moves from 0.11.2 to 0.22.1, the stores that grew without bound on shared daemons (graph provenance, the audit log, the vector index, the viewer stream backlog) are bounded and heal themselves at boot, state is saved every 2 s and `agentmemory stop` waits for the engine to flush, Redis becomes an opt-in state backend, and the viewer is rebuilt around one snapshot plus live stream events with a new Health page backed by `GET /agentmemory/status`. Contributions from @david-waltermire, @joyjit, @cristianbdev, @cbsincool, @a652 and @dmazhukov. + +### Upgrade notes + +- **iii engine 0.22.1.** The CLI downloads the pinned engine into `~/.agentmemory/bin`, `docker-compose.yml` pulls `iiidev/iii:0.22.1`, and the deploy templates (`deploy/fly`, `railway`, `render`, `coolify`) pin `III_VERSION` and `III_SDK_VERSION` 0.22.1 with `AGENTMEMORY_VERSION` 0.10.0. Existing state stores load unchanged. Keep the `iii-` prefixed builtin worker names (`iii-http`, `iii-state`, `iii-queue`, `iii-pubsub`, `iii-cron`) in any custom config: on 0.22.1 the bare names resolve to standalone registry workers. +- **One-time background graph compaction at boot.** Stores written before provenance was capped can hold thousands of observation ids per graph node or edge. A few seconds after the first start the worker trims every node, edge, superseded edge and the cached snapshot to 32 ids, in slices with a pause between them, without blocking boot, search or the viewer. Progress is saved, resumes after a restart, and the pass never runs again once done. `/agentmemory/status` and the viewer Health page show it. Set `AGENTMEMORY_GRAPH_COMPACT_ON_BOOT=false` to skip it, and run `POST /agentmemory/graph/compact` by hand instead (sliced with `scope`, `offset` and `limit`, then one `{"scope":"snapshot"}` call). +- **The audit log moves to monthly scopes** (`mem:audit:YYYY-MM`). A one-time background migration at boot copies legacy rows into their months and then deletes the legacy keys; legacy `index_persist` rows are dropped and one `audit_migrate` summary row records the purge. A legacy scope file larger than `AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES` (default 32 MiB) or unreadable is left frozen instead: nothing writes to it, and readers report it as `legacyFrozen` / `legacyFrozenBytes`. `AGENTMEMORY_AUDIT_RETENTION_MONTHS` (default 0, keep everything) drops whole months on a daily timer. +- **Index storage migrates to buckets without re-embedding.** On first boot the old sharded or monolithic vector snapshot is read once and written into fixed buckets (`AGENTMEMORY_VECTOR_BUCKET_SIZE`, default 500); only then are the old shards deleted. An unreadable snapshot is left in place, and a failed write keeps it and retries. Vectors are copied, not recomputed, so the migration makes no embedding calls. BM25 is no longer persisted: it is rebuilt from stored observations and memories at every boot. +- **Redis backend is opt-in.** `AGENTMEMORY_STATE_BACKEND=redis` with `AGENTMEMORY_REDIS_URL` (plain `redis://` only) moves state and streams to Redis; the file store stays the default and its config is unchanged. Switching starts with an empty store, so move data with `agentmemory export` and `import`. Use one Redis server per agentmemory instance: Redis pub/sub ignores the database index, so instances sharing a server see each other's live viewer events. +- **State is saved every 2 s** instead of 5 s (`AGENTMEMORY_STATE_SAVE_INTERVAL_MS`), so a hard kill loses at most that window. +- **`agentmemory stop` waits for the engine to flush.** It gives the worker 9 s to shut down, then waits one state save interval plus 1.5 s (capped at 15 s, none on Redis) before stopping the engine. Expect stop to take a few seconds longer than before. +- **Search index saves are throttled** to once per `AGENTMEMORY_INDEX_SAVE_INTERVAL_MS` (default 10 minutes), with the first checkpoint on a fresh index within 5 s and saves on shutdown, deletes and explicit flushes. Vectors missing after a crash are backfilled for documents newer than the last save, capped by `AGENTMEMORY_VECTOR_BACKFILL_MAX` (default 500) per boot; embedding an entire existing store needs `AGENTMEMORY_VECTOR_BACKFILL=all`. +- **Stale sessions are marked abandoned.** An hourly sweep marks sessions left active for more than `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS` (default 24) as `abandoned`. It deletes nothing, and new activity makes the session active again. `AGENTMEMORY_SESSION_SWEEP_ENABLED=false` turns it off. +- **Hooks skip agentmemory's own tools.** PostToolUse no longer captures `memory_*` MCP calls or `toolsearch`, `listmcpresources` and `fetchmcpresource`. `AGENTMEMORY_CAPTURE_ALLOW`, `AGENTMEMORY_CAPTURE_DENY`, `AGENTMEMORY_CAPTURE_OUTPUT_MAX` (default 8000 characters) and `AGENTMEMORY_PRE_COMPACT_BUDGET` (default 1500, 0 disables) tune capture. +- **Changed response shapes.** + - `mem::forget`, `mem::governance-delete` and `mem::governance-bulk` count only records that were really deleted. Absent ids come back in the new `notFound` field and failed deletes in `failed` and `failures`, with `success: false` when anything failed. `governance-bulk` refuses an empty filter and unsupported keys on both the dry run and the live call. + - `GET /agentmemory/audit` and the `memory_audit` MCP tool return `{ entries, legacyFrozen, legacyFrozenBytes }`; the MCP tool used to return a bare list. `GET /audit` also takes date and text filters. + - `GET /agentmemory/memories` returns newest first and adds `nextCursor` (plus `search` and `facets` when requested). Memories, sessions and observations accept `cursor` and `limit` for cursor pagination, with project, agent, type, status and `q` filters. + - `GET /agentmemory/export` returns 413 with the refusal body (`oversized`, `bytes`, `limitBytes`, `stoppedAt`) instead of 200 when the export is too large. + - `POST /agentmemory/session/end` for an unknown, malformed or already completed session returns 200 with `ended: false` and writes nothing. + - `memory_patterns` / `mem::patterns` reads the 50 most recent sessions by default (`limit`, max 500) and stops after 5,000 observations, instead of scanning every session. + - Consolidation decay applies at most once per decay period, and `results.decay` reports `{ scanned, written }` per tier. +- **Viewer stream groups.** Observations no longer write to per-session `mem-live` stream groups, and the shared `viewer` group is capped at `AGENTMEMORY_VIEWER_STREAM_MAX` (default 500). Existing per-session groups are left in place. + +### Security -- **iii engine and `iii-sdk` move from 0.11.2 to 0.22.1, with `@iii-dev/helpers` 0.22.1 alongside.** Same release on both sides, as before; the CLI downloads the pinned engine into `~/.agentmemory/bin`, the bundled `docker-compose.yml` pulls `iiidev/iii:0.22.1`, and `agentmemory upgrade` pins both packages to the version this package was built against. The deploy templates under `deploy/` install the published npm package, so their engine pair moves together with `AGENTMEMORY_VERSION` at release time. 0.22.x is the last engine line before 0.23 removes the `config.yaml` worker lifecycle the CLI relies on; it carries the upstream fix that keeps HTTP routes owned by the reconnecting worker, so `/agentmemory/*` no longer answers 404 after the engine reconnects (#1013), and its Node SDK bounds WebSocket connect attempts and detects half-open sockets. The bundled configs keep the `iii-` prefixed builtin workers (`iii-http`, `iii-state`, `iii-queue`, `iii-pubsub`, `iii-cron`): on 0.22.1 the unprefixed names resolve to the standalone registry workers, which is the 0.23 migration. Existing state stores load unchanged. -- **Runtime config is re-seeded on every start.** Engines from 0.19.4 on persist each builtin worker's `config:` block on first boot (0.22 writes `config/.yaml` next to the config file; earlier engines wrote `data/configuration/` under the working directory) and treat that copy as the source of truth afterwards, which would have made `--port`, `--instance` and data-dir changes silently ineffective after the first run. The CLI now clears those persisted entries in both locations right before it spawns the engine, so the runtime config it renders from your environment is the seed every time. If one of them cannot be removed, `agentmemory start` stops with the path instead of launching an engine that would ignore the requested ports. The bundled `docker-compose.yml` keeps the same directory on a tmpfs so container starts behave the same way. -- Dependabot no longer proposes `iii-sdk` bumps; the engine pin and the SDK version are updated together by hand. -- The deploy Dockerfiles (`deploy/fly`, `railway`, `render`, `coolify`) refuse to build when `III_VERSION` and `III_SDK_VERSION` differ, so overriding the engine tag alone can no longer produce a worker that speaks the wrong wire protocol. -- **The pinned engine starts quiet.** The CLI spawns it with `--no-update-check` (no update or security-advisory lookups against GitHub at boot) and with iii's anonymous usage telemetry off (`III_TELEMETRY_ENABLED=false` unless you export the variable yourself); the bundled compose file passes the same flag and variable. -- The deploy entrypoints (`deploy/*/entrypoint.sh`) generate the same observability settings as the bundled `iii-config.yaml` (`sampling_ratio: 0.1`, console log output off) instead of full sampling with console logs, the combination behind the log feedback loop fixed in 0.9.22. -- The README section on extending agentmemory with registry workers no longer lists builtins that already ship in `iii-config.yaml`, uses the current registry names (`database` replaced `iii-database`), and says where a custom config lives (`~/.agentmemory/iii-config.yaml`). +- **`GET /agentmemory/status` serves HTML with no scripts** under `default-src 'none'` with a nonce for styles, `Cache-Control: no-store`, every value escaped, and the same bearer auth as the rest of the API (#1408). +- **The Redis URL stays out of files and output.** The generated engine config holds `${AGENTMEMORY_REDIS_URL}` for the engine to expand, credentials in engine output printed by the CLI are redacted, and `/agentmemory/status` and the viewer show the backend but never the URL (#1425). +- **`mem::governance-bulk` cannot widen a dry run to the whole store.** Empty filters and unsupported keys such as `ids` or `concepts` are refused on both paths, and `project` is applied on both (#1449). +- **The pinned engine starts quiet.** The CLI spawns it with `--no-update-check` and with iii's anonymous usage telemetry off (`III_TELEMETRY_ENABLED=false` unless you export it yourself); the bundled compose file does the same (#1396). +- A profile read no longer writes a `share` audit entry (#1433). ### Added -- **`GET /agentmemory/status` and a Health tab in the viewer.** One report of what is wrong and how to fix it: the health monitor state and alerts, the LLM and embedding providers and the circuit breaker, functions failing on at least 20% of their calls (with a provider-specific fix for summarize, compress and graph extraction), observations missing from the search index (the same exact check the boot reconcile runs), graph snapshot age, ports, uptime, the pinned engine version and every feature flag with how to enable it. Browsers get an HTML page with no scripts and a strict CSP; everything else gets JSON (`?format=json` or `?format=html` force either). Every probe is time-boxed at 5 s so a slow store cannot hang the page. Uses the same bearer auth as the rest of the API. -- **`agentmemory console`** launches the iii web console (workers, functions, triggers, queues, traces) through the pinned engine, against the ports agentmemory resolved, one port above the viewer by default (`--console-port` overrides). Engine 0.22 ships the console as part of `iii` and downloads it on first use, so the "install iii console?" prompt on start and the `skipConsoleInstall` preference are gone; the ready panel now points at the command instead. +- **Rebuilt viewer that streams every page** (#1433, #1407). It loads one snapshot on connect (`GET /agentmemory/viewer/snapshot`, `GET /agentmemory/counts`) and then applies `.created/updated/deleted` events for memories, lessons, actions, crystals, semantic and procedural memory and audit rows, plus `graph.changed`, `consolidation.run`, `health` and `counts.changed`. Nothing polls: the only requests are the snapshot on (re)connect, actions you click, "load more" and searches. 12 tabs in four groups with live counts, deep links, keyboard shortcuts and a mobile menu; a `?` glossary on every term and number; empty states that say what a section is, why it is empty and the command that fills it, using the live origin; a Memories detail panel with the version chain, word diff, provenance and copy buttons for the id, MCP call and curl; edit, forget, bulk forget and export; sessions with an inline observation timeline; a graph with search, node detail and an accessible legend; reconnect with backoff and stale and offline states. New endpoints back it: cursor pagination and facets on memories, sessions and observations, `GET /graph/node`, `GET /observations/locate`. +- **`GET /agentmemory/status` and a Health tab in the viewer** (#1408). One report of what is wrong and how to fix it: health monitor state and alerts, LLM and embedding providers and the circuit breaker, functions failing on at least 20% of their calls (with provider-specific fixes), observations missing from the search index, graph snapshot age, index save state per leg (#1415), the state backend, graph compaction progress, ports, uptime, the pinned engine version and every feature flag with how to enable it. Browsers get HTML, everything else JSON (`?format=json|html` forces either). Every probe is time-boxed at 5 s. +- **`GET /agentmemory/consolidation/status`** and a "Memory layers" panel that says for each layer what it is built from, its count, and whether it is off (with the setting to change), waiting (with progress), ready, active or failed (#1407). +- **Opt-in Redis backend for state and streams**: `AGENTMEMORY_STATE_BACKEND=file|redis` and `AGENTMEMORY_REDIS_URL` (#1425). Every state and stream path was audited on Redis; agentmemory applies `state::update` itself under a per-key lock (the engine's Lua path turns empty arrays into `{}`), orders listings deterministically, sizes the legacy audit scope from the hash, and reports an unreachable store or a stopped live relay on `/status` with the fix. +- **`POST /agentmemory/graph/compact`** trims oversized node, edge, edge history and snapshot provenance, sliced with `scope`, `offset` and `limit` (#1454, carries #1445 by @david-waltermire), and **`AGENTMEMORY_GRAPH_COMPACT_ON_BOOT`** runs it once in the background after upgrade (#1455). +- **Stale session sweep**: `AGENTMEMORY_SESSION_SWEEP_ENABLED` and `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS`, with one `session_sweep` audit entry per run that abandons sessions (#1453, carries #1411 by @cristianbdev). +- **Capture filters for hooks**: `AGENTMEMORY_CAPTURE_ALLOW`, `AGENTMEMORY_CAPTURE_DENY`, `AGENTMEMORY_CAPTURE_OUTPUT_MAX` and `AGENTMEMORY_PRE_COMPACT_BUDGET` (#1452, carries #994 by @joyjit). +- **`AGENTMEMORY_AUDIT_INDEX_PERSIST`** (off by default) re-enables index persistence audit rows for debugging (#1182 by @dmazhukov). +- **`AGENTMEMORY_AUDIT_RETENTION_MONTHS`** and **`AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES`** for the monthly audit log (#1419). +- **`AGENTMEMORY_STATE_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_INDEX_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_VECTOR_BUCKET_SIZE`**, **`AGENTMEMORY_VECTOR_BACKFILL`** / **`AGENTMEMORY_VECTOR_BACKFILL_MAX`** and **`AGENTMEMORY_VIEWER_STREAM_MAX`** (#1457, #1415, #1416, #1420). +- **`agentmemory console`** launches the iii web console through the pinned engine against the ports agentmemory resolved, one port above the viewer by default (`--console-port` overrides). The "install iii console?" prompt and the `skipConsoleInstall` preference are gone (#1397). +- **Multi-instance installs**: `--instance N` gets its own port quartet, data directory and lifecycle state; `--port` derives the stream, viewer and engine ports; the pinned engine stays private to agentmemory when another iii version is on PATH; Docker stop and restart keep the exact container and `/data` mount (#892). +- `memory_patterns` takes an optional `limit` (#1424). +- `POST /lessons` accepts `sourceIds`, and `mem::evolve` takes the remember lock, moves index entries to the new version and returns 409, 400 and 404 errors (#1433). + +### Changed + +- **iii engine and `iii-sdk` move from 0.11.2 to 0.22.1, with `@iii-dev/helpers` 0.22.1 alongside** (#1396, #1397). 0.22.1 keeps HTTP routes owned by a reconnecting worker, so `/agentmemory/*` no longer answers 404 after the engine reconnects (#1013), and its Node SDK bounds WebSocket connect attempts and detects half-open sockets. `agentmemory upgrade` pins both packages to the version this package was built against. +- **Runtime config is re-seeded on every start.** Engines from 0.19.4 on persist each builtin worker's `config:` block on first boot and treat that copy as the source of truth, which made `--port`, `--instance` and data-dir changes silently ineffective after the first run. The CLI clears those persisted entries right before it spawns the engine, and stops with the path if one cannot be removed. The bundled compose file keeps that directory on a tmpfs (#1396, #1397). +- **Vectors are stored per key in fill-and-roll buckets**, and a save writes only the vectors that changed plus a metadata record, so a save rewrites a few buckets instead of the whole index and the store no longer hits V8's string limit at about 49,000 vectors (#1416). +- **Index saves are throttled and each leg reports its own state.** BM25 and vector saves are independent, so a failing BM25 save no longer skips the vector save (#1415, co-authored with @inix-x, from #1256). +- **The audit log lives in monthly scopes** and every reader goes through one query that reads months newest first (#1419, supersedes #1176 by @sbynode-ux). +- **Session start context and observation lookups use small secondary indexes** (a per-project session index and an observation-to-session index sharded over 64 scopes) instead of listing every session (#1418, co-authored with @ErikBPF from #1091 and @cmondragon023 from #1230). +- **`mem::remember` calls the embedding provider outside the global save lock**, so concurrent saves no longer wait on each other's embedding round trips (#1423). +- **`mem::patterns` is bounded** to recent sessions and an observation budget (#1424, fixes #1226). +- **Consolidation decay writes only rows that changed** and applies at most once per decay period (#1417). +- **Observations keep a bounded, sanitized copy of their source** (16 KiB per record within an 8 MiB session allowance) for replay and export, while search, context, listings and feeds stay summary-only (#1448, fixes #1196). +- **The viewer stream backlog is bounded** and observations stop writing to per-session stream groups that nothing read (#1420, with measurements from @MarvinFS in discussion #1358). +- **State saves every 2 s**, the engine gets `MALLOC_ARENA_MAX=2` on Linux, and Docker and deploy entrypoints raise the engine's open-file limit (#1457). +- Procedures are extracted from finished sessions: `mem::skill-extract` runs for the stopping session inside the consolidation cooldown when consolidation is on and an LLM provider is configured (#1407). +- Consolidation and provider detection use the same check (`OPENAI_BASE_URL` alone no longer turns consolidation on), and functions that need an LLM show as off instead of failed (#1433). +- The deploy Dockerfiles refuse to build when `III_VERSION` and `III_SDK_VERSION` differ, and the deploy entrypoints generate the same observability settings as the bundled config (#1396). +- The README section on registry workers lists only workers that do not already ship in `iii-config.yaml` and uses the current registry names (#1396). ### Fixed -- **The "Memory elevated" alert no longer fires on a healthy process (#1406).** The health check divided the heap in use by the heap Node had allocated so far, which Node keeps just above what is in use, so a normal process read 90% or more and raised the alert once its memory passed 512 MB. The check now divides by the V8 heap limit, which is about 4 GB on 64-bit Node by default, and the viewer's Heap gauge shows used against that limit. The reported 589 of 629 MB is 14% of the limit and no longer alerts. -- **The viewer updates from the live stream instead of re-fetching, and stops blinking.** The dashboard used to wipe itself to "Loading dashboard..." and re-fetch everything on a 30 s timer and on every stream event; on an idle store that was 73 rebuilds and 20 requests a minute, and 21 live events cost 200 requests. The worker now pushes `session.updated`, `session.deleted`, `memory.updated` and `memory.deleted` on the `mem-live` viewer group next to the existing observation and `session.activity` events (which the viewer used to drop because it read the wrong field), and the viewer applies them to what is on screen: sessions, observation counts, session status and the memory total update with zero requests, redraws are batched to at most one every 250 ms and skipped when nothing changed. The 30 s timer is gone, no refresh path blanks a loaded view, and polling remains only as the fallback when the stream cannot connect (#921, #1340). The viewer now connects with the stream mode engine 0.22 serves first instead of failing twice on the other one. Live buffers on the Timeline and Activity tabs are capped at a few hundred entries so a large stream backlog cannot freeze the tab (#609). When the stream reconnects, the loaded views re-fetch once so changes made while it was down show up, and a list that was loading when live events arrived replays them, so a deleted session does not come back. Session counts no longer reload or blank the open session detail, bursts of memory events coalesce into one list reload, and with an isolated agent scope (`AGENT_ID` plus `AGENTMEMORY_AGENT_SCOPE=isolated`) the worker only pushes that agent's sessions and memories. -- **A failed dashboard refresh keeps the last data.** Panels that fail to refresh keep their previous values behind a "could not refresh" note instead of flipping to the new-install screen; a first load that cannot reach the API shows a retry button (#1340). -- **Dashboard numbers match the API.** The Memories card uses the server total instead of counting a capped list (#1279, #951), token savings only counts sessions that produced observations (#944), and the Graph Nodes card shows when its snapshot was taken. -- **Session summaries stored as objects render as text instead of `[object Object]`** (#1229), and tags stored as a comma-separated string no longer break the Actions, Lessons or Sessions views (#906). -- **`GET /agentmemory/memories` returns newest first**, so a `limit` page shows the latest memories rather than the oldest (#990). -- **Rebuild Graph asks before replaying the corpus**, ignores repeat clicks while it runs, and reports how many sessions, nodes and edges it produced (#1383). -- **The dashboard explains consolidation instead of showing three bare counters.** Semantic Memory, Procedural Memory and Consolidation Status are one "Memory layers" panel: each layer says what it is built from, how many items it holds, and whether it is off (with the exact setting to change), waiting (for example "3 of 5 session summaries needed"), ready, active with the last run's output, or failed with the error. The consolidation pipeline now stores each run's per-tier results, served at `GET /agentmemory/consolidation/status`. -- **Procedures are extracted from finished sessions.** Procedural memory only came from a cross-session pass that needs two pattern memories each seen in two or more sessions, so it stayed empty on almost every install, and `mem::skill-extract` (which turns one session with a summary and three or more observations into a procedure) had no caller. It now runs for the stopping session inside the existing consolidation cooldown, only when consolidation is on and an LLM provider is configured, so it adds at most one LLM call per cooldown window and none on keyless installs. -- **The viewer reconnects its live stream when the tab becomes visible again** after a sleep or network drop, instead of staying disconnected until a manual reload (#1370). -- **The search index snapshot is written continuously, not only on clean shutdown.** Every observation, compression result and memory save now schedules the debounced snapshot write, and bulk indexing (import, replay, rebuild) does the same. Before, the BM25/vector snapshot was written only by a graceful shutdown; after a crash, `kill -9` or power loss the worker booted the stale snapshot, skipped the rebuild because the snapshot was not empty, and every observation captured since the last clean stop stayed invisible to search for good. On boot the worker now also compares the loaded snapshot against each session's observation count and re-indexes whatever is missing. Re-adding an observation under an id that is already indexed (compression replacing the synthetic entry) now replaces the index document instead of stacking postings on top of the old ones. -- **Worker shutdown no longer hangs when the engine is already gone.** The SIGTERM handler waited on a state write that can never land while the SDK is reconnecting, so `agentmemory stop` had to SIGKILL an orphaned worker after its grace period. The final index flush and the SDK shutdown are now time-boxed at 4 s each, with a hard exit at 8 s, and open viewer connections are closed instead of awaited. `agentmemory stop` gives an orphaned worker that full budget before escalating to SIGKILL. +- **Graph provenance is bounded.** Nodes and edges kept every observation id that ever touched them, which made graph rows huge and crash-looped the worker during search. Each node and edge now records only its own ids, capped at 32, on extraction, temporal edges, import, mesh sync and snapshot restore (#1454, carries #1445 by @david-waltermire; fixes #1124, #825, #1153, #1168, #1339, #1360, #1374, #1378, #1443). +- **Search skips graph retrieval when `AGENTMEMORY_GRAPH_WEIGHT=0`**, so the setting removes the graph's cost and not only its influence on ranking (#1446 by @david-waltermire). +- **A failed graph snapshot read no longer zeroes the snapshot.** The write path retries once and aborts the delta instead of applying it to an empty base, and a snapshot with an unknown version is left alone (#1384 by @cbsincool, fixes #1381). +- **The graph snapshot total can no longer be lower than the nodes it returns**, so the "showing N of M" banner appears when the counter is understated (#1385 by @cbsincool, fixes #1382). +- **Ending an unknown session no longer creates a partial row** that hung the sessions listing; session end runs under the session lock and publishes `event::session::stopped` only on a real transition (#1252 by @a652, fixes #1251). +- **Memories and vectors written just before `agentmemory stop` survive the restart**, because stop waits for the engine flush (#1449). +- **Forget and governance deletes count and audit only real deletions** (#1449, fixes #1427, #1428). +- **Export refuses an oversized payload before assembling it**, reading collections with a running byte budget, and the REST endpoint returns 413 instead of 200; the standalone MCP shim surfaces the refusal instead of falling back to local data (#1449, #1422, refs #1334). +- **The iii engine auto-install download is bounded** (15 s connect, 300 s overall) and extracts only a complete archive, so a failed download no longer leaves a truncated binary (#1449). +- The ready panel keeps `--port` or `--instance` in the commands it suggests, the zero-LLM notice prints once per process, and `/status` no longer reports missing observations while the boot BM25 rebuild is running (#1449). +- **Session and graph read-modify-write paths take locks**, closing lost updates when several agents share one daemon (#1421). +- **Hooks no longer exit before their observe request is sent** on a slow start; each hook caps its exit at its request's own timeout (#1456). +- **A fresh vector index is checkpointed within 5 s** instead of waiting for the full save interval (#1448, fixes #1439). +- **The "Memory elevated" alert no longer fires on a healthy process.** Heap pressure is measured against the V8 heap limit instead of the heap Node has allocated so far (#1409, fixes #1406). +- **The viewer stops blinking and keeps data on a failed refresh.** A panel that fails to refresh keeps its last values behind a note, a first load that cannot reach the API shows Retry, and the viewer reconnects when the tab becomes visible again (#1407; #921, #1340, #609, #1370). +- **Dashboard numbers match the API**: the Memories card uses the server total (#1279, #951), token savings counts only sessions with observations (#944), session summaries stored as objects render as text (#1229), comma-separated tags no longer break the Actions, Lessons or Sessions views (#906), and Rebuild Graph asks before replaying the corpus and reports what it produced (#1383) (#1407). +- `raw_observation` stream events reach the viewer again, profile file counts no longer include search paths and patterns, and the noop LLM no longer counts summarize failures when no LLM is configured (#1433). +- **Worker shutdown no longer hangs when the engine is already gone**: the final index flush and SDK shutdown are time-boxed, with a hard exit at 8 s (#1396). +- **Fresh installs are portable and persistent**: absolute state paths, validated instance arguments, and native and Docker removal that stops the worker before the engine (#892; fixes #1241, closes #844, #700, #303). + +### Infrastructure + +- Unit tests grew from about 1,700 to 2,288 passing (`npx vitest run --exclude test/integration.test.ts`), including the restored `index_persist` audit gating suite against bucketed persistence and monthly audit scopes, originally written by @dmazhukov in #1182. +- `npm run docs:sync` and `npm run docs:check` keep the documented counts and versions in README, the translated READMEs and AGENTS.md in step with the code; run it before each commit. +- Dependabot no longer proposes `iii-sdk` bumps; the engine pin and the SDK move together by hand (#1396). `@types/node` 26.6.2 in the package and the website (#1401, #1400). +- Thanks to @MarvinFS (discussion #1358), @inix-x, @sbynode-ux, @ErikBPF and @cmondragon023, whose measurements and earlier PRs shaped the scaling work. ## [0.9.29] — 2026-08-16 @@ -168,6 +237,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.10.0]: https://github.com/rohitg00/agentmemory/compare/v0.9.29...v0.10.0 [0.9.29]: https://github.com/rohitg00/agentmemory/compare/v0.9.28...v0.9.29 [0.9.28]: https://github.com/rohitg00/agentmemory/compare/v0.9.27...v0.9.28 [0.9.27]: https://github.com/rohitg00/agentmemory/compare/v0.9.26...v0.9.27 From 2dbc7b3ba5e31e6c5057e936a5b7cc71cd5f32d2 Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Thu, 1 Oct 2026 17:12:45 +0530 Subject: [PATCH 06/26] docs(env): document AGENTMEMORY_AUDIT_INDEX_PERSIST --- .env.example | 1 + 1 file changed, 1 insertion(+) diff --git a/.env.example b/.env.example index 0c38394c63..828b7bb429 100644 --- a/.env.example +++ b/.env.example @@ -136,6 +136,7 @@ # AGENTMEMORY_IMAGE_EMBEDDINGS=true # Enable image embeddings when an image provider is present (experimental). # AGENTMEMORY_AUDIT_RETENTION_MONTHS=6 # Drop whole audit-log month scopes older than N months on a daily sweep. Default 0 = keep audit history forever. # AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES=33554432 # Largest legacy mem:audit scope file the one-time migration will read locally. Default 32 MiB; bigger or unreadable stores are left frozen. +# AGENTMEMORY_AUDIT_INDEX_PERSIST=false # Set to 1 or true to audit index migration and cleanup writes (debugging only) # AGENTMEMORY_INDEX_SAVE_INTERVAL_MS=600000 # Minimum time between search index saves; shutdown and deletes still save immediately. # AGENTMEMORY_VECTOR_BUCKET_SIZE=500 # Vectors held per storage bucket before a new bucket opens; a save only rewrites buckets it changed. # AGENTMEMORY_VECTOR_BACKFILL_MAX=500 # Cap on vectors embedded per boot to backfill ones missing since the last save. From 20abd5bc6601da1ed9f4b2d4f9357f54f25a502a Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Sat, 3 Oct 2026 13:15:41 +0530 Subject: [PATCH 07/26] docs: sync documented numbers after merging main docs:sync after the main merge: 138 REST endpoints, 2,400+ tests, 311 iii functions, 218 source files, 52,000 lines and 60 KV scopes across README, the translated READMEs, AGENTS.md and the test badge. --- AGENTS.md | 6 +++--- README.md | 6 +++--- READMEs/README.de-DE.md | 8 ++++---- READMEs/README.es-ES.md | 8 ++++---- READMEs/README.fr-FR.md | 8 ++++---- READMEs/README.hi-IN.md | 8 ++++---- READMEs/README.ja-JP.md | 8 ++++---- READMEs/README.ko-KR.md | 8 ++++---- READMEs/README.pt-BR.md | 8 ++++---- READMEs/README.ru-RU.md | 8 ++++---- READMEs/README.tr-TR.md | 8 ++++---- READMEs/README.zh-CN.md | 8 ++++---- READMEs/README.zh-TW.md | 8 ++++---- assets/tags/light/stat-tests.svg | 2 +- assets/tags/stat-tests.svg | 2 +- scripts/docs-sync.state.json | 12 ++++++------ 16 files changed, 58 insertions(+), 58 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 8109139e3b..ffab02cefa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -101,7 +101,7 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). ## Testing -- Before every commit run, in order: `npm run build`, `npm run skills:gen`, `npm run docs:sync`, `npm run skills:check`, `npm test` (2,200+ tests). Commit anything the generators changed. CI runs the same build, skills check and tests. +- Before every commit run, in order: `npm run build`, `npm run skills:gen`, `npm run docs:sync`, `npm run skills:check`, `npm test` (2,400+ tests). Commit anything the generators changed. CI runs the same build, skills check and tests. - Before any npm publish: `npm run release:gate` must pass. It installs the packed tarballs into a clean home and runs capture, recovery, restart, export/import, MCP and status checks against the installed CLI (see CONTRIBUTING.md, Release process) - Mock pattern: `vi.mock("iii-sdk")` with mock `sdk.trigger`, `kv.get/set/list` - Test files go in `test/` with `.test.ts` extension @@ -113,5 +113,5 @@ Hook scripts in `src/hooks/` are standalone Node.js scripts (no iii-sdk import). - 138 REST endpoints - 6 MCP resources, 3 MCP prompts - 12 hooks, 17 skills -- 304+ iii functions -- 2,200+ tests +- 311+ iii functions +- 2,400+ tests diff --git a/README.md b/README.md index e92b9a139b..8f202adc6b 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1376,7 +1376,7 @@ fi | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**209 source files · ~50,000 LOC · 2,200+ tests · 304 functions · 56 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. +**218 source files · ~52,000 LOC · 2,400+ tests · 311 functions · 60 KV scopes**, all on three primitives. No `agentmemory plugin install`. The plugin system is iii itself. --- @@ -1798,7 +1798,7 @@ curl -X POST http://localhost:3111/agentmemory/graph/compact -H "Content-Type: a ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.de-DE.md b/READMEs/README.de-DE.md index ac22e7160e..be3124c8a0 100644 --- a/READMEs/README.de-DE.md +++ b/READMEs/README.de-DE.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1227,7 +1227,7 @@ Volle Registry: [workers.iii.dev](https://workers.iii.dev). Jeder Worker dort ko | Prometheus / Grafana | iii OTEL + Health-Monitor | | Eigene Plugin-Systeme | `iii worker add ` | -**209 Quelldateien · ~50.000 LOC · 2.200+ Tests · 304 Funktionen · 56 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. +**218 Quelldateien · ~52.000 LOC · 2.400+ Tests · 311 Funktionen · 60 KV-Scopes**, alles auf drei Primitiven. Kein `agentmemory plugin install`. Das Plugin-System ist iii selbst. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-135 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers. +138 Endpunkte auf Port `3111`. Die REST API bindet sich standardmäßig an `127.0.0.1`. Geschützte Endpunkte verlangen `Authorization: Bearer `, wenn `AGENTMEMORY_SECRET` gesetzt ist, und Mesh-Sync-Endpunkte erfordern `AGENTMEMORY_SECRET` auf beiden Peers.
Wichtige Endpunkte @@ -1560,7 +1560,7 @@ Volle Endpunktliste: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.es-ES.md b/READMEs/README.es-ES.md index 8d8e984589..21fef9c2e0 100644 --- a/READMEs/README.es-ES.md +++ b/READMEs/README.es-ES.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1220,7 +1220,7 @@ Registro completo: [workers.iii.dev](https://workers.iii.dev). Cada worker allí | Prometheus / Grafana | iii OTEL + monitor de salud | | Sistemas de plugins propios | `iii worker add ` | -**209 ficheros de código · ~50.000 LOC · 2.200+ tests · 304 funciones · 56 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. +**218 ficheros de código · ~52.000 LOC · 2.400+ tests · 311 funciones · 60 scopes KV**, todo sobre tres primitivos. No hay `agentmemory plugin install`. El sistema de plugins es iii mismo. --- @@ -1519,7 +1519,7 @@ Crea `~/.agentmemory/.env`:

API

-135 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers. +138 endpoints en el puerto `3111`. La REST API se enlaza a `127.0.0.1` por defecto. Los endpoints protegidos requieren `Authorization: Bearer ` cuando `AGENTMEMORY_SECRET` está definido, y los endpoints de mesh sync requieren `AGENTMEMORY_SECRET` en ambos peers.
Endpoints principales @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.fr-FR.md b/READMEs/README.fr-FR.md index 80871d3946..0ffe0a38d8 100644 --- a/READMEs/README.fr-FR.md +++ b/READMEs/README.fr-FR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1227,7 +1227,7 @@ Registre complet : [workers.iii.dev](https://workers.iii.dev). Chaque worker là | Prometheus / Grafana | iii OTEL + moniteur de santé | | Systèmes de plugins personnalisés | `iii worker add ` | -**209 fichiers sources · ~50 000 LOC · 2 200+ tests · 304 fonctions · 56 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. +**218 fichiers sources · ~52 000 LOC · 2 400+ tests · 311 fonctions · 60 scopes KV**, tout sur trois primitives. Pas de `agentmemory plugin install`. Le système de plugins, c'est iii lui-même. --- @@ -1526,7 +1526,7 @@ Créez `~/.agentmemory/.env` :

API

-135 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs. +138 endpoints sur le port `3111`. L'API REST se lie à `127.0.0.1` par défaut. Les endpoints protégés exigent `Authorization: Bearer ` lorsque `AGENTMEMORY_SECRET` est défini, et les endpoints de mesh sync exigent `AGENTMEMORY_SECRET` sur les deux pairs.
Endpoints clés @@ -1560,7 +1560,7 @@ Liste complète des endpoints : [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.hi-IN.md b/READMEs/README.hi-IN.md index 6c95403a53..e1c3f75e57 100644 --- a/READMEs/README.hi-IN.md +++ b/READMEs/README.hi-IN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1209,7 +1209,7 @@ Full registry: [workers.iii.dev](https://workers.iii.dev)। वहाँ हर | Prometheus / Grafana | iii OTEL + health monitor | | Custom plugin systems | `iii worker add ` | -**209 source files · ~50,000 LOC · 2,200+ tests · 304 functions · 56 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। +**218 source files · ~52,000 LOC · 2,400+ tests · 311 functions · 60 KV scopes**, सब कुछ तीन primitives पर। कोई `agentmemory plugin install` नहीं। Plugin system iii स्वयं है। --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-Port `3111` पर 135 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं। +Port `3111` पर 138 endpoints। REST API default रूप से `127.0.0.1` से bind होता है। `AGENTMEMORY_SECRET` set होने पर protected endpoints `Authorization: Bearer ` की आवश्यकता रखते हैं, और mesh sync endpoints दोनों peers पर `AGENTMEMORY_SECRET` की आवश्यकता रखते हैं।
मुख्य endpoints @@ -1542,7 +1542,7 @@ Full endpoint list: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (running services की आवश्यकता है) ``` diff --git a/READMEs/README.ja-JP.md b/READMEs/README.ja-JP.md index 86a52abd4d..6ebe8e130e 100644 --- a/READMEs/README.ja-JP.md +++ b/READMEs/README.ja-JP.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1230,7 +1230,7 @@ iii worker add mcp # agentmemory MCP の横に汎用 MCP ホス | Prometheus / Grafana | iii OTEL + ヘルスモニタ | | カスタムプラグインシステム | `iii worker add ` | -**209 ソースファイル · ~50,000 LOC · 2,200+ テスト · 304 functions · 56 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 +**218 ソースファイル · ~52,000 LOC · 2,400+ テスト · 311 functions · 60 KV スコープ** — すべて 3 つのプリミティブの上に。`agentmemory plugin install` はありません。プラグインシステムは iii そのものです。 --- @@ -1529,7 +1529,7 @@ CONSOLIDATION_ENABLED=true

API

-ポート `3111` 上の 135 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。 +ポート `3111` 上の 138 エンドポイント。REST API はデフォルトで `127.0.0.1` にバインドします。`AGENTMEMORY_SECRET` が設定されている場合、保護されたエンドポイントは `Authorization: Bearer ` を要求し、mesh sync エンドポイントは両ピアで `AGENTMEMORY_SECRET` を要求します。
主要エンドポイント @@ -1563,7 +1563,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # ホットリロード npm run build # 本番ビルド -npm test # 2,200+ テスト +npm test # 2,400+ テスト npm run test:integration # API テスト(サービス起動が必要) ``` diff --git a/READMEs/README.ko-KR.md b/READMEs/README.ko-KR.md index a9b175cabd..cb7a2c7ca9 100644 --- a/READMEs/README.ko-KR.md +++ b/READMEs/README.ko-KR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1209,7 +1209,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + 헬스 모니터 | | 사용자 정의 플러그인 시스템 | `iii worker add ` | -**209개 소스 파일 · ~50,000 LOC · 2,200+ tests · 304개 함수 · 56개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. +**218개 소스 파일 · ~52,000 LOC · 2,400+ tests · 311개 함수 · 60개 KV 스코프**, 모두 세 가지 프리미티브 위에. `agentmemory plugin install`이 없습니다. 플러그인 시스템은 iii 자체입니다. --- @@ -1508,7 +1508,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` 포트의 135개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다. +`3111` 포트의 138개 엔드포인트. REST API는 기본적으로 `127.0.0.1`에 바인딩됩니다. 보호된 엔드포인트는 `AGENTMEMORY_SECRET`이 설정되었을 때 `Authorization: Bearer `를 요구하며, mesh sync 엔드포인트는 양쪽 피어 모두에서 `AGENTMEMORY_SECRET`을 요구합니다.
주요 엔드포인트 @@ -1542,7 +1542,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.pt-BR.md b/READMEs/README.pt-BR.md index 0ba309c33a..9850846d6a 100644 --- a/READMEs/README.pt-BR.md +++ b/READMEs/README.pt-BR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1220,7 +1220,7 @@ Registry completo: [workers.iii.dev](https://workers.iii.dev). Todo worker lá s | Prometheus / Grafana | iii OTEL + monitor de saúde | | Sistemas de plugin customizados | `iii worker add ` | -**209 arquivos de código · ~50.000 LOC · 2.200+ tests · 304 funções · 56 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. +**218 arquivos de código · ~52.000 LOC · 2.400+ tests · 311 funções · 60 escopos KV**, tudo em cima de três primitivos. Sem `agentmemory plugin install`. O sistema de plugins é o próprio iii. --- @@ -1519,7 +1519,7 @@ Crie `~/.agentmemory/.env`:

API

-135 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers. +138 endpoints na porta `3111`. A REST API faz bind em `127.0.0.1` por padrão. Endpoints protegidos exigem `Authorization: Bearer ` quando `AGENTMEMORY_SECRET` está definido, e endpoints de mesh sync exigem `AGENTMEMORY_SECRET` em ambos os peers.
Endpoints principais @@ -1553,7 +1553,7 @@ Lista completa de endpoints: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.ru-RU.md b/READMEs/README.ru-RU.md index 86db7b519d..ce63b9a7b5 100644 --- a/READMEs/README.ru-RU.md +++ b/READMEs/README.ru-RU.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1227,7 +1227,7 @@ iii worker add mcp # generic MCP host alongside the agentmemory | Prometheus / Grafana | iii OTEL + монитор состояния | | Самописные плагинные системы | `iii worker add ` | -**209 исходных файла · ~50 000 LOC · 2 200+ тестов · 304 функции · 56 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. +**218 исходных файла · ~52 000 LOC · 2 400+ тестов · 311 функции · 60 KV-scope'ов** — всё на трёх примитивах. Никакого `agentmemory plugin install`. Плагинная система — это сам iii. --- @@ -1526,7 +1526,7 @@ CONSOLIDATION_ENABLED=true

API

-135 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах. +138 эндпоинта на порту `3111`. REST API по умолчанию слушает на `127.0.0.1`. Защищённые эндпоинты требуют `Authorization: Bearer `, когда установлен `AGENTMEMORY_SECRET`, а эндпоинты mesh-синхронизации требуют `AGENTMEMORY_SECRET` на обоих узлах.
Ключевые эндпоинты @@ -1560,7 +1560,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API tests (requires running services) ``` diff --git a/READMEs/README.tr-TR.md b/READMEs/README.tr-TR.md index 81dfff465f..21305662bc 100644 --- a/READMEs/README.tr-TR.md +++ b/READMEs/README.tr-TR.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1229,7 +1229,7 @@ Tam kayıt defteri: [workers.iii.dev](https://workers.iii.dev). Oradaki her work | Prometheus / Grafana | iii OTEL + sağlık monitörü | | Özel eklenti sistemleri | `iii worker add ` | -**209 kaynak dosya · ~50,000 LOC · 2,200+ test · 304 fonksiyon · 56 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. +**218 kaynak dosya · ~52,000 LOC · 2,400+ test · 311 fonksiyon · 60 KV scope**, hepsi üç primitif üzerinde. `agentmemory plugin install` yok. Eklenti sistemi iii'nin kendisi. --- @@ -1528,7 +1528,7 @@ CONSOLIDATION_ENABLED=true

API

-`3111` portunda 135 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir. +`3111` portunda 138 endpoint. REST API varsayılan olarak `127.0.0.1`'e bağlanır. `AGENTMEMORY_SECRET` ayarlandığında korumalı endpoint'ler `Authorization: Bearer ` gerektirir ve mesh sync endpoint'leri her iki eşte de `AGENTMEMORY_SECRET` gerektirir.
Önemli endpoint'ler @@ -1562,7 +1562,7 @@ Tam endpoint listesi: [`src/triggers/api.ts`](../src/triggers/api.ts) ```bash npm run dev # Hot reload npm run build # Production build -npm test # 2,200+ tests +npm test # 2,400+ tests npm run test:integration # API testleri (çalışan servisler gerektirir) ``` diff --git a/READMEs/README.zh-CN.md b/READMEs/README.zh-CN.md index c2dcb55b5c..6e5b6a3414 100644 --- a/READMEs/README.zh-CN.md +++ b/READMEs/README.zh-CN.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁开通用 MCP | Prometheus / Grafana | iii OTEL + 健康监控 | | 自定义插件系统 | `iii worker add ` | -**209 个源文件 · ~50,000 行代码 · 2,200+ 个测试 · 304 个函数 · 56 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 +**218 个源文件 · ~52,000 行代码 · 2,400+ 个测试 · 311 个函数 · 60 个 KV 作用域**,全部基于三种原语。没有 `agentmemory plugin install`。插件系统就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-端口 `3111` 上的 135 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。 +端口 `3111` 上的 138 个端点。REST API 默认绑定 `127.0.0.1`。当 `AGENTMEMORY_SECRET` 已设置时,受保护端点需要 `Authorization: Bearer `,网状同步端点要求两端都设置 `AGENTMEMORY_SECRET`。
关键端点 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 热重载 npm run build # 生产构建 -npm test # 2,200+ 测试 +npm test # 2,400+ 测试 npm run test:integration # API 测试(需要服务运行中) ``` diff --git a/READMEs/README.zh-TW.md b/READMEs/README.zh-TW.md index 3e6af31959..67fac6bf13 100644 --- a/READMEs/README.zh-TW.md +++ b/READMEs/README.zh-TW.md @@ -50,7 +50,7 @@ 54 MCP tools 12 auto hooks 0 external DBs - 2,200+ tests passing + 2,400+ tests passing

@@ -1226,7 +1226,7 @@ iii worker add mcp # 在 agentmemory 的 MCP 旁開設通用 MCP | Prometheus / Grafana | iii OTEL + 健康監控 | | 自訂外掛系統 | `iii worker add ` | -**209 個原始檔 · ~50,000 行程式碼 · 2,200+ 測試 · 304 個函式 · 56 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 +**218 個原始檔 · ~52,000 行程式碼 · 2,400+ 測試 · 311 個函式 · 60 個 KV 範圍**,全部基於三種原語。沒有 `agentmemory plugin install`。外掛系統就是 iii 本身。 --- @@ -1525,7 +1525,7 @@ CONSOLIDATION_ENABLED=true

API

-連接埠 `3111` 上的 135 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。 +連接埠 `3111` 上的 138 個端點。REST API 預設繫結 `127.0.0.1`。當 `AGENTMEMORY_SECRET` 已設定時,受保護端點需要 `Authorization: Bearer `,網狀同步端點要求兩端都設定 `AGENTMEMORY_SECRET`。
關鍵端點 @@ -1559,7 +1559,7 @@ CONSOLIDATION_ENABLED=true ```bash npm run dev # 熱重新載入 npm run build # 生產建置 -npm test # 2,200+ 測試 +npm test # 2,400+ 測試 npm run test:integration # API 測試(需要服務執行中) ``` diff --git a/assets/tags/light/stat-tests.svg b/assets/tags/light/stat-tests.svg index 4329256652..a20531f1a2 100644 --- a/assets/tags/light/stat-tests.svg +++ b/assets/tags/light/stat-tests.svg @@ -1,5 +1,5 @@ - 2200+ + 2400+ TESTS PASSING diff --git a/assets/tags/stat-tests.svg b/assets/tags/stat-tests.svg index df5957dfb3..68d7fc6594 100644 --- a/assets/tags/stat-tests.svg +++ b/assets/tags/stat-tests.svg @@ -1,5 +1,5 @@ - 2200+ + 2400+ TESTS PASSING diff --git a/scripts/docs-sync.state.json b/scripts/docs-sync.state.json index b82d17a671..c171b91590 100644 --- a/scripts/docs-sync.state.json +++ b/scripts/docs-sync.state.json @@ -11,7 +11,7 @@ "7" ], "restEndpoints": [ - "135" + "138" ], "skills": [ "17" @@ -20,19 +20,19 @@ "12" ], "tests": [ - "2200+" + "2400+" ], "functions": [ - "304" + "311" ], "sourceFiles": [ - "209" + "218" ], "loc": [ - "50000" + "52000" ], "kvScopes": [ - "56" + "60" ] } } From 1e0477e76228387d414b63f03446241070e38c1c Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Sat, 3 Oct 2026 13:15:41 +0530 Subject: [PATCH 08/26] docs(changelog): finalize the 0.10.0 release notes Rewrite the 0.10.0 entry to cover everything merged since 0.9.29, including durable capture, the offline hook spool, the vector pending log, auth by default, request hardening, the verified engine download, the release gate and the capture cost bench. Group it into breaking changes, upgrade notes, first start migrations, added, fixed, security, performance and docs. Date 2026-10-03. --- CHANGELOG.md | 182 ++++++++++++++++++++++++++++----------------------- 1 file changed, 100 insertions(+), 82 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f8c4b4d03..86f10d6e10 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,104 +6,122 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] -## [0.10.0] — 2026-10-01 +## [0.10.0] - 2026-10-03 -Scale and durability release. The iii engine moves from 0.11.2 to 0.22.1, the stores that grew without bound on shared daemons (graph provenance, the audit log, the vector index, the viewer stream backlog) are bounded and heal themselves at boot, state is saved every 2 s and `agentmemory stop` waits for the engine to flush, Redis becomes an opt-in state backend, and the viewer is rebuilt around one snapshot plus live stream events with a new Health page backed by `GET /agentmemory/status`. Contributions from @david-waltermire, @joyjit, @cristianbdev, @cbsincool, @a652 and @dmazhukov. +Scale, durability and safety release. The iii engine moves from 0.11.2 to 0.22.1. The stores that grew without bound on shared daemons (graph provenance, the audit log, the vector index, the viewer stream backlog) are bounded and heal themselves at boot. Capture is durable end to end: the server accepts each observation into a persistent inbox with a restart-safe event id, and hooks keep an offline spool while the server is down. Vectors survive a force-kill through a pending log. The REST API requires auth by default. Redis becomes an opt-in state backend, and the viewer is rebuilt around one snapshot plus live stream events with a Health page backed by `GET /agentmemory/status`. Every publish now goes through a release gate that installs the packed tarballs and runs capture and recovery against them. Contributions from david-waltermire, a652, cbsincool and dmazhukov, with earlier work by DaveCole, Srinath279, joyjit and cristianbdev carried into merged PRs. -### Upgrade notes +### Breaking changes -- **iii engine 0.22.1.** The CLI downloads the pinned engine into `~/.agentmemory/bin`, `docker-compose.yml` pulls `iiidev/iii:0.22.1`, and the deploy templates (`deploy/fly`, `railway`, `render`, `coolify`) pin `III_VERSION` and `III_SDK_VERSION` 0.22.1 with `AGENTMEMORY_VERSION` 0.10.0. Existing state stores load unchanged. Keep the `iii-` prefixed builtin worker names (`iii-http`, `iii-state`, `iii-queue`, `iii-pubsub`, `iii-cron`) in any custom config: on 0.22.1 the bare names resolve to standalone registry workers. -- **One-time background graph compaction at boot.** Stores written before provenance was capped can hold thousands of observation ids per graph node or edge. A few seconds after the first start the worker trims every node, edge, superseded edge and the cached snapshot to 32 ids, in slices with a pause between them, without blocking boot, search or the viewer. Progress is saved, resumes after a restart, and the pass never runs again once done. `/agentmemory/status` and the viewer Health page show it. Set `AGENTMEMORY_GRAPH_COMPACT_ON_BOOT=false` to skip it, and run `POST /agentmemory/graph/compact` by hand instead (sliced with `scope`, `offset` and `limit`, then one `{"scope":"snapshot"}` call). -- **The audit log moves to monthly scopes** (`mem:audit:YYYY-MM`). A one-time background migration at boot copies legacy rows into their months and then deletes the legacy keys; legacy `index_persist` rows are dropped and one `audit_migrate` summary row records the purge. A legacy scope file larger than `AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES` (default 32 MiB) or unreadable is left frozen instead: nothing writes to it, and readers report it as `legacyFrozen` / `legacyFrozenBytes`. `AGENTMEMORY_AUDIT_RETENTION_MONTHS` (default 0, keep everything) drops whole months on a daily timer. -- **Index storage migrates to buckets without re-embedding.** On first boot the old sharded or monolithic vector snapshot is read once and written into fixed buckets (`AGENTMEMORY_VECTOR_BUCKET_SIZE`, default 500); only then are the old shards deleted. An unreadable snapshot is left in place, and a failed write keeps it and retries. Vectors are copied, not recomputed, so the migration makes no embedding calls. BM25 is no longer persisted: it is rebuilt from stored observations and memories at every boot. -- **Redis backend is opt-in.** `AGENTMEMORY_STATE_BACKEND=redis` with `AGENTMEMORY_REDIS_URL` (plain `redis://` only) moves state and streams to Redis; the file store stays the default and its config is unchanged. Switching starts with an empty store, so move data with `agentmemory export` and `import`. Use one Redis server per agentmemory instance: Redis pub/sub ignores the database index, so instances sharing a server see each other's live viewer events. -- **State is saved every 2 s** instead of 5 s (`AGENTMEMORY_STATE_SAVE_INTERVAL_MS`), so a hard kill loses at most that window. -- **`agentmemory stop` waits for the engine to flush.** It gives the worker 9 s to shut down, then waits one state save interval plus 1.5 s (capped at 15 s, none on Redis) before stopping the engine. Expect stop to take a few seconds longer than before. -- **Search index saves are throttled** to once per `AGENTMEMORY_INDEX_SAVE_INTERVAL_MS` (default 10 minutes), with the first checkpoint on a fresh index within 5 s and saves on shutdown, deletes and explicit flushes. Vectors missing after a crash are backfilled for documents newer than the last save, capped by `AGENTMEMORY_VECTOR_BACKFILL_MAX` (default 500) per boot; embedding an entire existing store needs `AGENTMEMORY_VECTOR_BACKFILL=all`. -- **Stale sessions are marked abandoned.** An hourly sweep marks sessions left active for more than `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS` (default 24) as `abandoned`. It deletes nothing, and new activity makes the session active again. `AGENTMEMORY_SESSION_SWEEP_ENABLED=false` turns it off. -- **Hooks skip agentmemory's own tools.** PostToolUse no longer captures `memory_*` MCP calls or `toolsearch`, `listmcpresources` and `fetchmcpresource`. `AGENTMEMORY_CAPTURE_ALLOW`, `AGENTMEMORY_CAPTURE_DENY`, `AGENTMEMORY_CAPTURE_OUTPUT_MAX` (default 8000 characters) and `AGENTMEMORY_PRE_COMPACT_BUDGET` (default 1500, 0 disables) tune capture. +- **Auth is on by default** (#1462). When `AGENTMEMORY_SECRET` is not set, the server generates a secret into `~/.agentmemory/secret` (mode 0600) on first start. The CLI, viewer, hooks, MCP server and shim, `agentmemory connect` configs and the bundled integrations read it for loopback URLs, so they keep working with no change. Hand-written requests to `:3111` now need `Authorization: Bearer $(cat ~/.agentmemory/secret)`. An explicit `AGENTMEMORY_SECRET` still wins, and mesh sync still requires an explicit one. +- **File import and export paths are confined** (#1462). `/compress-file`, `/replay/import-jsonl`, `/graph/import-graphify`, the Obsidian export and `/migrate` resolve symlinks and only accept paths inside the data dir, `~/.agentmemory` or a directory listed in `AGENTMEMORY_IMPORT_ROOT`. `/replay/import-jsonl` also keeps its default `~/.claude/projects`. +- **Browser writes need JSON and an allowed origin** (#1462). `POST`, `PUT`, `PATCH` and `DELETE` requests with a body must send `Content-Type: application/json`, and a present `Origin` header must be a loopback origin for the configured ports, the viewer's own origin, or listed in `VIEWER_ALLOWED_ORIGINS`. Clients that send no `Origin` (CLI, hooks, MCP, curl) are unaffected. +- **`AGENTMEMORY_VECTOR_BACKFILL_MAX` is now a batch size** (#1467). Recovery re-embeds missing vectors in batches of this size until the backlog is empty, across restarts, instead of stopping at the cap once per boot. +- **iii engine 0.22.1** (#1396, #1397). Keep the `iii-` prefixed builtin worker names (`iii-http`, `iii-state`, `iii-queue`, `iii-pubsub`, `iii-cron`) in any custom config: on 0.22.1 the bare names resolve to standalone registry workers. +- **Hooks skip agentmemory's own tools** (#1452). PostToolUse no longer captures `memory_*` MCP calls or `toolsearch`, `listmcpresources` and `fetchmcpresource`. - **Changed response shapes.** - - `mem::forget`, `mem::governance-delete` and `mem::governance-bulk` count only records that were really deleted. Absent ids come back in the new `notFound` field and failed deletes in `failed` and `failures`, with `success: false` when anything failed. `governance-bulk` refuses an empty filter and unsupported keys on both the dry run and the live call. - - `GET /agentmemory/audit` and the `memory_audit` MCP tool return `{ entries, legacyFrozen, legacyFrozenBytes }`; the MCP tool used to return a bare list. `GET /audit` also takes date and text filters. - - `GET /agentmemory/memories` returns newest first and adds `nextCursor` (plus `search` and `facets` when requested). Memories, sessions and observations accept `cursor` and `limit` for cursor pagination, with project, agent, type, status and `q` filters. - - `GET /agentmemory/export` returns 413 with the refusal body (`oversized`, `bytes`, `limitBytes`, `stoppedAt`) instead of 200 when the export is too large. - - `POST /agentmemory/session/end` for an unknown, malformed or already completed session returns 200 with `ended: false` and writes nothing. - - `memory_patterns` / `mem::patterns` reads the 50 most recent sessions by default (`limit`, max 500) and stops after 5,000 observations, instead of scanning every session. - - Consolidation decay applies at most once per decay period, and `results.decay` reports `{ scanned, written }` per tier. -- **Viewer stream groups.** Observations no longer write to per-session `mem-live` stream groups, and the shared `viewer` group is capped at `AGENTMEMORY_VIEWER_STREAM_MAX` (default 500). Existing per-session groups are left in place. + - `mem::forget`, `mem::governance-delete` and `mem::governance-bulk` count only records that were really deleted. Absent ids come back in `notFound` and failed deletes in `failed` and `failures`, with `success: false` when anything failed. `governance-bulk` refuses an empty filter and unsupported keys on both the dry run and the live call (#1449). + - `GET /agentmemory/audit` and the `memory_audit` MCP tool return `{ entries, legacyFrozen, legacyFrozenBytes }`; the MCP tool used to return a bare list (#1419). + - `GET /agentmemory/memories` returns newest first and adds `nextCursor` (plus `search` and `facets` when requested) (#1433). + - `GET /agentmemory/export` returns 413 with the refusal body (`oversized`, `bytes`, `limitBytes`, `stoppedAt`) instead of 200 when the export is too large (#1422, #1449). + - `POST /agentmemory/session/end` for an unknown, malformed or already completed session returns 200 with `ended: false` and writes nothing (#1252). + - `memory_patterns` / `mem::patterns` reads the 50 most recent sessions by default (`limit`, max 500) and stops after 5,000 observations (#1424). + - Consolidation decay applies at most once per decay period, and `results.decay` reports `{ scanned, written }` per tier (#1417). -### Security +### Upgrade notes -- **`GET /agentmemory/status` serves HTML with no scripts** under `default-src 'none'` with a nonce for styles, `Cache-Control: no-store`, every value escaped, and the same bearer auth as the rest of the API (#1408). -- **The Redis URL stays out of files and output.** The generated engine config holds `${AGENTMEMORY_REDIS_URL}` for the engine to expand, credentials in engine output printed by the CLI are redacted, and `/agentmemory/status` and the viewer show the backend but never the URL (#1425). -- **`mem::governance-bulk` cannot widen a dry run to the whole store.** Empty filters and unsupported keys such as `ids` or `concepts` are refused on both paths, and `project` is applied on both (#1449). -- **The pinned engine starts quiet.** The CLI spawns it with `--no-update-check` and with iii's anonymous usage telemetry off (`III_TELEMETRY_ENABLED=false` unless you export it yourself); the bundled compose file does the same (#1396). -- A profile read no longer writes a `share` audit entry (#1433). +- Scripts or tools that call the REST API by hand on `:3111`: add `Authorization: Bearer $(cat ~/.agentmemory/secret)`, or set your own `AGENTMEMORY_SECRET` and send that. +- Imports or exports from folders outside `~/.agentmemory` and the data dir: list those folders in `AGENTMEMORY_IMPORT_ROOT` (separate several with `:`, or `;` on Windows). +- A web page on another origin that writes through the viewer: add its origin to `VIEWER_ALLOWED_ORIGINS`. +- Nothing else is required. Stores load unchanged, and the one-time migrations below run by themselves. -### Added +### What happens on the first start -- **Rebuilt viewer that streams every page** (#1433, #1407). It loads one snapshot on connect (`GET /agentmemory/viewer/snapshot`, `GET /agentmemory/counts`) and then applies `.created/updated/deleted` events for memories, lessons, actions, crystals, semantic and procedural memory and audit rows, plus `graph.changed`, `consolidation.run`, `health` and `counts.changed`. Nothing polls: the only requests are the snapshot on (re)connect, actions you click, "load more" and searches. 12 tabs in four groups with live counts, deep links, keyboard shortcuts and a mobile menu; a `?` glossary on every term and number; empty states that say what a section is, why it is empty and the command that fills it, using the live origin; a Memories detail panel with the version chain, word diff, provenance and copy buttons for the id, MCP call and curl; edit, forget, bulk forget and export; sessions with an inline observation timeline; a graph with search, node detail and an accessible legend; reconnect with backoff and stale and offline states. New endpoints back it: cursor pagination and facets on memories, sessions and observations, `GET /graph/node`, `GET /observations/locate`. -- **`GET /agentmemory/status` and a Health tab in the viewer** (#1408). One report of what is wrong and how to fix it: health monitor state and alerts, LLM and embedding providers and the circuit breaker, functions failing on at least 20% of their calls (with provider-specific fixes), observations missing from the search index, graph snapshot age, index save state per leg (#1415), the state backend, graph compaction progress, ports, uptime, the pinned engine version and every feature flag with how to enable it. Browsers get HTML, everything else JSON (`?format=json|html` forces either). Every probe is time-boxed at 5 s. -- **`GET /agentmemory/consolidation/status`** and a "Memory layers" panel that says for each layer what it is built from, its count, and whether it is off (with the setting to change), waiting (with progress), ready, active or failed (#1407). -- **Opt-in Redis backend for state and streams**: `AGENTMEMORY_STATE_BACKEND=file|redis` and `AGENTMEMORY_REDIS_URL` (#1425). Every state and stream path was audited on Redis; agentmemory applies `state::update` itself under a per-key lock (the engine's Lua path turns empty arrays into `{}`), orders listings deterministically, sizes the legacy audit scope from the hash, and reports an unreachable store or a stopped live relay on `/status` with the fix. -- **`POST /agentmemory/graph/compact`** trims oversized node, edge, edge history and snapshot provenance, sliced with `scope`, `offset` and `limit` (#1454, carries #1445 by @david-waltermire), and **`AGENTMEMORY_GRAPH_COMPACT_ON_BOOT`** runs it once in the background after upgrade (#1455). -- **Stale session sweep**: `AGENTMEMORY_SESSION_SWEEP_ENABLED` and `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS`, with one `session_sweep` audit entry per run that abandons sessions (#1453, carries #1411 by @cristianbdev). -- **Capture filters for hooks**: `AGENTMEMORY_CAPTURE_ALLOW`, `AGENTMEMORY_CAPTURE_DENY`, `AGENTMEMORY_CAPTURE_OUTPUT_MAX` and `AGENTMEMORY_PRE_COMPACT_BUDGET` (#1452, carries #994 by @joyjit). -- **`AGENTMEMORY_AUDIT_INDEX_PERSIST`** (off by default) re-enables index persistence audit rows for debugging (#1182 by @dmazhukov). -- **`AGENTMEMORY_AUDIT_RETENTION_MONTHS`** and **`AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES`** for the monthly audit log (#1419). -- **`AGENTMEMORY_STATE_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_INDEX_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_VECTOR_BUCKET_SIZE`**, **`AGENTMEMORY_VECTOR_BACKFILL`** / **`AGENTMEMORY_VECTOR_BACKFILL_MAX`** and **`AGENTMEMORY_VIEWER_STREAM_MAX`** (#1457, #1415, #1416, #1420). -- **`agentmemory console`** launches the iii web console through the pinned engine against the ports agentmemory resolved, one port above the viewer by default (`--console-port` overrides). The "install iii console?" prompt and the `skipConsoleInstall` preference are gone (#1397). -- **Multi-instance installs**: `--instance N` gets its own port quartet, data directory and lifecycle state; `--port` derives the stream, viewer and engine ports; the pinned engine stays private to agentmemory when another iii version is on PATH; Docker stop and restart keep the exact container and `/data` mount (#892). -- `memory_patterns` takes an optional `limit` (#1424). -- `POST /lessons` accepts `sourceIds`, and `mem::evolve` takes the remember lock, moves index entries to the new version and returns 409, 400 and 404 errors (#1433). +- **Graph provenance is compacted once in the background.** Every node, edge, superseded edge and the cached snapshot is trimmed to 32 observation ids in slices, without blocking boot, search or the viewer. Progress is saved and resumes after a restart. `AGENTMEMORY_GRAPH_COMPACT_ON_BOOT=false` skips it; `POST /agentmemory/graph/compact` runs it by hand (#1455). +- **The audit log moves to monthly scopes** (`mem:audit:YYYY-MM`) with a one-time background migration. A legacy scope larger than `AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES` (default 32 MiB) or unreadable is left frozen and reported as `legacyFrozen` (#1419). +- **The vector index migrates to buckets** (`AGENTMEMORY_VECTOR_BUCKET_SIZE`, default 500) by copying vectors, with no embedding calls. BM25 is no longer persisted and is rebuilt at every boot (#1416). +- **State is saved every 2 s** instead of 5 s, and `agentmemory stop` waits for the engine flush, so it takes a few seconds longer (#1457, #1449). +- **Stale sessions are marked abandoned** after `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS` (default 24) by an hourly sweep that deletes nothing (#1453). +- **Viewer stream groups.** Observations stop writing to per-session `mem-live` groups and the shared `viewer` group is capped at `AGENTMEMORY_VIEWER_STREAM_MAX` (default 500). Existing per-session groups are left in place (#1420). -### Changed +### Added -- **iii engine and `iii-sdk` move from 0.11.2 to 0.22.1, with `@iii-dev/helpers` 0.22.1 alongside** (#1396, #1397). 0.22.1 keeps HTTP routes owned by a reconnecting worker, so `/agentmemory/*` no longer answers 404 after the engine reconnects (#1013), and its Node SDK bounds WebSocket connect attempts and detects half-open sockets. `agentmemory upgrade` pins both packages to the version this package was built against. -- **Runtime config is re-seeded on every start.** Engines from 0.19.4 on persist each builtin worker's `config:` block on first boot and treat that copy as the source of truth, which made `--port`, `--instance` and data-dir changes silently ineffective after the first run. The CLI clears those persisted entries right before it spawns the engine, and stops with the path if one cannot be removed. The bundled compose file keeps that directory on a tmpfs (#1396, #1397). -- **Vectors are stored per key in fill-and-roll buckets**, and a save writes only the vectors that changed plus a metadata record, so a save rewrites a few buckets instead of the whole index and the store no longer hits V8's string limit at about 49,000 vectors (#1416). -- **Index saves are throttled and each leg reports its own state.** BM25 and vector saves are independent, so a failing BM25 save no longer skips the vector save (#1415, co-authored with @inix-x, from #1256). -- **The audit log lives in monthly scopes** and every reader goes through one query that reads months newest first (#1419, supersedes #1176 by @sbynode-ux). -- **Session start context and observation lookups use small secondary indexes** (a per-project session index and an observation-to-session index sharded over 64 scopes) instead of listing every session (#1418, co-authored with @ErikBPF from #1091 and @cmondragon023 from #1230). -- **`mem::remember` calls the embedding provider outside the global save lock**, so concurrent saves no longer wait on each other's embedding round trips (#1423). -- **`mem::patterns` is bounded** to recent sessions and an observation budget (#1424, fixes #1226). -- **Consolidation decay writes only rows that changed** and applies at most once per decay period (#1417). -- **Observations keep a bounded, sanitized copy of their source** (16 KiB per record within an 8 MiB session allowance) for replay and export, while search, context, listings and feeds stay summary-only (#1448, fixes #1196). -- **The viewer stream backlog is bounded** and observations stop writing to per-session stream groups that nothing read (#1420, with measurements from @MarvinFS in discussion #1358). -- **State saves every 2 s**, the engine gets `MALLOC_ARENA_MAX=2` on Linux, and Docker and deploy entrypoints raise the engine's open-file limit (#1457). -- Procedures are extracted from finished sessions: `mem::skill-extract` runs for the stopping session inside the consolidation cooldown when consolidation is on and an LLM provider is configured (#1407). -- Consolidation and provider detection use the same check (`OPENAI_BASE_URL` alone no longer turns consolidation on), and functions that need an LLM show as off instead of failed (#1433). -- The deploy Dockerfiles refuse to build when `III_VERSION` and `III_SDK_VERSION` differ, and the deploy entrypoints generate the same observability settings as the bundled config (#1396). -- The README section on registry workers lists only workers that do not already ship in `iii-config.yaml` and uses the current registry names (#1396). +- **Durable capture** (#1460). Hooks send a stable event id with every observation (the host tool use id when present, otherwise a hash of the event). The server writes each event to a capture inbox before storing it, keeps completed ids for `AGENTMEMORY_CAPTURE_DEDUP_HOURS`, and answers a replay with the existing observation. Failed writes retry with backoff, also after a restart, and end as dead letters shown on `/status`, the viewer Health page and `GET /agentmemory/capture`, with `POST /agentmemory/capture/retry` to retry them. +- **Offline hook spool** (#1460, #1468). When the server is down, times out or returns a 5xx, hooks keep a copy of the observation in a bounded private spool under the data dir until the engine has saved it. The spool drains at boot and from the next hook that reaches the server. New: `agentmemory capture [--drain]` and `POST /agentmemory/capture/drain`. +- **Vector pending log** (#1467). Every vector added to or removed from the live index is also written to a small pending log. Boot replays it after the snapshot with 0 embedding calls, and whatever is still missing is re-embedded as a durable backlog that resumes after a restart instead of stopping at a 500 cap. `/status` and the viewer show the log size and a paused backfill. +- **Release gate** (#1463). `npm run release:gate` packs `@agentmemory/agentmemory` and `@agentmemory/mcp`, installs both tarballs into a clean home and runs named scenarios against the installed CLI: capture through the bundled hooks, offline capture recovered from the spool, replay dedup after a force kill, dead letters that survive a restart, vectors surviving a crash, stop and start, export and import, the MCP shim, the viewer and `/status`. A Release gate workflow runs it on Ubuntu and macOS. +- **Capture cost bench** (#1464). `npm run bench:capture-costs` measures disk bytes per state scope, engine and worker memory and CPU, hook latency, provider requests, agent-visible context bytes and force-kill recovery, with separate capture and recovery budgets in `benchmark/capture-costs-budgets.json` and a figure in `docs/benchmarks/capture-costs.svg`. Optional Ollama, Redis and crash-offline variants. +- **Rebuilt viewer that streams every page** (#1433, #1407). One snapshot on connect (`GET /agentmemory/viewer/snapshot`, `GET /agentmemory/counts`), then live `.created/updated/deleted` events with no polling. 12 tabs in four groups with live counts, deep links, keyboard shortcuts and a mobile menu, a memories detail panel with version chain, diff and provenance, sessions with an inline timeline, and a searchable graph. Cursor pagination and facets on memories, sessions and observations, `GET /graph/node` and `GET /observations/locate` back it. +- **`GET /agentmemory/status` and a Health tab in the viewer** (#1408). One report of what is wrong and how to fix it: providers and circuit breaker, failing functions, observations missing from the search index, index save state per leg (#1415), the state backend, graph compaction progress, capture inbox and spool, ports, the pinned engine version and every feature flag. HTML for browsers, JSON otherwise. +- **`GET /agentmemory/consolidation/status`** and a "Memory layers" panel (#1407). +- **Opt-in Redis backend for state and streams**: `AGENTMEMORY_STATE_BACKEND=file|redis` and `AGENTMEMORY_REDIS_URL` (#1425). Use one Redis server per instance, and move data with `agentmemory export` and `import` when switching. +- **`POST /agentmemory/graph/compact`** trims oversized node, edge, edge history and snapshot provenance in slices (#1454, carries #1445 by david-waltermire), and **`AGENTMEMORY_GRAPH_COMPACT_ON_BOOT`** runs it once after upgrade (#1455). +- **Stale session sweep**: `AGENTMEMORY_SESSION_SWEEP_ENABLED` and `AGENTMEMORY_SESSION_SWEEP_STALE_HOURS` (#1453, carries #1411 by cristianbdev). +- **Capture filters for hooks**: `AGENTMEMORY_CAPTURE_ALLOW`, `AGENTMEMORY_CAPTURE_DENY`, `AGENTMEMORY_CAPTURE_OUTPUT_MAX` (default 8000) and `AGENTMEMORY_PRE_COMPACT_BUDGET` (default 1500, 0 disables) (#1452, carries #994 by joyjit). +- **`AGENTMEMORY_AUDIT_INDEX_PERSIST`** (off by default) re-enables index persistence audit rows for debugging (#1182 by dmazhukov). +- **`AGENTMEMORY_AUDIT_RETENTION_MONTHS`** and **`AGENTMEMORY_AUDIT_MIGRATE_MAX_BYTES`** for the monthly audit log (#1419). +- **`AGENTMEMORY_STATE_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_INDEX_SAVE_INTERVAL_MS`**, **`AGENTMEMORY_VECTOR_BUCKET_SIZE`**, **`AGENTMEMORY_VECTOR_BACKFILL`** and **`AGENTMEMORY_VIEWER_STREAM_MAX`** (#1457, #1415, #1416, #1420). +- **`agentmemory console`** launches the iii web console through the pinned engine; the "install iii console?" prompt and the `skipConsoleInstall` preference are gone (#1397). +- **Multi-instance installs**: `--instance N` gets its own port quartet, data directory and lifecycle state, and `--port` derives the other ports (#892). +- Procedures are extracted from finished sessions when consolidation is on and an LLM provider is configured (#1407). +- `memory_patterns` takes an optional `limit` (#1424). `POST /lessons` accepts `sourceIds`, and `mem::evolve` returns 409, 400 and 404 errors (#1433). ### Fixed -- **Graph provenance is bounded.** Nodes and edges kept every observation id that ever touched them, which made graph rows huge and crash-looped the worker during search. Each node and edge now records only its own ids, capped at 32, on extraction, temporal edges, import, mesh sync and snapshot restore (#1454, carries #1445 by @david-waltermire; fixes #1124, #825, #1153, #1168, #1339, #1360, #1374, #1378, #1443). -- **Search skips graph retrieval when `AGENTMEMORY_GRAPH_WEIGHT=0`**, so the setting removes the graph's cost and not only its influence on ranking (#1446 by @david-waltermire). -- **A failed graph snapshot read no longer zeroes the snapshot.** The write path retries once and aborts the delta instead of applying it to an empty base, and a snapshot with an unknown version is left alone (#1384 by @cbsincool, fixes #1381). -- **The graph snapshot total can no longer be lower than the nodes it returns**, so the "showing N of M" banner appears when the counter is understated (#1385 by @cbsincool, fixes #1382). -- **Ending an unknown session no longer creates a partial row** that hung the sessions listing; session end runs under the session lock and publishes `event::session::stopped` only on a real transition (#1252 by @a652, fixes #1251). -- **Memories and vectors written just before `agentmemory stop` survive the restart**, because stop waits for the engine flush (#1449). -- **Forget and governance deletes count and audit only real deletions** (#1449, fixes #1427, #1428). -- **Export refuses an oversized payload before assembling it**, reading collections with a running byte budget, and the REST endpoint returns 413 instead of 200; the standalone MCP shim surfaces the refusal instead of falling back to local data (#1449, #1422, refs #1334). -- **The iii engine auto-install download is bounded** (15 s connect, 300 s overall) and extracts only a complete archive, so a failed download no longer leaves a truncated binary (#1449). -- The ready panel keeps `--port` or `--instance` in the commands it suggests, the zero-LLM notice prints once per process, and `/status` no longer reports missing observations while the boot BM25 rebuild is running (#1449). +- **Repeated identical prompts are kept** (#1468). Hooks whose host sends no event id or time now include the hook timestamp in the id, so typing the same prompt twice stores it twice; retries still reuse the stored id. +- **Cursor prompts are stored once** (#1470). A per-session prompt ledger matches the session-end transcript back-fill against live captures, so a back-filled prompt is answered as a duplicate instead of stored a second time. Live prompts are never deduped by content. +- **Concurrent spool writers cannot overwrite each other** (#1468), and printed recovery commands (dead letter retry, spool drain, graph compact, the status page example) send the bearer token. +- **Graph provenance is bounded.** Each node and edge records only its own observation ids, capped at 32, which stops huge graph rows from crash-looping the worker during search (#1454, carries #1445 by david-waltermire). +- **Search skips graph retrieval when `AGENTMEMORY_GRAPH_WEIGHT=0`** (#1446 by david-waltermire). +- **A failed graph snapshot read no longer zeroes the snapshot**; the delta is aborted instead (#1384 by cbsincool). +- **The graph snapshot total can no longer be lower than the nodes it returns** (#1385 by cbsincool). +- **Ending an unknown session no longer creates a partial row** that hung the sessions listing (#1252 by a652). +- **Memories and vectors written just before `agentmemory stop` survive the restart** (#1449). +- **Forget and governance deletes count and audit only real deletions** (#1449). +- **Export refuses an oversized payload before assembling it** and the REST endpoint returns 413; the MCP shim surfaces the refusal (#1449, #1422). - **Session and graph read-modify-write paths take locks**, closing lost updates when several agents share one daemon (#1421). -- **Hooks no longer exit before their observe request is sent** on a slow start; each hook caps its exit at its request's own timeout (#1456). -- **A fresh vector index is checkpointed within 5 s** instead of waiting for the full save interval (#1448, fixes #1439). -- **The "Memory elevated" alert no longer fires on a healthy process.** Heap pressure is measured against the V8 heap limit instead of the heap Node has allocated so far (#1409, fixes #1406). -- **The viewer stops blinking and keeps data on a failed refresh.** A panel that fails to refresh keeps its last values behind a note, a first load that cannot reach the API shows Retry, and the viewer reconnects when the tab becomes visible again (#1407; #921, #1340, #609, #1370). -- **Dashboard numbers match the API**: the Memories card uses the server total (#1279, #951), token savings counts only sessions with observations (#944), session summaries stored as objects render as text (#1229), comma-separated tags no longer break the Actions, Lessons or Sessions views (#906), and Rebuild Graph asks before replaying the corpus and reports what it produced (#1383) (#1407). -- `raw_observation` stream events reach the viewer again, profile file counts no longer include search paths and patterns, and the noop LLM no longer counts summarize failures when no LLM is configured (#1433). -- **Worker shutdown no longer hangs when the engine is already gone**: the final index flush and SDK shutdown are time-boxed, with a hard exit at 8 s (#1396). -- **Fresh installs are portable and persistent**: absolute state paths, validated instance arguments, and native and Docker removal that stops the worker before the engine (#892; fixes #1241, closes #844, #700, #303). +- **Hooks no longer exit before their observe request is sent** on a slow start (#1456). +- **A fresh vector index is checkpointed within 5 s** and observations keep a bounded, sanitized copy of their source for replay and export (#1448). +- **Runtime config is re-seeded on every start**, so `--port`, `--instance` and data-dir changes take effect after the first run (#1396, #1397). +- **The "Memory elevated" alert no longer fires on a healthy process** (#1409). +- **The viewer stops blinking and keeps data on a failed refresh**, and dashboard numbers match the API (#1407). +- Consolidation and provider detection use the same check, and functions that need an LLM show as off instead of failed (#1433). +- Worker shutdown no longer hangs when the engine is already gone (#1396). +- Fresh installs are portable and persistent, and native and Docker removal stops the worker before the engine (#892). -### Infrastructure +### Security + +- **Request hardening** (#1462, supersedes #878 by DaveCole and #922 by Srinath279). Auth on by default, origin and content type checks on writes, and confined file paths, as described under Breaking changes. Confined files are replaced only after the new content is fully written, and a destination that is a symlink is refused. +- **Scrubbing on every write** (#1462). Write functions run the secret scrubber on their input, and compression, summary, crystal, graph, replay, team share, session title, commit message and image description text is scrubbed before storage. New patterns cover PEM private key blocks and credentials in URLs. Stored text is escaped before it goes into the injected context block. +- **Clients resolve the API secret the same way as the server** (#1462): environment first, then `~/.agentmemory/.env`, then the generated secret file, and the stored secret is only sent to loopback URLs. +- **Supply chain** (#1461). The automatic engine installer verifies the downloaded archive against a SHA-256 pinned in the CLI for each platform before extracting it, and refuses an unpinned version or platform. `npm run engine:hashes` refreshes the pins. Installer paths reach the shell as arguments, so a home directory containing shell syntax is never evaluated. The CI workflow runs with read-only permissions, and the deploy Dockerfiles check that the copied iii binary matches `III_VERSION`. +- `GET /agentmemory/status` serves HTML with no scripts under a strict CSP and the same bearer auth as the rest of the API (#1408). +- The Redis URL stays out of files and output (#1425). +- `mem::governance-bulk` cannot widen a dry run to the whole store (#1449). +- The pinned engine starts with `--no-update-check` and iii's anonymous usage telemetry off (#1396). +- A profile read no longer writes a `share` audit entry (#1433). -- Unit tests grew from about 1,700 to 2,288 passing (`npx vitest run --exclude test/integration.test.ts`), including the restored `index_persist` audit gating suite against bucketed persistence and monthly audit scopes, originally written by @dmazhukov in #1182. -- `npm run docs:sync` and `npm run docs:check` keep the documented counts and versions in README, the translated READMEs and AGENTS.md in step with the code; run it before each commit. -- Dependabot no longer proposes `iii-sdk` bumps; the engine pin and the SDK move together by hand (#1396). `@types/node` 26.6.2 in the package and the website (#1401, #1400). -- Thanks to @MarvinFS (discussion #1358), @inix-x, @sbynode-ux, @ErikBPF and @cmondragon023, whose measurements and earlier PRs shaped the scaling work. +### Performance + +- **Vectors are stored per key in fill-and-roll buckets**, so a save rewrites a few buckets instead of the whole index and the store no longer hits V8's string limit at about 49,000 vectors (#1416). +- **Index saves are throttled and each leg reports its own state**; a failing BM25 save no longer skips the vector save (#1415). +- **The audit log lives in monthly scopes** read newest first (#1419). +- **Session start context and observation lookups use small secondary indexes** instead of listing every session (#1418). +- **`mem::remember` calls the embedding provider outside the global save lock** (#1423). +- **`mem::patterns` is bounded** to recent sessions and an observation budget (#1424). +- **Consolidation decay writes only rows that changed** (#1417). +- **The viewer stream backlog is bounded** (#1420). +- **Faster state saves**, `MALLOC_ARENA_MAX=2` for the engine on Linux, and a higher open-file limit in Docker and deploy entrypoints (#1457). + +### Docs and internal + +- `npm run docs:sync` and `npm run docs:check` keep the documented counts and versions in README, the translated READMEs and AGENTS.md in step with the code. +- The README documents auth by default, request rules, file path roots, the capture inbox and spool, and the pending vector log (#1460, #1462, #1467). +- Code and tests no longer cite issue or PR numbers (#1469). +- The `index_persist` audit gating suite is restored against bucketed persistence and monthly audit scopes, originally written by dmazhukov in #1182. +- Unit tests grew from about 1,700 to more than 2,400. +- Dependabot no longer proposes `iii-sdk` bumps; the engine pin and the SDK move together by hand (#1396). `dotenv` 18.0.3 (#1430) and `@types/node` 26.6.2 (#1401, #1400). +- The deploy Dockerfiles refuse to build when `III_VERSION` and `III_SDK_VERSION` differ (#1396). +- Thanks to MarvinFS (discussion #1358), inix-x, sbynode-ux, ErikBPF and cmondragon023, whose measurements and earlier PRs shaped the scaling work. ## [0.9.29] — 2026-08-16 From 9c157568431eda9dd006b09cdf0191887838cf64 Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Mon, 5 Oct 2026 13:14:20 +0530 Subject: [PATCH 09/26] chore: release as 0.9.30 instead of 0.10.0 Sets the package, plugin manifests, bridge, deploy templates, export format list and tests to 0.9.30, dates the changelog entry to the release day, and adds the embedding key precedence, structured SessionStart context and engine config docs merged from main. --- .cursor-plugin/plugin.json | 2 +- AGENTS.md | 2 +- CHANGELOG.md | 7 +++++-- deploy/coolify/Dockerfile | 2 +- deploy/coolify/docker-compose.yml | 2 +- deploy/fly/Dockerfile | 2 +- deploy/railway/Dockerfile | 2 +- deploy/render/Dockerfile | 2 +- deploy/render/render.yaml | 2 +- integrations/hermes/plugin.yaml | 2 +- integrations/openclaw/openclaw.plugin.json | 2 +- integrations/openclaw/package.json | 2 +- package.json | 2 +- packages/mcp/package.json | 4 ++-- plugin/.claude-plugin/plugin.json | 2 +- plugin/.codex-plugin/plugin.json | 2 +- plugin/.devin-plugin/plugin.json | 2 +- plugin/opencode/plugin.json | 2 +- plugin/plugin.json | 2 +- plugin/scripts/plugin-bridge.mjs | 2 +- scripts/docs-sync.state.json | 2 +- src/functions/export-import.ts | 2 +- src/types.ts | 2 +- src/version.ts | 2 +- test/capture-review-fixes.test.ts | 2 +- test/graph-compact-boot.test.ts | 2 +- test/plugin-published-compatibility.test.ts | 4 ++-- 27 files changed, 33 insertions(+), 30 deletions(-) diff --git a/.cursor-plugin/plugin.json b/.cursor-plugin/plugin.json index 6931e4b46a..f1c6698cc1 100644 --- a/.cursor-plugin/plugin.json +++ b/.cursor-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/AGENTS.md b/AGENTS.md index 7fa4f94eba..b7b5bb4d1b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -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.10.0) +## Current Stats (v0.9.30) - 54 MCP tools (8 visible by default, `AGENTMEMORY_TOOLS=all` for all) - 138 REST endpoints diff --git a/CHANGELOG.md b/CHANGELOG.md index 266d7183f8..516588097a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), ## [Unreleased] -## [0.10.0] - 2026-10-03 +## [0.9.30] - 2026-10-05 Scale, durability and safety release. The iii engine moves from 0.11.2 to 0.22.1. The stores that grew without bound on shared daemons (graph provenance, the audit log, the vector index, the viewer stream backlog) are bounded and heal themselves at boot. Capture is durable end to end: the server accepts each observation into a persistent inbox with a restart-safe event id, and hooks keep an offline spool while the server is down. Vectors survive a force-kill through a pending log. The REST API requires auth by default. Redis becomes an opt-in state backend, and the viewer is rebuilt around one snapshot plus live stream events with a Health page backed by `GET /agentmemory/status`. Every publish now goes through a release gate that installs the packed tarballs and runs capture and recovery against them. Contributions from david-waltermire, a652, cbsincool and dmazhukov, with earlier work by DaveCole, Srinath279, joyjit and cristianbdev carried into merged PRs. @@ -88,6 +88,8 @@ Scale, durability and safety release. The iii engine moves from 0.11.2 to 0.22.1 - Consolidation and provider detection use the same check, and functions that need an LLM show as off instead of failed (#1433). - Worker shutdown no longer hangs when the engine is already gone (#1396). - Fresh installs are portable and persistent, and native and Docker removal stops the worker before the engine (#892). +- **`OPENAI_EMBEDDING_API_KEY` is honored** when the embedding provider is auto-detected or chosen, and wins over `OPENAI_API_KEY`; blank keys count as unset (#1472). +- **SessionStart context reaches hosts that expect structured hook output.** When the hook input names the `SessionStart` event, context is returned as `hookSpecificOutput.additionalContext`; hosts that send no event name still get plain text (#1472). ### Security @@ -117,6 +119,7 @@ Scale, durability and safety release. The iii engine moves from 0.11.2 to 0.22.1 - `npm run docs:sync` and `npm run docs:check` keep the documented counts and versions in README, the translated READMEs and AGENTS.md in step with the code. - The README documents auth by default, request rules, file path roots, the capture inbox and spool, and the pending vector log (#1460, #1462, #1467). +- The README, the config skill reference and `agentmemory --help` document `AGENTMEMORY_III_CONFIG` and the engine bind address, including the Docker engine config (#1472). - Code and tests no longer cite issue or PR numbers (#1469). - The `index_persist` audit gating suite is restored against bucketed persistence and monthly audit scopes, originally written by dmazhukov in #1182. - Unit tests grew from about 1,700 to more than 2,400. @@ -256,7 +259,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.10.0]: https://github.com/rohitg00/agentmemory/compare/v0.9.29...v0.10.0 +[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 [0.9.28]: https://github.com/rohitg00/agentmemory/compare/v0.9.27...v0.9.28 [0.9.27]: https://github.com/rohitg00/agentmemory/compare/v0.9.26...v0.9.27 diff --git a/deploy/coolify/Dockerfile b/deploy/coolify/Dockerfile index 70cff35b6a..62105fcbde 100644 --- a/deploy/coolify/Dockerfile +++ b/deploy/coolify/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.10.0 +ARG AGENTMEMORY_VERSION=0.9.30 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/coolify/docker-compose.yml b/deploy/coolify/docker-compose.yml index 09f9ba525a..62c078acdf 100644 --- a/deploy/coolify/docker-compose.yml +++ b/deploy/coolify/docker-compose.yml @@ -4,7 +4,7 @@ services: context: . dockerfile: Dockerfile args: - AGENTMEMORY_VERSION: "0.10.0" + AGENTMEMORY_VERSION: "0.9.30" III_VERSION: "0.22.1" III_SDK_VERSION: "0.22.1" restart: unless-stopped diff --git a/deploy/fly/Dockerfile b/deploy/fly/Dockerfile index 903dff4069..3abf36632f 100644 --- a/deploy/fly/Dockerfile +++ b/deploy/fly/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.10.0 +ARG AGENTMEMORY_VERSION=0.9.30 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/railway/Dockerfile b/deploy/railway/Dockerfile index 903dff4069..3abf36632f 100644 --- a/deploy/railway/Dockerfile +++ b/deploy/railway/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.10.0 +ARG AGENTMEMORY_VERSION=0.9.30 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/render/Dockerfile b/deploy/render/Dockerfile index 903dff4069..3abf36632f 100644 --- a/deploy/render/Dockerfile +++ b/deploy/render/Dockerfile @@ -4,7 +4,7 @@ FROM iiidev/iii:${III_VERSION} AS iii-image FROM node:22-slim -ARG AGENTMEMORY_VERSION=0.10.0 +ARG AGENTMEMORY_VERSION=0.9.30 ARG III_VERSION=0.22.1 ARG III_SDK_VERSION=0.22.1 diff --git a/deploy/render/render.yaml b/deploy/render/render.yaml index 5755274707..17150b74b8 100644 --- a/deploy/render/render.yaml +++ b/deploy/render/render.yaml @@ -15,7 +15,7 @@ services: - key: PORT value: "3111" - key: AGENTMEMORY_VERSION - value: "0.10.0" + value: "0.9.30" - key: III_VERSION value: "0.22.1" - key: III_SDK_VERSION diff --git a/integrations/hermes/plugin.yaml b/integrations/hermes/plugin.yaml index a52d1ee418..25b3dc951e 100644 --- a/integrations/hermes/plugin.yaml +++ b/integrations/hermes/plugin.yaml @@ -1,5 +1,5 @@ name: agentmemory -version: 0.10.0 +version: 0.9.30 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" diff --git a/integrations/openclaw/openclaw.plugin.json b/integrations/openclaw/openclaw.plugin.json index 86c8d167d4..e6b67e090f 100644 --- a/integrations/openclaw/openclaw.plugin.json +++ b/integrations/openclaw/openclaw.plugin.json @@ -3,7 +3,7 @@ "kind": "memory", "name": "agentmemory", "description": "Persistent cross-session memory for OpenClaw via agentmemory.", - "version": "0.10.0", + "version": "0.9.30", "configSchema": { "type": "object", "additionalProperties": false, diff --git a/integrations/openclaw/package.json b/integrations/openclaw/package.json index f5d8c98dfc..d22e1c4dd8 100644 --- a/integrations/openclaw/package.json +++ b/integrations/openclaw/package.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "type": "module", "openclaw": { "extensions": [ diff --git a/package.json b/package.json index 562d63d687..0441e623f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/agentmemory", - "version": "0.10.0", + "version": "0.9.30", "description": "Persistent memory for AI coding agents, powered by iii-engine's three primitives", "type": "module", "main": "dist/index.mjs", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index af0520f881..0d90a18b81 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@agentmemory/mcp", - "version": "0.10.0", + "version": "0.9.30", "description": "Standalone MCP server for agentmemory — thin shim that re-exposes @agentmemory/agentmemory's MCP entrypoint", "type": "module", "bin": { @@ -28,7 +28,7 @@ "homepage": "https://github.com/rohitg00/agentmemory#readme", "bugs": "https://github.com/rohitg00/agentmemory/issues", "dependencies": { - "@agentmemory/agentmemory": "~0.10.0" + "@agentmemory/agentmemory": "~0.9.30" }, "publishConfig": { "access": "public", diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 5f86bc8670..44e0dac552 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/plugin/.codex-plugin/plugin.json b/plugin/.codex-plugin/plugin.json index 828979cec6..b79927a6cc 100644 --- a/plugin/.codex-plugin/plugin.json +++ b/plugin/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/plugin/.devin-plugin/plugin.json b/plugin/.devin-plugin/plugin.json index a4d041d0fe..f4e00e4885 100644 --- a/plugin/.devin-plugin/plugin.json +++ b/plugin/.devin-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/plugin/opencode/plugin.json b/plugin/opencode/plugin.json index 01b8303516..02a334f7a5 100644 --- a/plugin/opencode/plugin.json +++ b/plugin/opencode/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory-capture", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/plugin/plugin.json b/plugin/plugin.json index 42d17df9cf..2577bd9e03 100644 --- a/plugin/plugin.json +++ b/plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "agentmemory", - "version": "0.10.0", + "version": "0.9.30", "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", diff --git a/plugin/scripts/plugin-bridge.mjs b/plugin/scripts/plugin-bridge.mjs index 9f64aea6d0..4d71a279b2 100644 --- a/plugin/scripts/plugin-bridge.mjs +++ b/plugin/scripts/plugin-bridge.mjs @@ -3,7 +3,7 @@ import { readFileSync } from "node:fs"; import { homedir } from "node:os"; import { join } from "node:path"; //#region src/version.ts -const VERSION = "0.10.0"; +const VERSION = "0.9.30"; //#endregion //#region src/secret-store.ts const SECRET_KEY = "AGENTMEMORY_SECRET"; diff --git a/scripts/docs-sync.state.json b/scripts/docs-sync.state.json index 3dc5786435..4fab8b8840 100644 --- a/scripts/docs-sync.state.json +++ b/scripts/docs-sync.state.json @@ -1,5 +1,5 @@ { - "version": "0.10.0", + "version": "0.9.30", "facts": { "mcpTools": [ "54" diff --git a/src/functions/export-import.ts b/src/functions/export-import.ts index 3009bf9190..c2a0add01e 100644 --- a/src/functions/export-import.ts +++ b/src/functions/export-import.ts @@ -226,7 +226,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.10.0"]); + 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.30"]); if (!supportedVersions.has(importData.version)) { return { success: false, diff --git a/src/types.ts b/src/types.ts index 33921764f6..f9a1298f0e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -356,7 +356,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.10.0"; + 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.30"; exportedAt: string; sessions: Session[]; observations: Record; diff --git a/src/version.ts b/src/version.ts index 832b0d3573..95b0e98ee9 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ -export const VERSION = "0.10.0"; +export const VERSION = "0.9.30"; export const III_PINNED_VERSION = "0.22.1"; diff --git a/test/capture-review-fixes.test.ts b/test/capture-review-fixes.test.ts index 7db797d937..5b64fc27b9 100644 --- a/test/capture-review-fixes.test.ts +++ b/test/capture-review-fixes.test.ts @@ -132,7 +132,7 @@ describe("spool operations without the lock", () => { function statusInputs(capture: CaptureStatus | null | undefined): StatusInputs { return { now: new Date("2026-10-02T12:00:00.000Z"), - version: "0.10.0", + version: "0.9.30", engineVersion: "0.22.1", uptimeSeconds: 60, stateBackend: "file", diff --git a/test/graph-compact-boot.test.ts b/test/graph-compact-boot.test.ts index bd1f88de9a..fa81a2ab6c 100644 --- a/test/graph-compact-boot.test.ts +++ b/test/graph-compact-boot.test.ts @@ -336,7 +336,7 @@ describe("AGENTMEMORY_GRAPH_COMPACT_ON_BOOT", () => { describe("graph compaction in /agentmemory/status", () => { const base: StatusInputs = { now: new Date("2026-10-01T12:00:00.000Z"), - version: "0.10.0", + version: "0.9.30", engineVersion: "0.22.1", uptimeSeconds: 10, stateBackend: "file", diff --git a/test/plugin-published-compatibility.test.ts b/test/plugin-published-compatibility.test.ts index 946a63d726..c0571f0363 100644 --- a/test/plugin-published-compatibility.test.ts +++ b/test/plugin-published-compatibility.test.ts @@ -1,8 +1,8 @@ import { describe, expect, it } from "vitest"; import { publishedCompatibilityErrors } from "../scripts/plugins/verify-published.mjs"; -const local = { version: "0.10.0", dependencies: { "iii-sdk": "0.22.1", "@iii-dev/helpers": "0.22.1" } }; -const shim = { version: "0.10.0", dependencies: { "@agentmemory/agentmemory": "0.10.0" } }; +const local = { version: "0.9.30", dependencies: { "iii-sdk": "0.22.1", "@iii-dev/helpers": "0.22.1" } }; +const shim = { version: "0.9.30", dependencies: { "@agentmemory/agentmemory": "0.9.30" } }; describe("published plugin compatibility gate", () => { it("accepts an exact runtime, engine SDK, helper, and shim match", () => { From 62eec44e60e0df1c3462660bb8c5c2198219d4f4 Mon Sep 17 00:00:00 2001 From: Rohit Ghumare Date: Mon, 5 Oct 2026 17:37:32 +0530 Subject: [PATCH 10/26] feat(website): rebuild agent-memory.dev around use cases and sourced proof The site leads with what changes for the user instead of how the project is tested, and every number on it links to where it came from. - Monochrome design with Geist, a 1.25 type scale and shared motion tokens; light and dark themes with a toggle. - Hero with a rotating headline across memory types and agents, the install command, a copyable setup prompt for coding agents, and a canvas of the local memory store that answers recall queries. - Live numbers fetched at build time: GitHub stars, contributors, releases, and all-time npm installs of the CLI plus the MCP shim. - Use cases rendered as agent sessions: one memory across Claude Code, Cursor and Codex, session start context, handoff, lessons, commit context and transcript import. - "What your agent gets": a month of history reduced to the 1,571 tokens the next session needs, with sourced recall, token and latency results. - Scroll walkthrough from tool call to recall, LongMemEval-S question matrix, agents grid with connect commands, local-first boundary, viewer screenshots, quotes, FAQ with structured data, and install. - New pages: /benchmarks, /security (including the release gate), /privacy, /changelog generated from CHANGELOG.md, and /vs comparison pages linked from the footer. - robots.txt, sitemap.xml, llms.txt and llms-full.txt for agents and search, and a monochrome Open Graph image. - metadataBase now points at agent-memory.dev instead of the parked agentmemory.dev domain, which broke link previews. - Checked at 13 widths from 320 to 1920 pixels with visible scrollbars, in light and dark themes, with reduced motion respected throughout. --- CHANGELOG.md | 1 + website/app/benchmarks/page.module.css | 39 + website/app/benchmarks/page.tsx | 242 ++++++ website/app/changelog/changelog.module.css | 116 +++ website/app/changelog/page.tsx | 83 ++ website/app/globals.css | 432 +++++++---- website/app/layout.tsx | 48 +- website/app/llms-full.txt/route.ts | 9 + website/app/llms.txt/route.ts | 9 + website/app/opengraph-image.tsx | 147 ++-- website/app/page.tsx | 58 +- website/app/privacy/page.tsx | 42 + website/app/robots.ts | 56 ++ website/app/security/page.tsx | 172 +++++ website/app/sitemap.ts | 24 + website/app/vs/[slug]/page.tsx | 154 ++++ website/app/vs/page.tsx | 35 + website/app/vs/vs.module.css | 193 +++++ website/components/AgentInstall.module.css | 225 ------ website/components/AgentInstall.tsx | 333 -------- website/components/Agents.module.css | 216 ------ website/components/Agents.tsx | 328 -------- website/components/CommandCenter.module.css | 207 ----- website/components/CommandCenter.tsx | 164 ---- website/components/Compare.module.css | 79 -- website/components/Compare.tsx | 51 -- website/components/FeaturedIn.module.css | 149 ---- website/components/FeaturedIn.tsx | 123 --- website/components/Features.module.css | 63 -- website/components/Features.tsx | 123 --- website/components/Footer.module.css | 49 -- website/components/Footer.tsx | 40 - .../components/GitHubStarButton.module.css | 31 - website/components/GitHubStarButton.tsx | 93 --- website/components/Hero.module.css | 115 --- website/components/Hero.tsx | 45 -- website/components/HeroNpxCommand.module.css | 64 -- website/components/HeroNpxCommand.tsx | 33 - website/components/Install.module.css | 95 --- website/components/Install.tsx | 120 --- website/components/LiveTerminal.module.css | 101 --- website/components/LiveTerminal.tsx | 159 ---- website/components/MemoryGraph.module.css | 46 -- website/components/MemoryGraph.tsx | 104 --- website/components/MobileNavToggle.module.css | 103 --- website/components/MobileNavToggle.tsx | 111 --- website/components/Nav.module.css | 125 --- website/components/Nav.tsx | 72 -- website/components/Primitives.module.css | 53 -- website/components/Primitives.tsx | 51 -- website/components/ScrollProgress.tsx | 49 -- website/components/Stats.module.css | 72 -- website/components/Stats.tsx | 111 --- website/components/Testimonials.module.css | 206 ----- website/components/Testimonials.tsx | 142 ---- website/components/site/Agents.module.css | 222 ++++++ website/components/site/Agents.tsx | 81 ++ website/components/site/BenchFigures.tsx | 150 ++++ website/components/site/Benchmarks.module.css | 467 +++++++++++ website/components/site/Benchmarks.tsx | 70 ++ .../components/site/ContextFunnel.module.css | 376 +++++++++ website/components/site/ContextFunnel.tsx | 169 ++++ website/components/site/Doc.module.css | 135 ++++ website/components/site/Doc.tsx | 42 + website/components/site/Durability.module.css | 147 ++++ website/components/site/Durability.tsx | 108 +++ website/components/site/Faq.module.css | 107 +++ website/components/site/Faq.tsx | 36 + website/components/site/Footer.module.css | 98 +++ website/components/site/Footer.tsx | 110 +++ website/components/site/Hero.module.css | 222 ++++++ website/components/site/Hero.tsx | 69 ++ website/components/site/HeroTitle.module.css | 87 +++ website/components/site/HeroTitle.tsx | 73 ++ website/components/site/InTheWild.module.css | 203 +++++ website/components/site/InTheWild.tsx | 84 ++ website/components/site/InfraTiles.module.css | 359 +++++++++ website/components/site/InfraTiles.tsx | 149 ++++ website/components/site/Install.module.css | 244 ++++++ website/components/site/Install.tsx | 110 +++ website/components/site/Interfaces.module.css | 195 +++++ website/components/site/Interfaces.tsx | 103 +++ website/components/site/LocalFirst.module.css | 420 ++++++++++ website/components/site/LocalFirst.tsx | 104 +++ website/components/site/Logo.module.css | 73 ++ website/components/site/Logo.tsx | 26 + .../components/site/MemoryField.module.css | 79 ++ website/components/site/MemoryField.tsx | 348 +++++++++ .../components/site/MemoryScroll.module.css | 443 +++++++++++ website/components/site/MemoryScroll.tsx | 182 +++++ website/components/site/Nav.module.css | 101 +++ website/components/site/Nav.tsx | 42 + website/components/site/Proof.module.css | 65 ++ website/components/site/Proof.tsx | 28 + website/components/site/UseCases.module.css | 723 ++++++++++++++++++ website/components/site/UseCases.tsx | 423 ++++++++++ website/components/site/client.tsx | 186 +++++ website/lib/bench.ts | 70 ++ website/lib/compare.ts | 348 +++++++++ website/lib/generated-changelog.json | 62 ++ website/lib/generated-meta.json | 15 +- website/lib/github.ts | 39 - website/lib/llms.ts | 138 ++++ website/lib/markdown.tsx | 146 ++++ website/lib/meta.ts | 29 +- website/lib/rest.ts | 82 ++ website/lib/site.ts | 162 ++++ website/lib/trust.ts | 43 ++ website/scripts/gen-meta.mjs | 135 +++- 109 files changed, 10265 insertions(+), 4574 deletions(-) create mode 100644 website/app/benchmarks/page.module.css create mode 100644 website/app/benchmarks/page.tsx create mode 100644 website/app/changelog/changelog.module.css create mode 100644 website/app/changelog/page.tsx create mode 100644 website/app/llms-full.txt/route.ts create mode 100644 website/app/llms.txt/route.ts create mode 100644 website/app/privacy/page.tsx create mode 100644 website/app/robots.ts create mode 100644 website/app/security/page.tsx create mode 100644 website/app/sitemap.ts create mode 100644 website/app/vs/[slug]/page.tsx create mode 100644 website/app/vs/page.tsx create mode 100644 website/app/vs/vs.module.css delete mode 100644 website/components/AgentInstall.module.css delete mode 100644 website/components/AgentInstall.tsx delete mode 100644 website/components/Agents.module.css delete mode 100644 website/components/Agents.tsx delete mode 100644 website/components/CommandCenter.module.css delete mode 100644 website/components/CommandCenter.tsx delete mode 100644 website/components/Compare.module.css delete mode 100644 website/components/Compare.tsx delete mode 100644 website/components/FeaturedIn.module.css delete mode 100644 website/components/FeaturedIn.tsx delete mode 100644 website/components/Features.module.css delete mode 100644 website/components/Features.tsx delete mode 100644 website/components/Footer.module.css delete mode 100644 website/components/Footer.tsx delete mode 100644 website/components/GitHubStarButton.module.css delete mode 100644 website/components/GitHubStarButton.tsx delete mode 100644 website/components/Hero.module.css delete mode 100644 website/components/Hero.tsx delete mode 100644 website/components/HeroNpxCommand.module.css delete mode 100644 website/components/HeroNpxCommand.tsx delete mode 100644 website/components/Install.module.css delete mode 100644 website/components/Install.tsx delete mode 100644 website/components/LiveTerminal.module.css delete mode 100644 website/components/LiveTerminal.tsx delete mode 100644 website/components/MemoryGraph.module.css delete mode 100644 website/components/MemoryGraph.tsx delete mode 100644 website/components/MobileNavToggle.module.css delete mode 100644 website/components/MobileNavToggle.tsx delete mode 100644 website/components/Nav.module.css delete mode 100644 website/components/Nav.tsx delete mode 100644 website/components/Primitives.module.css delete mode 100644 website/components/Primitives.tsx delete mode 100644 website/components/ScrollProgress.tsx delete mode 100644 website/components/Stats.module.css delete mode 100644 website/components/Stats.tsx delete mode 100644 website/components/Testimonials.module.css delete mode 100644 website/components/Testimonials.tsx create mode 100644 website/components/site/Agents.module.css create mode 100644 website/components/site/Agents.tsx create mode 100644 website/components/site/BenchFigures.tsx create mode 100644 website/components/site/Benchmarks.module.css create mode 100644 website/components/site/Benchmarks.tsx create mode 100644 website/components/site/ContextFunnel.module.css create mode 100644 website/components/site/ContextFunnel.tsx create mode 100644 website/components/site/Doc.module.css create mode 100644 website/components/site/Doc.tsx create mode 100644 website/components/site/Durability.module.css create mode 100644 website/components/site/Durability.tsx create mode 100644 website/components/site/Faq.module.css create mode 100644 website/components/site/Faq.tsx create mode 100644 website/components/site/Footer.module.css create mode 100644 website/components/site/Footer.tsx create mode 100644 website/components/site/Hero.module.css create mode 100644 website/components/site/Hero.tsx create mode 100644 website/components/site/HeroTitle.module.css create mode 100644 website/components/site/HeroTitle.tsx create mode 100644 website/components/site/InTheWild.module.css create mode 100644 website/components/site/InTheWild.tsx create mode 100644 website/components/site/InfraTiles.module.css create mode 100644 website/components/site/InfraTiles.tsx create mode 100644 website/components/site/Install.module.css create mode 100644 website/components/site/Install.tsx create mode 100644 website/components/site/Interfaces.module.css create mode 100644 website/components/site/Interfaces.tsx create mode 100644 website/components/site/LocalFirst.module.css create mode 100644 website/components/site/LocalFirst.tsx create mode 100644 website/components/site/Logo.module.css create mode 100644 website/components/site/Logo.tsx create mode 100644 website/components/site/MemoryField.module.css create mode 100644 website/components/site/MemoryField.tsx create mode 100644 website/components/site/MemoryScroll.module.css create mode 100644 website/components/site/MemoryScroll.tsx create mode 100644 website/components/site/Nav.module.css create mode 100644 website/components/site/Nav.tsx create mode 100644 website/components/site/Proof.module.css create mode 100644 website/components/site/Proof.tsx create mode 100644 website/components/site/UseCases.module.css create mode 100644 website/components/site/UseCases.tsx create mode 100644 website/components/site/client.tsx create mode 100644 website/lib/bench.ts create mode 100644 website/lib/compare.ts create mode 100644 website/lib/generated-changelog.json delete mode 100644 website/lib/github.ts create mode 100644 website/lib/llms.ts create mode 100644 website/lib/markdown.tsx create mode 100644 website/lib/rest.ts create mode 100644 website/lib/site.ts create mode 100644 website/lib/trust.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 516588097a..3641360ea3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -117,6 +117,7 @@ Scale, durability and safety release. The iii engine moves from 0.11.2 to 0.22.1 ### Docs and internal +- **agent-memory.dev is rebuilt** around use cases and sourced proof: agent sessions showing what memory changes, a view of the 1,571 tokens the next session gets out of a month of history, live GitHub and all-time npm numbers, and new /benchmarks, /security, /privacy, /changelog and /vs comparison pages. It ships robots.txt, a sitemap, llms.txt and llms-full.txt, and link previews now point at agent-memory.dev instead of a parked domain. - `npm run docs:sync` and `npm run docs:check` keep the documented counts and versions in README, the translated READMEs and AGENTS.md in step with the code. - The README documents auth by default, request rules, file path roots, the capture inbox and spool, and the pending vector log (#1460, #1462, #1467). - The README, the config skill reference and `agentmemory --help` document `AGENTMEMORY_III_CONFIG` and the engine bind address, including the Docker engine config (#1472). diff --git a/website/app/benchmarks/page.module.css b/website/app/benchmarks/page.module.css new file mode 100644 index 0000000000..15af8fa976 --- /dev/null +++ b/website/app/benchmarks/page.module.css @@ -0,0 +1,39 @@ +.figure { + margin-bottom: var(--s-8); +} + +.tableWrap { + overflow-x: auto; + border: 1px solid var(--line); + border-radius: var(--radius); + background: var(--surface); +} + +.tableWrap table { + font-variant-numeric: tabular-nums; +} + +.tableWrap td, +.tableWrap th { + white-space: nowrap; +} + +.tableWrap tr:last-child td { + border-bottom: 0; +} + +.tableWrap td:first-child { + color: var(--ink); +} + +.facts { + list-style: none; + padding: 0 !important; +} + +.facts li { + padding: 12px 14px; + border: 1px solid var(--line); + border-radius: var(--radius); + background: var(--surface); +} diff --git a/website/app/benchmarks/page.tsx b/website/app/benchmarks/page.tsx new file mode 100644 index 0000000000..c40a3ea665 --- /dev/null +++ b/website/app/benchmarks/page.tsx @@ -0,0 +1,242 @@ +import type { Metadata } from "next"; +import { DocPage, Prose } from "@/components/site/Doc"; +import { QuestionDots } from "@/components/site/BenchFigures"; +import { LONGMEMEVAL, TOKENS, src } from "@/lib/site"; +import { BUDGETS, RECOVERY_FACTS, REPRODUCE, TOKEN_SETUP, TYPE_HITS, benchSrc } from "@/lib/bench"; +import s from "./page.module.css"; + +export const metadata: Metadata = { + title: "Benchmarks", + description: + "How agentmemory is measured: LongMemEval-S retrieval recall, token cost per query, crash recovery and the resource budgets the cost bench enforces. Every number links to its source file.", + alternates: { canonical: "/benchmarks" }, +}; + +const pct = (n: number) => `${n.toFixed(1)}%`; +const mib = (kib: number) => `${(kib / 1024).toFixed(0)} MiB`; +const kib = (bytes: number) => `${(bytes / 1024).toFixed(1)} KiB`; +const sec = (ms: number) => `${(ms / 1000).toFixed(1)} s`; + +const TOKEN_ROWS = [ + { name: "Load every observation", r5: 37.0, r10: 55.8, p5: 78.0, ndcg: 80.3, mrr: 82.5, tokens: TOKENS.fullContext }, + { name: "BM25 only, keyless", r5: 43.8, r10: 55.9, p5: 95.0, ndcg: 82.7, mrr: 95.5, tokens: TOKENS.agentmemory }, + { name: "BM25 + local vectors", r5: 43.8, r10: 64.1, p5: 98.0, ndcg: 94.9, mrr: 100.0, tokens: TOKENS.agentmemory }, +]; + +function Src({ href, children }: { href: string; children: string }) { + return ( + + {children} + + ); +} + +export default function BenchmarksPage() { + return ( + +
+ +
+ + +

What is measured

+
    +
  • + Dataset. LongMemEval-S: {LONGMEMEVAL.questions} questions, about 48 sessions and 115K tokens + per question. dataset paper +
  • +
  • + Metric. recall_any@K: does any gold session appear in the top K results. Each question builds + a fresh index from its own sessions and searches with the question text. +
  • +
  • + Embeddings. {LONGMEMEVAL.embedding}. No API key and no LLM in the loop. +
  • +
  • + What it is not. This is retrieval recall, not end-to-end answer accuracy. The official + LongMemEval score adds answer generation and an LLM judge, and we do not claim one. +
  • +
+ +

Retrieval recall

+
+ + + + + + + + + + + + + {[ + { name: "BM25 + vectors", d: LONGMEMEVAL.hybrid }, + { name: "BM25 only, keyless", d: LONGMEMEVAL.bm25 }, + ].map((r) => ( + + + + + + + + + ))} + +
ModeR@5R@10R@20NDCG@10MRR
{r.name}{pct(r.d.r5)}{pct(r.d.r10)}{pct(r.d.r20)}{pct(r.d.ndcg10)}{pct(r.d.mrr)}
+
+

+ Adding local vectors to BM25 lifts R@5 from {pct(LONGMEMEVAL.bm25.r5)} to {pct(LONGMEMEVAL.hybrid.r5)}.{" "} + benchmark/LONGMEMEVAL.md +

+ +

By question type, BM25 + vectors

+
+ + + + + + + + + + + + {LONGMEMEVAL.byType.map((t) => ( + + + + + + + + ))} + +
TypeQuestionsR@5R@10Found at top 5
{t.type}{t.count}{pct(t.r5)}{pct(t.r10)} + {TYPE_HITS.find((h) => h.type === t.type)?.hits[5]} of {t.count} +
+
+

+ Preferences are the hardest type: they depend on implicit statements, and R@5 is {pct(LONGMEMEVAL.byType[5].r5)}. + Knowledge updates and multi-session questions are the strongest. +

+ +

Token cost per query

+

+ A smaller labeled set of coding-session observations: {TOKEN_SETUP.observations} observations across{" "} + {TOKEN_SETUP.sessions} sessions and {TOKEN_SETUP.queries} queries, with {TOKEN_SETUP.model}. The baseline loads + every observation into the prompt. +

+
+ + + + + + + + + + + + + + {TOKEN_ROWS.map((r) => ( + + + + + + + + + + ))} + +
ModeR@5R@10P@5NDCG@10MRRTokens
{r.name}{pct(r.r5)}{pct(r.r10)}{pct(r.p5)}{pct(r.ndcg)}{pct(r.mrr)}{r.tokens.toLocaleString("en-US")}
+
+

+ {TOKENS.agentmemory.toLocaleString("en-US")} tokens instead of {TOKENS.fullContext.toLocaleString("en-US")} is{" "} + {TOKENS.savedPct}% fewer, with higher precision. benchmark/REAL-EMBEDDINGS.md +

+ +

Crash recovery

+

+ The cost bench runs the built package in an isolated home, captures N observations, kills the whole process + tree with SIGKILL, boots it again and checks that nothing was lost. +

+
    + {RECOVERY_FACTS.map((f) => ( +
  • + {f.value} {f.label} +
  • + ))} +
+

+ docs/benchmarks/capture-costs.svg{" "} + benchmark/README.md +

+ +

Resource budgets

+

+ The cost bench checks each run against these ceilings. They were derived from repeated runs, taking the worst run plus + headroom, so they are upper limits rather than typical values, and they depend on the machine that runs them. + The embed profile uses 768-dimension vectors. +

+
+ + + + + + + + + + + + + + {BUDGETS.map((b) => ( + + + + + + + + + + ))} + +
ProfileObservationsHook p95Index ready after killDisk per observationIdle memorySearch tokens p50
{b.profile}{b.n.toLocaleString("en-US")}{b.hookP95Ms} ms{sec(b.recoveryIndexReadyMs)}{kib(b.diskPerObsBytes)}{mib(b.idleRssKiB)}{b.searchTokensP50}
+
+

+ benchmark/capture-costs-budgets.json +

+ +

Reproduce

+

Retrieval, from the repository root, after downloading the dataset:

+
+          {`${REPRODUCE.download}\n\n${REPRODUCE.bm25}\n${REPRODUCE.hybrid}`}
+        
+

Costs and crash recovery, against the built package:

+
+          {REPRODUCE.costs}
+        
+

+ Scripts: benchmark/longmemeval-bench.ts{" "} + benchmark/real-embeddings-eval.ts +

+
+
+ ); +} diff --git a/website/app/changelog/changelog.module.css b/website/app/changelog/changelog.module.css new file mode 100644 index 0000000000..61a13bb732 --- /dev/null +++ b/website/app/changelog/changelog.module.css @@ -0,0 +1,116 @@ +.layout { + display: grid; + grid-template-columns: 200px minmax(0, 1fr); + gap: clamp(24px, 5vw, 72px); + align-items: start; +} + +.toc { + position: sticky; + top: 84px; + display: grid; + gap: var(--s-3); +} + +.toc > :global(.mono) { + font-size: var(--t-12); + letter-spacing: var(--track-mono); + text-transform: uppercase; + color: var(--muted); +} + +.toc ul { + list-style: none; + margin: 0; + padding: 0; + display: grid; + gap: 2px; + border-left: 1px solid var(--line); +} + +.toc a { + display: flex; + justify-content: space-between; + gap: var(--s-2); + padding: 4px 0 4px 12px; + margin-left: -1px; + border-left: 1px solid transparent; + font-size: var(--t-12); + color: var(--muted); + transition: color var(--dur-1) ease, border-color var(--dur-1) ease; +} + +.toc a :global(.mono) { + color: var(--ink-2); +} + +.toc a:hover { + color: var(--ink); + border-left-color: var(--ink); +} + +.releases { + display: grid; + gap: var(--s-8); + min-width: 0; +} + +.release { + display: grid; + gap: var(--s-4); + scroll-margin-top: 84px; + min-width: 0; +} + +.head { + display: flex; + align-items: baseline; + gap: var(--s-4); + padding-bottom: var(--s-3); + border-bottom: 1px solid var(--line); +} + +.head h2 { + font-size: var(--t-31); + letter-spacing: var(--track-head); +} + +.head h2 a:hover { + text-decoration: underline; + text-underline-offset: 4px; +} + +.head time { + font-size: var(--t-12); + color: var(--muted); +} + +.release :global(ul ul) { + margin-top: var(--s-2); +} + +.release :global(h3) { + font-size: var(--t-20); +} + +.more { + padding-top: var(--s-4); +} + +@media (max-width: 900px) { + .layout { + grid-template-columns: minmax(0, 1fr); + } + .toc { + position: static; + } + .toc ul { + grid-template-columns: repeat(2, minmax(0, 1fr)); + border-left: 0; + gap: 0 var(--s-4); + } + .toc a { + padding-left: 0; + border-left: 0; + } +} diff --git a/website/app/changelog/page.tsx b/website/app/changelog/page.tsx new file mode 100644 index 0000000000..06b913bf59 --- /dev/null +++ b/website/app/changelog/page.tsx @@ -0,0 +1,83 @@ +import type { Metadata } from "next"; +import changelog from "@/lib/generated-changelog.json" with { type: "json" }; +import { DocPage, Prose } from "@/components/site/Doc"; +import { Markdown } from "@/lib/markdown"; +import { src } from "@/lib/site"; +import s from "./changelog.module.css"; + +export const metadata: Metadata = { + title: "Changelog", + description: "Every agentmemory release: what changed, what was fixed, and what to do when you upgrade.", + alternates: { canonical: "/changelog" }, +}; + +interface Release { + version: string; + date: string; + body: string; +} + +function formatDate(d: string) { + if (!d) return ""; + const date = new Date(`${d}T00:00:00Z`); + return date.toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric", timeZone: "UTC" }); +} + +export default function ChangelogPage() { + const releases = changelog as Release[]; + return ( + + The latest {releases.length} releases, generated from{" "} + + CHANGELOG.md + {" "} + when the site builds. Older releases are on GitHub. + + } + > +
+ +
+ {releases.map((r) => ( +
+
+

+ v{r.version} +

+ {r.date && ( + + )} +
+ + + +
+ ))} +

+ + All releases on GitHub + +

+
+
+
+ ); +} diff --git a/website/app/globals.css b/website/app/globals.css index d47226785a..7a61c7731b 100644 --- a/website/app/globals.css +++ b/website/app/globals.css @@ -1,178 +1,350 @@ :root { - --canvas: #0a0a0a; - --canvas-soft: #1a1c20; - --canvas-card: #191919; - --canvas-mid: #363a3f; - --hairline: #212327; - --ink: #ffffff; - --ink-hover: #fafaf7; - --body: #dadbdf; - --mute: #7d8187; - --sunset: #ff7a17; - --sunset-soft: #ffc285; - --breeze: #a0c3ec; - --ok: #7fce9a; - --radius-card: 8px; - --radius-pill: 9999px; - --border-ghost: rgba(255, 255, 255, 0.25); -} - -* { + --bg: #fafafa; + --surface: #ffffff; + --sunk: #f2f2f2; + --ink: #0a0a0a; + --ink-2: #3a3a3a; + --muted: #6b6b6b; + --faint: #a3a3a3; + --line: #e6e6e6; + --line-2: #d0d0d0; + --invert-bg: #0a0a0a; + --invert-ink: #fafafa; + --dot: rgba(10, 10, 10, 0.16); + --dot-on: #0a0a0a; + --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.12); + + --t-12: 0.75rem; + --t-14: 0.875rem; + --t-16: 1rem; + --t-20: 1.25rem; + --t-25: 1.5625rem; + --t-31: clamp(1.5rem, 1.2rem + 1.2vw, 1.953rem); + --t-39: clamp(1.75rem, 1.3rem + 1.9vw, 2.441rem); + --t-49: clamp(2rem, 1.3rem + 2.9vw, 3.052rem); + --t-76: clamp(2.5rem, 1.2rem + 5.4vw, 4.768rem); + + --lh-tight: 1.04; + --lh-snug: 1.2; + --lh-body: 1.6; + --track-display: -0.035em; + --track-head: -0.02em; + --track-mono: 0.06em; + + --s-1: 4px; + --s-2: 8px; + --s-3: 12px; + --s-4: 16px; + --s-5: 24px; + --s-6: 32px; + --s-7: 48px; + --s-8: 64px; + --s-9: 96px; + --s-10: 128px; + + --radius: 6px; + --radius-lg: 10px; + --max: 1200px; + --gutter: clamp(16px, 4vw, 40px); + + --ease-out: cubic-bezier(0.23, 1, 0.32, 1); + --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); + --dur-1: 160ms; + --dur-2: 240ms; + --dur-3: 420ms; + + color-scheme: light; +} + +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) { + --bg: #0a0a0a; + --surface: #111111; + --sunk: #161616; + --ink: #f2f2f2; + --ink-2: #c8c8c8; + --muted: #8f8f8f; + --faint: #5c5c5c; + --line: #222222; + --line-2: #333333; + --invert-bg: #f2f2f2; + --invert-ink: #0a0a0a; + --dot: rgba(242, 242, 242, 0.16); + --dot-on: #f2f2f2; + --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px -12px rgba(0, 0, 0, 0.6); + color-scheme: dark; + } +} + +:root[data-theme="dark"] { + --bg: #0a0a0a; + --surface: #111111; + --sunk: #161616; + --ink: #f2f2f2; + --ink-2: #c8c8c8; + --muted: #8f8f8f; + --faint: #5c5c5c; + --line: #222222; + --line-2: #333333; + --invert-bg: #f2f2f2; + --invert-ink: #0a0a0a; + --dot: rgba(242, 242, 242, 0.16); + --dot-on: #f2f2f2; + --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 24px -12px rgba(0, 0, 0, 0.6); + color-scheme: dark; +} + +*, +*::before, +*::after { box-sizing: border-box; } -html, +html { + -webkit-text-size-adjust: 100%; + scroll-padding-top: 72px; +} + body { margin: 0; - padding: 0; - background: var(--canvas); - color: var(--body); - font-family: var(--font-sans), Inter, system-ui, -apple-system, sans-serif; - font-size: 16px; - line-height: 1.5; + background: var(--bg); + color: var(--ink-2); + font-family: var(--font-sans), system-ui, -apple-system, sans-serif; + font-size: var(--t-16); + line-height: var(--lh-body); -webkit-font-smoothing: antialiased; - scroll-behavior: smooth; + -moz-osx-font-smoothing: grayscale; + text-rendering: optimizeLegibility; + overflow-x: clip; +} + +h1, +h2, +h3, +h4 { + color: var(--ink); + margin: 0; + font-weight: 560; + letter-spacing: var(--track-head); + line-height: var(--lh-snug); + text-wrap: balance; +} + +p { + margin: 0; + text-wrap: pretty; } a { color: inherit; text-decoration: none; - transition: color 160ms ease; -} -a:hover { - color: var(--ink); } button { - font-family: inherit; - cursor: pointer; - background: none; - border: none; + font: inherit; color: inherit; + background: none; + border: 0; + padding: 0; + cursor: pointer; +} + +code, +kbd, +pre, +.mono { + font-family: var(--font-mono), ui-monospace, "SF Mono", Menlo, monospace; +} + +img, +svg, +canvas { + display: block; + max-width: 100%; +} + +img, +video { + filter: grayscale(1); } :focus-visible { - outline: 2px solid rgba(255, 255, 255, 0.55); + outline: 2px solid var(--ink); outline-offset: 3px; + border-radius: 2px; } ::selection { - background: var(--sunset); - color: var(--canvas); + background: var(--ink); + color: var(--bg); } -/* Reveal animation */ -.reveal { - opacity: 0; - transform: translateY(32px); - transition: opacity 600ms ease, - transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1); +.wrap { + width: 100%; + max-width: var(--max); + margin: 0 auto; + padding: 0 var(--gutter); } -.reveal.is-visible { - opacity: 1; - transform: translateY(0); + +.eyebrow { + font-family: var(--font-mono), ui-monospace, monospace; + font-size: var(--t-12); + letter-spacing: var(--track-mono); + text-transform: uppercase; + color: var(--muted); + display: inline-flex; + align-items: center; + gap: var(--s-2); } -@media (prefers-reduced-motion: reduce) { - *, - *::before, - *::after { - animation-duration: 0.001ms !important; - transition-duration: 0.001ms !important; - } +.eyebrow::before { + content: ""; + width: 6px; + height: 6px; + background: var(--ink); + border-radius: 1px; +} + +.section { + padding: var(--s-10) 0; + border-top: 1px solid var(--line); + position: relative; +} + +.section-head { + display: grid; + gap: var(--s-4); + max-width: 760px; + margin-bottom: var(--s-8); +} + +.section-head h2 { + font-size: var(--t-49); + letter-spacing: var(--track-display); + line-height: 1.08; +} + +.section-head p { + font-size: var(--t-20); + line-height: 1.5; + color: var(--muted); + max-width: 640px; } -/* Buttons shared — pill shapes, quiet states */ .btn { display: inline-flex; align-items: center; - justify-content: center; - gap: 8px; - padding: 12px 24px; - font-size: 14px; - font-weight: 500; - letter-spacing: 0; - line-height: 20px; - border: 1px solid transparent; - border-radius: var(--radius-pill); - transition: - background 200ms ease, - color 200ms ease, - border-color 200ms ease, - opacity 200ms ease; - cursor: pointer; + gap: var(--s-2); + height: 44px; + padding: 0 var(--s-5); + border-radius: var(--radius); + font-size: var(--t-14); + font-weight: 520; + white-space: nowrap; + transition: transform var(--dur-1) var(--ease-out), background-color var(--dur-1) ease, + border-color var(--dur-1) ease, color var(--dur-1) ease; +} + +.btn:active { + transform: scale(0.97); } -.btn--accent { + +.btn-solid { background: var(--ink); - color: var(--canvas); - border-color: var(--ink); - padding: 14px 28px; -} -.btn--accent:hover { - background: var(--ink-hover); - border-color: var(--ink-hover); - color: var(--canvas); -} -.btn--sunset { - background: var(--sunset); - color: var(--canvas); - border-color: var(--sunset); - padding: 14px 28px; -} -.btn--sunset:hover { - background: #ff8b35; - border-color: #ff8b35; - color: var(--canvas); -} -.btn--ghost { - background: transparent; - color: var(--ink); - border-color: var(--border-ghost); + color: var(--bg); } -.btn--ghost:hover { - background: rgba(255, 255, 255, 0.06); - border-color: var(--border-ghost); + +.btn-ghost { + border: 1px solid var(--line-2); color: var(--ink); } -.btn--small { - padding: 8px 16px; - font-size: 13px; + +@media (hover: hover) and (pointer: fine) { + .btn-solid:hover { + background: var(--ink-2); + } + .btn-ghost:hover { + border-color: var(--ink); + } } -/* Shared section head */ -.section-head { - max-width: 1200px; - margin: 0 auto 56px; - padding: 0 40px; -} -.section-eyebrow { - display: inline-block; - font-family: var(--font-mono), ui-monospace, SFMono-Regular, Menlo, monospace; - font-size: 12px; - letter-spacing: 1.4px; - color: var(--mute); - text-transform: uppercase; - margin-bottom: 20px; +.reveal { + opacity: 0; + transform: translateY(12px); + transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); + transition-delay: var(--d, 0ms); +} + +.reveal.is-in { + opacity: 1; + transform: none; } -.section-title { - font-size: clamp(34px, 4.6vw, 56px); - font-weight: 400; - line-height: 1.06; - letter-spacing: -0.03em; + +.src { + font-family: var(--font-mono), ui-monospace, monospace; + font-size: var(--t-12); + color: var(--muted); + border-bottom: 1px dotted var(--line-2); + transition: color var(--dur-1) ease, border-color var(--dur-1) ease; +} + +.src:hover { color: var(--ink); - margin: 0 0 20px; - text-wrap: balance; + border-color: var(--ink); } -.section-lede { - max-width: 660px; - font-size: 16px; - line-height: 1.65; - color: var(--body); - margin: 0; + +.theme-dark-only { + display: none !important; } -@media (max-width: 640px) { +:root[data-theme="dark"] .theme-dark-only { + display: block !important; +} + +:root[data-theme="dark"] .theme-light-only { + display: none !important; +} + +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) .theme-dark-only { + display: block !important; + } + :root:not([data-theme="light"]) .theme-light-only { + display: none !important; + } +} + +.sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border: 0; +} + +@media (max-width: 720px) { + .section { + padding: var(--s-9) 0; + } .section-head { - padding: 0 20px; + margin-bottom: var(--s-7); + } + .section-head p { + font-size: var(--t-16); + } +} + +@media (prefers-reduced-motion: reduce) { + .reveal { + opacity: 1; + transform: none; + transition: none; + } + html { + scroll-behavior: auto; } } diff --git a/website/app/layout.tsx b/website/app/layout.tsx index d7eca9dbb0..68fb88cdcd 100644 --- a/website/app/layout.tsx +++ b/website/app/layout.tsx @@ -1,57 +1,67 @@ import type { Metadata, Viewport } from "next"; -import { Inter, JetBrains_Mono } from "next/font/google"; +import { Geist, Geist_Mono } from "next/font/google"; import "./globals.css"; +import { SITE_URL } from "@/lib/site"; -const inter = Inter({ +const sans = Geist({ subsets: ["latin"], variable: "--font-sans", display: "swap", }); -const jetbrains = JetBrains_Mono({ +const mono = Geist_Mono({ subsets: ["latin"], - weight: ["400", "500"], variable: "--font-mono", display: "swap", }); +const description = + "Persistent memory for AI coding agents. agentmemory captures what your agent did, keeps it on your machine, and hands the right context back in the next session. Open source, Apache-2.0."; + export const metadata: Metadata = { - metadataBase: new URL("https://agentmemory.dev"), - title: "agentmemory: persistent memory for AI coding agents", - description: - "Persistent memory for AI coding agents. Capture every session, recall it in the next one. Runs locally with zero external databases. Works with every MCP client.", + metadataBase: new URL(SITE_URL), + title: { + default: "agentmemory: persistent memory for AI coding agents", + template: "%s · agentmemory", + }, + description, + alternates: { canonical: "/" }, icons: { icon: [{ url: "/icon.svg", type: "image/svg+xml" }], apple: "/icon.svg", }, openGraph: { title: "agentmemory", - description: - "Persistent memory for AI coding agents. Runs locally. Zero external databases.", + description, type: "website", url: "/", + siteName: "agentmemory", }, twitter: { card: "summary_large_image", title: "agentmemory", - description: - "Persistent memory for AI coding agents. Runs locally. Zero external databases.", + description, }, }; export const viewport: Viewport = { - themeColor: "#0a0a0a", + themeColor: [ + { media: "(prefers-color-scheme: light)", color: "#fafafa" }, + { media: "(prefers-color-scheme: dark)", color: "#0a0a0a" }, + ], width: "device-width", initialScale: 1, }; -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { +const themeScript = `try{var t=localStorage.getItem("am-theme");if(t==="light"||t==="dark")document.documentElement.dataset.theme=t}catch(e){}`; + +export default function RootLayout({ children }: { children: React.ReactNode }) { return ( - + + +