Drop-in upgrade on iii 0.25.1. Docker installs that set only an LLM key: add AGENTMEMORY_LLM_PROVIDER (see Changed).
Added
- Stores above 64 MiB keep working: whole-scope reads page, transport cap raised to 64 MiB (#1636, #1634)
- Session list filters
startedAfter, startedBefore, endedAfter, endedBefore (#1527)
AGENTMEMORY_SUMMARY_TIMEOUT_MS for large sessions on slow or local LLMs (#1689)
memory_diagnose / memory_heal find and remove orphaned facets (#1698)
Fixed
- Search no longer caps saved memories at three per query (#1696); evicted memories leave the indexes (#1601)
- Boot detects gaps in a partially embedded vector index (#1687); CLIP text-to-image search uses the text tower (#1250)
- PreToolUse context reaches the model (#1693); enrichment scoped to the current project (#1220); SessionEnd has time to finish (#1692)
- Redaction runs before truncation and covers compound secret key names (#1695, #1701)
- Placeholder keys like
sk-... count as unset (#1588); circuit breaker resets on success and ignores content-filter rejections (#1350, #1277)
- MCP shim waits 190 s, so long consolidate and reflect calls finish (#1691)
- Consolidation keeps provenance across retries (#1545, #1690); scoped reflection stays in its project (#1544)
connect honors CLAUDE_CONFIG_DIR (#1703); Cursor subagent stop fields mapped (#1684)
- Fresh installs retry the iii engine download on timeouts, 408, 429 and 5xx (#1719)
health CPU is machine-relative (#1286); demo stops its workers on Windows (#1688); Compose values keep newlines (#1708)
Changed
- Pins iii 0.25.1 with state 0.22.22 and http 0.22.8; first start installs them (#1634, #1694)
- Unpaged
GET /memories and /relations over the transport limit return 413 with a paging hint; use ?limit=N (#1636)
- Root and Coolify Compose files forward
AGENTMEMORY_LLM_PROVIDER (#1700)
Tested
Packed release gate on Linux x64 and arm64, macOS arm64 and Intel, Windows x64 and arm64 (#1716).
Contributors
Thanks @yxtay, @DimitriChrysafis, @mvanhorn, @anhtahaylove, @devon3000, @mothieras, @dmazhukov, @redeye1011, @dKaulig, @DanielCarmingham, @Mike-Animal-Counseling and @zhichao-poper.
Full changelog: v0.9.32...v0.9.33
详细ChangeLog
Breaking change: an API key alone no longer turns on an outside LLM or embedding provider. Read Breaking before upgrading.
Breaking
- LLM summaries, compression, consolidation and reflection need
AGENTMEMORY_LLM_PROVIDER=anthropic|openai|gemini|openrouter|minimax plus that key; boot, doctor, status and the viewer print the line to add (#1664)
- Cloud embeddings need
EMBEDDING_PROVIDER=<name>; local stays on-device, unset means BM25 and graph only (#1664)
OPENAI_API_KEY_FOR_LLM is removed (#1664)
- Hooks send nothing to a remote plain
http:// server; use HTTPS for a remote server (#1664)
- PreCompact injects stored memory only with
AGENTMEMORY_INJECT_CONTEXT=true (#1664)
Added
- iii installs itself on native Windows, with SHA-256 verification (#1670)
- Claude Code plugin settings for the server URL and secret; secret kept in the system credential store (#1664)
- MCP tool annotations (
readOnlyHint, destructiveHint) and a privacy policy at https://agent-memory.dev/privacy (#1664)
sourceIds on memory_lesson_save (#1661)
- Official listings: OpenAI plugin directory for Codex (skills, pair with
agentmemory connect codex), Hermes plugin catalog (hermes plugins install agentmemory) and ClawHub (openclaw plugins install clawhub:agentmemory)
- MCP shim crash log
mcp-crash.log, saved store before exit (#1662, #1674)
- Docker Hub image
ghumarerohit/agentmemory:<version> and latest for linux/amd64 and linux/arm64, published on each release (#1677)
Fixed
- Copilot CLI subagent reports keep their reply and are stored once (#1599)
- Worker Compose starts on native Windows;
stop waits for every worker (#1641)
- No hidden install prompt or hang on a slow
iii --version probe on Windows (#1658)
- Boot waits for the state worker, so slow starts keep the keyword index and vectors (#1627, #1626, #1660)
- Stale compose PID after a reboot no longer crash-loops (#1622)
- Docker image keeps local embedding dependencies (#1651)
doctor never prompts without a terminal or with CI set (#1671); no SDK debug lines in status/stop (#1672)
- Slot tools hidden and guarded when
AGENTMEMORY_SLOTS is off (#1659)
- CJK recall (#1553), scoped smart-search ranking (#1669), project isolation (#1647), memory types in search responses (#1646)
- OpenAI reply cut at
max_tokens fails over instead of being stored (#1495)
- Orphaned index generations reclaimed (#1256); bounded MCP graph stats (#1260)
- Facet cleanup on deletes (#1642), session sweep (#1645), surrogate-safe hook truncation (#1598), Hermes git probe stdin (#1663), Cline MCP path (#1633)
- Superseded memories sync to mesh peers (#1665), pi lesson recall (#1605),
npm run build on Windows cmd.exe (#1362), .env.example wording (#1675)
Packages
@agentmemory/pi 0.1.1: full lesson read by id, scoped to its project (#1605)
@agentmemory/fs-watcher 0.2.0: first watcher release since April, with preview redaction of private keys and JWTs, auth by default, confined paths and linked-worktree project scope
Known issues
- Windows:
stop takes about 60 s and empty console windows open per start (iii-hq/iii#2430)
Contributors
Thanks @cbsincool, @Tyxiel, @pei711, @mothieras, @akushonkamen, @dmazhukov, @reevesc88, @Rex57, @inix-x, @xh123637, @egantz, @YeChenglin8888 and @mattamundson for the fixes in this release, and to everyone who reported and diagnosed the Windows and boot issues.
Full changelog: v0.9.31...v0.9.32
详细ChangeLog
AgentMemory 0.9.31 improves memory retrieval, reduces repeated model work, and fixes capture, recovery and import failures. It also adds native Pi, Oh My Pi and DSH integrations and upgrades the runtime to iii 0.25.0 with Worker Compose.
Retrieval and performance
- Better keyword ranking: fixing prefix-score inflation raised strict recall-all@5 from 65.74% to 84.68%, a gain of 18.94 percentage points, in the documented BM25 development evaluation. Complete-evidence retrieval increased from 309 to 398 of 470 answerable questions, with 92 recovered cases and 3 regressions. These are component retrieval results on inspected development data, not held-out answer accuracy or a release-wide speed benchmark. Methodology and receipts, #1514.
- Less repeated summary work: summaries process new observations and merge them into the existing summary. An unchanged session makes zero additional summarization calls and skips repeat reflection, graph extraction and skill processing. #1507.
- Bounded graph work: search shares indexed graph reads and avoids repeated full-graph enumeration. Optional graph enrichment has a 500 ms budget so ready keyword and vector results can return if graph storage stalls. This is a graph-stage budget, not an overall search-latency guarantee. #1541, #1559.
Fixes
- Session summaries cover later turns instead of stopping at the first Stop event. Idle sessions finalize, and abandoned sessions are summarized before abandonment. Fixes #745.
- Saved memories retain project and agent scope and remain recoverable when token budgets shorten or omit content. Recall can target memories, observations or both. Fixes #819 and #1232.
- Failed compression preserves searchable captures and supports scoped inspection and retry. Vector recovery retains unfinished work across checkpoints, provider failures and restarts. #1546, #1562.
- Replace imports validate data before deleting stored records. JSONL imports preserve session timestamps and avoid repeated duplicate observations; the first re-import of rows from older versions can still add one final copy. #1576, #1526.
- Hooks capture final assistant replies and preserve distinct subagent, task and notification events. #1510, #1513.
- CLI status shows the actual embedding provider, and doctor uses the daemon's LLM-provider detection. Fixes #1488 and #1572.
- MCP keeps routine logs off stdout and identifies writes that only reached local fallback storage. The viewer loads actions beyond the first page, and deleting memories cleans up their facets. #1522, #1563, #1524, #1591.
Integrations and documentation
Bundled Pi, Oh My Pi and DSH integrations provide native capture and memory workflows. Cursor resolves workspace ownership more reliably, and the Devin plugin captures lifecycle events correctly. Shared agent skills, setup documentation and README translations are updated. The bundled Pi connector works independently of the separate Pi package's npm publication.
Upgrading
Stop AgentMemory with the existing CLI before upgrading, then restart 0.9.31 using the same instance, port and data directory. The runtime now uses iii 0.25.0 with Worker Compose. Viewer updates use authenticated SSE on the REST port; port 3112 is unused. MCP narrative recall returns structured JSON; read its text field.
Re-run agentmemory connect pi --with-mcp or agentmemory connect omp --with-mcp to refresh bundled integrations. Existing DSH hook-bridge installations migrate with agentmemory connect dsh --with-hooks --force. On Windows, WSL2 is recommended; native Windows remains unverified and requires a manually installed pinned engine.
Upgrade guide | 0.9.31 changelog | All changes since 0.9.30
Thanks to our contributors
Thank you @guibeira, @JackieJK, @andrew05060414, @hejiawow, @dmazhukov, @Rex57, @SomSamantray, @yxtay, @akushonkamen, @DimitriChrysafis and @ErikBPF for your contributions to this release, and everyone who reported issues and tested fixes.
详细ChangeLog
One breaking change: the REST API now requires auth by default. Everything bundled (CLI, viewer, hooks, MCP, connect configs) reads the generated secret on its own, so only hand-written requests to :3111 need Authorization: Bearer $(cat ~/.agentmemory/secret). Stores load unchanged; one-time migrations run by themselves on first start.
Breaking
- Auth on by default: secret generated into
~/.agentmemory/secret when AGENTMEMORY_SECRET is unset (#1462)
- Writes need
Content-Type: application/json; a present Origin must be loopback, the viewer, or in VIEWER_ALLOWED_ORIGINS (#1462)
- Import and export paths confined to the data dir,
~/.agentmemory, or AGENTMEMORY_IMPORT_ROOT (#1462)
- iii engine 0.22.1; keep the
iii- prefixed builtin worker names in custom configs (#1396, #1397)
Added
- Durable capture: event ids, a persistent capture inbox, retries, dead letters, and an offline hook spool while the server is down;
agentmemory capture --drain (#1460, #1468)
- Vector pending log: vectors survive a force-kill, backfill resumes across restarts (#1467)
GET /agentmemory/status and a viewer Health tab; viewer rebuilt around one snapshot plus live stream events, 12 tabs (#1408, #1433, #1407)
- Opt-in Redis backend:
AGENTMEMORY_STATE_BACKEND=redis (#1425)
- Graph compaction, monthly audit scopes, bucketed vector index, stale session sweep (#1454, #1419, #1416, #1453)
- Capture filters:
AGENTMEMORY_CAPTURE_ALLOW / DENY / OUTPUT_MAX, AGENTMEMORY_PRE_COMPACT_BUDGET (#1452)
- OpenCode 2 support in the OpenCode plugin (#1476, #1451)
- Codex plugin bundles a stdio bridge to the daemon (#1459)
agentmemory console, --instance N for side-by-side daemons (#1397, #892)
- Release gate that installs the packed tarballs and runs capture and recovery against them (#1463)
- README in 32 languages (#1479)
Fixed
- Repeated identical prompts are kept; Cursor prompts are stored once (#1468, #1470)
- Graph provenance bounded to 32 observation ids per node and edge, stopping crash loops during search (#1454)
- Memories and vectors written just before
agentmemory stop survive the restart (#1449)
- Forget and governance deletes report only real deletions; export returns 413 instead of 200 when oversized (#1449, #1422)
- Lost updates when several agents share one daemon (#1421)
OPENAI_EMBEDDING_API_KEY honored; SessionStart context reaches hosts that expect structured hook output (#1472)
Security
- Request hardening, scrubbing on every write, engine download verified against pinned SHA-256 (#1462, #1461)
Changed
- Audit, memories, export, session/end and patterns response shapes; see the CHANGELOG for the full list (#1419, #1433, #1422, #1252, #1424)
Contributors
Thanks to @david-waltermire, @a652, @cbsincool, @dmazhukov and @Tyxiel for the merged PRs, and to @DaveCole, @Srinath279, @joyjit and @cristianbdev, whose earlier work is carried into this release.
Full changelog: v0.9.29...v0.9.30
详细ChangeLog
No breaking changes, drop-in upgrade.
Added
- Cursor plugin: 7 auto-capture hooks + 17 skills + MCP, IDE and
cursor-agent CLI
- Devin support:
connect devin --with-hooks (6 native hooks) and a Devin plugin manifest for /agentmemory:<skill> commands
- DeepSeek Harness connector (
connect dsh), with --with-hooks for full auto-capture
connect pi now actually installs the extension; capture reaches parity with the Claude Code plugin
- Two new skills, 15 → 17:
memory-discipline (when to recall and save) and /lesson (corrections become confidence-weighted rules)
- Write-time provenance on every record: origin channel stamped at capture, save, and import
- Keyless graph extraction: the knowledge graph now populates without an LLM key
AGENTMEMORY_LLM_NOTHINK=1 to skip the hidden thinking pass during graph extraction
- Viewer clarity pass: two-pane session explorer, expandable records, honest zero states
Fixed
- MCP
initialize now negotiates the client's protocol version instead of hardcoding 2024-11-05 (#908)
- Hybrid BM25 + vector + graph ranking reaches
memory_recall, not just smart-search
- Superseded memory versions leave the search indexes; recall stops returning stale facts as current
- Lesson recall runs off a real index instead of scanning the whole corpus per query
agentId threads through every save path (#1159, #1160, #1197)
- Prompt dedup no longer swallows prompts after the first in a TTL window (#1173)
- Stop hook no longer summarizes twice (#1203)
- Per-session project attribution in the OpenCode plugin (#1188)
- Safe
agentmemory stop in Docker mode (#1151)
~/.agentmemory/.env now applies to every module at boot
Changed
- Provider default models bumped to current generations (OpenAI, Anthropic, Gemini, MiniMax, OpenRouter); explicit
*_MODEL overrides unaffected
Full changelog: v0.9.28...v0.9.29
详细ChangeLog
No breaking changes, drop-in upgrade.
Security
- Closed cross-agent memory leak via
/agentmemory/context under AGENTMEMORY_AGENT_SCOPE=isolated (#1057)
Fixed
- Hooks no longer crash ("hook exited with code 1") on a null payload from Codex CLI / Claude Code (#1047)
- Engine conflict no longer hangs in a WS reconnect loop; clean recovery and pinned-engine guidance (#984)
- Onboarding stat drift and over-strict engine version gate (#852)
Added
agentmemory demo --serve: one-command seed and recall demo, no second terminal (#852)
- opencode
connect adapter; onboarding agent picker single-sourced from adapters (#883)
- Session summaries now returned by
GET /agentmemory/sessions (#882)
- 15 detailed, self-updating skills covering the whole system (#854)
- Agent-driven install runbook (
INSTALL_FOR_AGENTS.md) and Windows/WSL2 clarity (#853)
- Colored CLI output and quieter boot (#984)
Full changelog: v0.9.27...v0.9.28
详细ChangeLog
Wave release closing several breaking regressions reported against v0.9.26, plus an agent-scope isolation security fix, an iii version-pin audit fix, and a benchmark scorecard correction. No breaking changes; drop-in upgrade.
Security
AGENTMEMORY_AGENT_SCOPE=isolated not enforced on mem::search / POST /agentmemory/search / memory_recall / recall_context (#817). PR #654's isolation work covered smart-search, /memories, /observations, and /sessions but missed the BM25-only recall path. An isolated worker booted with AGENT_ID=B could read agent A's memories via the standard MCP memory_recall tool. Fail-closed: if isolated mode is on and no agent id resolves, the call throws rather than dropping the filter.
Fixed
/graph/query and /graph/stats timed out with "Invocation stopped" on large existing corpora (#814, PR #816). Refactored mem::graph-extract to maintain three side-indexes (graphNameIndex, graphEdgeKey, graphNodeDegree) so every extract path is O(1), never O(n). Hot path reads exclusively from a precomputed top-degree snapshot updated inline on every extract.
- All data lost on
agentmemory stop followed by restart (#843). Stop order inverted: worker first with a 5s SIGTERM grace so index flush can land, engine second.
mem::graph-snapshot-rebuild and mem::graph-reset heartbeat-crashed on legacy >25K-node corpora (#825). Rebuild now refuses pre-flight when no prior snapshot exists. Reset is now enumeration-free: writes empty snapshot with resetAt epoch marker. Future extracts treat any pre-resetAt row as orphan.
- Multi-instance port collisions on one host (#750, PR #815).
--port N now drags streams + engine. New --instance N shortcut picks a 100-port block.
- iii console install pulled latest engine instead of the pinned v0.11.2 (audit). Install command now passes
VERSION=${IIPINNED_VERSION}. Render path is platform-aware: Windows users get a PowerShell hint.
Added
POST /agentmemory/graph/snapshot-rebuild (≤25K nodes, force: true to bypass).
POST /agentmemory/graph/reset enumeration-free clean-restart.
--instance N CLI flag for multi-daemon (max N=50).
GraphSnapshot.topDegrees, GraphSnapshot.resetAt, GraphQueryResult.fromSnapshot, GraphQueryResult.warning.
Changed
- REST endpoint count: 126 → 128.
mem::graph-stats reads exclusively from snapshot.
mem::graph-query empty-body / nodeType path reads exclusively from snapshot.
mem::search over-fetch triggers on agentId filter too.
Docs
- Corrected coding-agent-life-v1 P@5 numbers (#796).
- README refresh: stats 174 files / 1,390+ tests / 258 functions; "New in vX.Y.Z" callout removed.
import-jsonl users warned about Claude Code's cleanupPeriodDays 30-day default.
Full changelog: CHANGELOG.md
详细ChangeLog
Hotfix on top of v0.9.25. Closes #797.
Fixed
- First boot crash:
TypeError: Cannot read properties of undefined (reading 'v') (#797). The sharded index load path checked manifest.value !== null before forwarding, but some iii-state adapters return undefined (not null) for a missing key. loadManifestData(undefined) then crashed on undefined.v. Now treats both null + undefined + non-object values as 'no manifest' and falls through to the legacy load path.
Self-healing was already in place — the next debounced save rebuilt a fresh manifest — but the crash on first boot scared every fresh upgrader.
Upgrade
npm install -g @agentmemory/agentmemory@0.9.26
If you already saw the warning on v0.9.25 and the daemon kept running, you're fine — the index was already rebuilt. v0.9.26 just makes the first-run boot quiet.
Verified
- 125 test files / 1381 tests pass
- Build clean
详细ChangeLog
Bug-fix wave closing every breaking 0.9.24 regression, plus a feature lane. Eleven issues closed. No breaking changes; drop-in upgrade.
Fixed
- Cross-provider fallback always 404'd and tripped the circuit breaker (#778). Fallback resolved each provider's own env-driven default model instead of inheriting the primary's.
import-jsonl aborted entire batch on legacy session row missing id (#775). Re-keys on parsed.sessionId, backfills missing existing.id.
parseSummaryXml silently dropped summaries wrapped in markdown fences (#783). New stripXmlWrappers() peels fences + pre/postamble; final-merge parse retries once.
sdk.triggerVoid is not a function on iii-sdk 0.11.2 (#758 / #726). All 9 call sites migrated to trigger({ action: TriggerAction.Void() }).
- pi integration recorded every observation as "No content provided" (#759). Field-name fix:
tool_input / tool_output.
- Fresh global install refused to boot when PATH iii didn't match the runtime pin (#752). Private install at
~/.agentmemory/bin/ + auto-fallback. Existing user iii stays untouched.
mem::obsidian-export HTTP 500 [object Object] on any record missing id (#729). Four-layer hardening + outer try/catch.
- Concurrent agent-sdk summarize chunks failed with
too_many_chunks_skipped (#781). AsyncLocalStorage recursion guard + reference-counted env marker.
- Viewer #graph tab blank on large graphs (#753).
graph/query pagination + degree-ranked default cap + viewer error banner with Retry.
Upgrade
npm install -g @agentmemory/agentmemory@0.9.25
iii-sdk and iii-engine pins stay at v0.11.2.
Full changelog: https://github.com/rohitg00/agentmemory/blob/main/CHANGELOG.md
详细ChangeLog