Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
Merge remote-tracking branch 'origin/main' into merge-464
AkitaOnRails0a929875d5c5
diff --cc CHANGELOG.mdindex 2dc03d62,1b227ea0..22d52a3f--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -8,20 -8,24 +8,38 @@@ and this project adheres to [Semantic V## [Unreleased]### Fixed+- The Windows Docker wrapper's thin-client commands now reach a+ loopback-published server instead of failing with `Connection refused (os+ error 111)`. `ai-memory status`, `search`, `bootstrap` and every other+ thin-client command runs inside a short-lived helper container, where the+ CLI's default `http://127.0.0.1:49374` resolves to that helper rather than+ to the Windows host, so a healthy `docker run -p 127.0.0.1:49374:49374`+ server was unreachable from the wrapper while `curl` from PowerShell worked.+ The wrapper now injects `AI_MEMORY_SERVER_URL=http://host.docker.internal:49374`+ for those commands, matching what the POSIX wrapper has done on macOS since+ (#107) — Docker Desktop gives Linux containers no host networking on either+ platform. `install-mcp`, `install-hooks` and `setup-agent` still render+ `http://127.0.0.1:49374` into host-side agent config, because+ `host.docker.internal` does not resolve on the Windows host, and an explicit+ `AI_MEMORY_SERVER_URL` (homelab or remote server) is still honoured. (#464)+ - Made non-FTS search hits describe the page instead of repeating its+ heading. Only the FTS5 path built a real excerpt (`snippet(pages_fts, ...)`,+ centred on the matched terms); the vector, entity-match, graph-neighbour and+ recency paths had no matched term to centre on and returned+ `substr(body, 1, 240)` — on a compiled page that is the `# Title` line plus+ the following structural heading, which duplicates the `title` field already+ present on the hit and gives an agent nothing to decide a follow-up+ `memory_read_page` on. Measured against a live instance over 100 real pages+ (55 of them substantive, the rest near-empty session stubs), 53% of+ substantive descriptors opened by repeating the title verbatim, and the+ median page spent its 240-character budget on 35 characters of prose. Those+ six queries now prefer the page's own frontmatter `summary`, and otherwise+ fill the budget from the page's own text, skipping structural lines,+ `- **key:** value` metadata bullets, and any line that merely repeats the+ title. On the same sample title repetition drops to 0%, and 71% of session+ pages land on the prompts after the first — the part the title does not+ already show. The FTS path is unchanged, response shape is unchanged, and no+ schema migration is involved.## [1.31.0] - 2026-08-22