Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge PR #1296: fix(routing): state Claude Code's AGENTS.md fallback (#1276)
AkitaOnRailsf58484bb2134
diff --cc CHANGELOG.mdindex e31fefe0,2fe9d4c5..ac4c4cff--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -12,38 -12,11 +12,43 @@@ version in [`docs/changelog/`](docs/cha## [Unreleased]### Fixed+- Fixed the thin-client commands ignoring a custom `bind`, which could write+ into the wrong store. `server_url` defaulted to `http://127.0.0.1:49374`+ and was never derived from `bind`, so `ai-memory --data-dir X status` (and+ `write-page`, `search`, `purge-project`, ...) called the default port+ whatever `bind` said. With nothing listening there the command failed; with+ another server listening there it operated on that server's data, and one+ reporter wrote test pages into their real store this way. When neither+ `config.toml` nor `AI_MEMORY_SERVER_URL` sets `server_url`, it is now+ derived from `bind`: an unspecified address maps to loopback (`0.0.0.0` to+ `127.0.0.1`, `[::]` to `[::1]`) and any other host is used as given,+ hostname included. An explicit value in the file or the environment still+ wins, even when it names the default URL; a `bind` that is not a+ `host:port`, or one on port 0, leaves the default URL alone; and the default+ `bind` resolves to the same URL as before, so an install that never changed+ either key is unaffected. `install-hooks` and `install-mcp` still prefer an+ existing MCP entry's URL, and otherwise write the derived URL instead of the+ default port. (#1269)+- Fixed a burst of sessions in a directory with no backfill marker launching+ one `backfill --auto` per session. The SessionStart hook now takes an+ atomic in-progress marker before it spawns the backfill, so concurrent+ sessions in that directory start one; the marker is dropped when the worker+ ends and a leftover one stops blocking after 30 minutes. The backfill's+ emptiness check against the server also gives up after 30 seconds instead+ of waiting forever on a saturated server. Keying the trigger on the project+ rather than the directory is not part of this change. (#1287)+- Fixed `/web/pending` offering Approve and Reject buttons that always failed+ with `401: unknown error` on a server with a bearer token and no password+ sign-in. The browser reaches `/web` there with the root token over HTTP+ Basic, which only admits reads. The page now says so, points to password+ sign-in, and shows each proposal's `ai-memory pending-writes approve` /+ `reject` command instead; a decision that fails for another reason now shows+ the server's message even when it is plain text. (#1288)+ - Fixed the managed routing snippet's claim that Claude Code never reads+ `AGENTS.md`. Claude Code 2.1.277 and later reads it when no `CLAUDE.md`,+ `.claude/CLAUDE.md`, or `CLAUDE.local.md` is present, and reads that file+ instead when one exists. The `@AGENTS.md` import is how a canonical+ `AGENTS.md` reaches sessions that read only `CLAUDE.md`. (#1276)- Fixed Windows capture dropping the body of file and shell tool eventsthe client had kept. With `[capture] ignore_paths` active, serverre-inspection compiled a POSIX never-match sentinel and treated the