Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge PR #650: write a scope's manifest with its first page (#643)
AkitaOnRails971457b40e73
diff --cc CHANGELOG.mdindex 4219aaed,2f46beb3..3aeaf272--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -8,26 -8,17 +8,37 @@@ and this project adheres to [Semantic V## [Unreleased]### Fixed+- Authentication-disabled HTTP servers now ignore stale or unexpected Bearer+ headers and preserve anonymous access. Previously, a client retaining an old+ `AI_MEMORY_AUTH_TOKEN` received `401 Unauthorized` even though the server+ reported `auth=false`; invalid Bearers remain rejected whenever static or+ human authentication is enabled. (#639)+- Cursor sessions no longer land in the default `default/scratch` bucket.+ Cursor sends the workspace directory only as `workspace_roots` — its+ `sessionStart` / `sessionEnd` payloads carry no `cwd` key at all, and its+ tool events send `cwd: ""` — so cwd resolution produced nothing and the+ server fell back to its default project for every Cursor event. Both the+ native `ai-memory hook` path and the POSIX/PowerShell hook scripts now read+ `workspace_roots` (alongside Antigravity's `workspacePaths`) and treat an+ empty `cwd` as absent rather than as an answer.+- Cursor sessions are no longer attributed to `claude-code`. The Cursor CLI+ also runs the hook commands declared in Claude Code's+ `~/.claude/settings.json`, which `install-hooks --agent claude-code`+ hardcoded to `--agent claude-code`, so a Cursor-driven session was stored+ with `agent_kind = claude-code`. Hook payloads carrying Cursor's+ `cursor_version` marker are now attributed to `cursor` regardless of the+ `?agent=` the hook command declared.+ - A project that first materializes while the server is running is now+ self-describing immediately, instead of only after the next startup+ backfill (#643). Scope manifests (`_meta.md`) were written at startup and on+ the rename/move admin paths, so a session in a checkout the server had not+ seen before produced a scope directory with pages but no manifest. Stop the+ server in that window and `reindex` could not rebuild that tree — the one+ situation where an operator most needs the rebuild to work. The manifest is+ now written with the scope's first page, one store lookup per scope per+ process, byte-identical to what the backfill writes so restarts still do not+ churn the wiki's git history. The startup backfill is unchanged and remains+ the repair path for trees written by older releases.## [2.0.3] - 2026-09-04