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 review/pr-243
AkitaOnRailsc180e1d9948f
diff --cc CHANGELOG.mdindex 80e14773,d68bddde..8db204f5--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -14,17 -14,37 +14,47 @@@ and this project adheres to [Semantic Vthe local SQLite index directly, so every CLI command is a thin HTTPclient of the running server; the command now requires a reachableserver and no longer works against an offline data directory.+ - Managed workstream support for Grok Build CLI: `ai-memory run grok` (alias+ `grok-build`) creates fresh sessions with a wrapper-generated `--session-id`,+ resumes linked sessions with `--resume`, maps wrapper `--yolo` onto Grok's+ native `--yolo`/`--always-approve`, and delivers the bounded workstream+ context packet through Grok's native `--rules` flag (system-prompt append,+ acknowledged only after the child spawns). Transcript import reads+ `$GROK_HOME/sessions/*/*/chat_history.jsonl` read-only with a+ prefix-validated cursor and content-hash event ids so rewind-driven journal+ rewrites cannot duplicate history; system prompts and encrypted reasoning+ are excluded as loss annotations, as are the harness-injected `<user_info>`+ and `<system-reminder>` blocks Grok stores inside `user` records (project+ instructions, the skills catalogue, and connected MCP servers), which would+ otherwise leak harness internals into the portable ledger and evict real+ conversation from the startup packet budget. Discovery+ matches checkouts through `summary.json`'s recorded `info.cwd` and honors+ `GROK_HOME`. Grok stays out of the bare-mode automatic pool. Verified+ against Grok Build CLI v0.2.111 ([#237]).++ ### Fixed+ - `install-mcp --client claude-desktop` now detects an MSIX-packaged+ Claude Desktop on Windows and writes to its virtualized+ `AppData\Local\Packages\Claude_<id>\LocalCache\Roaming\Claude\claude_desktop_config.json`+ instead of the plain `%APPDATA%\Claude\` path. Previously this+ silently wrote a config file the running app ignored, so the MCP+ server never appeared after restart. The detector uses Windows'+ resolved local and roaming app-data roots, prefers an existing config+ when multiple package directories exist, and fails with an explicit+ `--config-file` recovery instruction when the active package is+ ambiguous. Unpackaged installs keep resolving to the plain path.+ (#250)+### Fixed+- The Docker wrappers (`bin/ai-memory`, `bin/ai-memory.ps1`) kept stdin+ attached only on a real terminal, so every piped or redirected+ invocation reached the container with a closed stdin. `ai-memory+ write-page --body -` therefore stored a page with frontmatter and an+ empty body while still reporting a successful write, and the same+ applied to any other stdin reader (hooks fed by a pipe). The wrappers+ now pass `-i` whenever stdin is not a terminal, and keep `-t` for real+ terminals only (#243).+## [1.18.0] - 2026-07-23### Added