Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
docs: humanizer pass over the 2.7-only documentation
AkitaOnRailsb0b906eb4395
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7544fe20..f5a41ded 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -30,7 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0drift and 4 on conflicts or refusals (a clone without sync state comparesthe repository with the server directly), and `install-hook` /`uninstall-hook` manage a marked git `post-merge` block that runs `sync`- after each merge — a dry-run report unless `--on-merge apply`, never with+ after each merge: a dry-run report unless `--on-merge apply`, never with`--prefer`, and never with a stored token. The cookbook has a GitHubActions recipe. (#986)- The `ai-memory-wikisync` companion now propagates deletes with@@ -60,7 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0re-reads each page right before writing it. (#1164)- `finalize-session --agent antigravity-cli` now replays the session's typedprompts from `agy`'s `history.jsonl` before its synthetic session-end, so- live Antigravity sessions — whose hooks carry no prompt event — get a summary+ live Antigravity sessions, whose hooks carry no prompt event, get a summarypage titled by the first prompt, a handoff with "Started/Last", and promptsthat `memory_query` and `memory_recent` can find. Only lines whoseconversation and workspace match the session are read; each prompt carriesdiff --git a/companions/ai-memory-wikisync/README.md b/companions/ai-memory-wikisync/README.mdindex 4551d7f4..dde5e60f 100644--- a/companions/ai-memory-wikisync/README.md+++ b/companions/ai-memory-wikisync/README.md@@ -1,6 +1,6 @@# ai-memory-wikisync-**Team-wiki sync** companion for+Team-wiki sync companion for[ai-memory](https://github.com/akitaonrails/ai-memory) (issue #986, slices1, 3, 4 and 5). It keeps explicitly allowlisted page families of a runningai-memory server in step with a directory inside a project repository, so a@@ -84,7 +84,7 @@ All local bookkeeping lives in one state file,`.ai-memory-wikisync/state.json` (mode 0600, atomically replaced aftereach successful write batch): per page, the SHA-256 of the bytes lastwritten plus the server `ETag` and version id observed at that write.-Nothing else is stored — no tokens, no server credentials.+Nothing else is stored: no tokens and no server credentials.The state is per clone. The state directory carries a `.gitignore` of `*`,so committing the destination never commits the state: two clones that@@ -178,7 +178,7 @@ Safety rules:## CI and post-merge-`sync --check` writes nothing — no files, no state — and reports through its+`sync --check` writes nothing (no files, no state) and reports through itsexit code:| Exit | Meaning |@@ -235,5 +235,5 @@ ai-memory-wikisync uninstall-hook --dest docs/wiki [--hooks-dir DIR]write tool.4. Deletes and conflict reporting (`--propagate-deletes`, conditionalwrites).-5. **This release — post-merge hook and CI integration** (`install-hook`,+5. This release: post-merge hook and CI integration (`install-hook`,`sync --check`).diff --git a/docs/companion-crates.md b/docs/companion-crates.mdindex f089a50a..1ff4be77 100644--- a/docs/companion-crates.md+++ b/docs/companion-crates.md@@ -247,8 +247,8 @@ root `cargo test --workspace`.Mirror a team's shared ai-memory pages into a project repository asreviewable markdown, so the wiki a team actually maintains can travel with-the code it documents, and let reviewed repository edits flow back —-family-scoped and dry-run by default.+the code it documents, and let reviewed repository edits flow back. Both+directions are family-scoped and dry-run by default.### How it talks to ai-memory@@ -288,7 +288,7 @@ family-scoped and dry-run by default.reported with a diff summary and the whole batch is refused without`--force`.- `plan` and `export` never delete; `sync` deletes only with- `--propagate-deletes`. It never runs git, commits, or pushes — it prints+ `--propagate-deletes`. It never runs git, commits, or pushes; it printsthe commands (`git add`, `git rm`) the operator may run.- Destination-path safety: traversal, dotfiles, reserved Windows names,non-portable characters, case-fold collisions, oversized bodies,diff --git a/docs/cookbook.md b/docs/cookbook.mdindex 327eec25..255509f4 100644--- a/docs/cookbook.md+++ b/docs/cookbook.md@@ -146,7 +146,7 @@ needs ai-memory 2.7+), and deletes travel only with `--propagate-deletes`.### Keep it in step after merges and in CI`install-hook` writes a git `post-merge` hook that runs `sync` after every-merge or pull — a dry-run report by default, `--on-merge apply` to write. It+merge or pull: a dry-run report by default, or a write with `--on-merge apply`. Itnever stores a token (the hook reads `AI_MEMORY_AUTH_TOKEN` when it runs) andnever passes `--prefer`, so conflicts still wait for a person:diff --git a/docs/deploy.md b/docs/deploy.mdindex 63d97413..57a9b661 100644--- a/docs/deploy.md+++ b/docs/deploy.md@@ -192,7 +192,7 @@ options:> is `AI_MEMORY_LLM_COMPAT_DISABLE_THINKING=true` (it sends> `chat_template_kwargs: {"enable_thinking": false}` on every openai-compat> request); if the engine still truncates the structured payload or returns empty-> content, the job now fails fast with a terminal `truncated-response` /+> content, the job fails fast with a terminal `truncated-response` /> `empty-content` error instead of retrying.ai-memory's hosted OpenAI-family providers use `json_schema` strict mode fordiff --git a/docs/llm-providers.md b/docs/llm-providers.mdindex 068a1fa7..d82b166f 100644--- a/docs/llm-providers.md+++ b/docs/llm-providers.md@@ -375,12 +375,12 @@ also set `COPILOT_GITHUB_TOKEN`, `GH_TOKEN`, or `GITHUB_TOKEN` on the server.> `AI_MEMORY_LLM_COMPAT_DISABLE_THINKING=true` to send> `chat_template_kwargs: {"enable_thinking": false}` on every openai-compat> request so the engine spends the budget on the payload instead. The knob is-> opt-in, openai-compat only, and off by default — existing vLLM / Ollama /+> opt-in, openai-compat only, and off by default: existing vLLM / Ollama /> LM Studio setups are unchanged unless it is set, and every other provider> ignores it. When the engine still truncates a structured response, or-> returns HTTP 2xx with an empty `message.content`, the call now fails fast-> with the terminal errors `truncated-response` / `empty-content` — no-> retry, no second HTTP call, and the error text carries no response+> returns HTTP 2xx with an empty `message.content`, the call fails fast+> with the terminal errors `truncated-response` / `empty-content`. There is+> no retry and no second HTTP call, and the error text carries no response> content.For small-context local models, configure both consolidation limits. The inputdiff --git a/docs/mcp-install.md b/docs/mcp-install.mdindex 7f438b05..f9bce6c6 100644--- a/docs/mcp-install.md+++ b/docs/mcp-install.md@@ -502,16 +502,16 @@ Sources: <https://dev.meta.ai/docs/muse-code/configuration>,DSH has no fixed JSON/TOML MCP config: the MCP client is a Cordis plugin entry(`@deepseek-ai/dsh-mcp-client`) inside a profile's `cordis.patch.yml`.-`install-mcp` therefore prints a ready-to-merge patch fragment and **refuses-`--apply`**:+`install-mcp` therefore prints a ready-to-merge patch fragment and refuses+`--apply`:```bashai-memory install-mcp --client dsh```Merge the printed `- insert:` item into-`$DSH_HOME/profiles/<profile>/cordis.patch.yml` — the `web` profile-reloads its patch live — then reload or restart the profile. The fragment registers+`$DSH_HOME/profiles/<profile>/cordis.patch.yml` (the `web` profile+reloads its patch live), then reload or restart the profile. The fragment registersthe default stateless HTTP endpoint and carries `Authorization: Bearer <token>`when `--auth-token` (or a configured server token) is present.@@ -521,7 +521,7 @@ Code hooks is not a supported capture path: those hooks report every event as`agent=claude-code`, so DSH sessions would be stored as Claude Code sessions.ai-memory does not install or manage the bridge, and it delivers only seven Claude Code events(`SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`,-`Stop`, `SubagentStart`, `SubagentStop`) — `PreCompact` and+`Stop`, `SubagentStart`, `SubagentStop`). `PreCompact` and`SessionEnd` are not delivered, and its `SessionStart` injection runsdetached. Treat DSH as MCP-only here and recover handoffs explicitly with`memory_handoff_list` then `memory_handoff_accept` when continuity matters.