Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors
Rust
fix(hooks): install the subagent scripts for claude-code and grok
Vinícius DS Andradeb0398d719cfe
diff --git a/crates/ai-memory-cli/tests/suite/packaging.rs b/crates/ai-memory-cli/tests/suite/packaging.rsindex 5fd728be..580f927a 100644--- a/crates/ai-memory-cli/tests/suite/packaging.rs+++ b/crates/ai-memory-cli/tests/suite/packaging.rs@@ -2635,6 +2635,8 @@ mod slow {"session-end","session-start","stop",+ "subagent-start",+ "subagent-stop","user-prompt-submit",];diff --git a/scripts/install-hooks.sh b/scripts/install-hooks.shindex c690b1d7..518a4617 100755--- a/scripts/install-hooks.sh+++ b/scripts/install-hooks.sh@@ -113,9 +113,10 @@ SCRIPTS=("session-end")-# kimi-code also captures the subagent lifecycle (its bundle mirrors-# hooks/claude-code/, which ships them); the default list omits them.-if [[ "$AGENT" == "kimi-code" ]]; then+# claude-code, grok and kimi-code also capture the subagent lifecycle: their+# bundles ship subagent-start/stop and their hook config points at them. The+# default list omits them.+if [[ "$AGENT" == "claude-code" || "$AGENT" == "grok" || "$AGENT" == "kimi-code" ]]; thenSCRIPTS+=("subagent-start" "subagent-stop")fi