Skip to content

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 fix/handoff-workspace-arg

AkitaOnRails855aefe913d5
diff --cc CHANGELOG.md
index f491f2a5,1dfcbb7b..a689e4c5
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -6,15 -6,22 +6,31 @@@ The format is based on [Keep a Changelo
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
+ ### Added
+ - `install-hooks --agent grok` (plus `setup-agent` / `uninstall` coverage) for
+ the xAI **Grok Build CLI**. Grok's `~/.grok/hooks/ai-memory.json` shares Claude
+ Code's JSON shape and seven-event vocabulary, with a Grok-specific hook bundle
+ and native `ai-memory hook --event … --agent grok` commands.
+ ai-memory entries merge into a dedicated `ai-memory.json`, leaving any
+ third-party `~/.grok/hooks/*.json` untouched. NOTE: Grok ignores hook stdout on
+ `SessionStart`, so capture works but handoff injection does not. Grok's
+ `session-start` therefore skips the handoff fetch entirely — the fetch is
+ destructive (it marks the handoff accepted server-side) and Grok would discard
+ the result, silently losing the handoff; recover a prior session's handoff via
+ the MCP `memory_handoff_accept` tool instead. Adds `AgentKind::Grok` (`grok`
+ wire tag), the `AgentKind::session_start_injects_handoff` gate, and migration
+ `V20` extending the `sessions.agent_kind` CHECK so Grok sessions persist on
+ upgraded servers (the antigravity/`V11` precedent).
+
+### Fixed
+- `memory_handoff_begin` and `memory_handoff_accept` now accept an optional
+ `workspace` argument alongside `project`, resolving through the same
+ workspace+project path as `memory_write_page` (begin, create-if-missing) and
+ `memory_handoff_cancel` (accept, find-only). They previously took `project`
+ only, so a cross-workspace handoff was routed by the per-actor active-project
+ fallback and could be written to — or read from — the wrong project.
+ `memory_handoff_cancel` already carried `workspace`.
+
## [1.0.3] - 2026-06-13
### Added
- Native macOS release tarballs (`ai-memory-macos-aarch64.tar.gz` for