diff --git a/hooks/session-end-dump.sh b/hooks/session-end-dump.sh index 7483f66..9cfdecd 100755 --- a/hooks/session-end-dump.sh +++ b/hooks/session-end-dump.sh @@ -41,4 +41,12 @@ if command -v kei-memory >/dev/null 2>&1 && [ -f "$dest" ]; then >/dev/null 2>&1 || true fi +# v0.11 sleep-sync (RULE 0.15) — push traces to the user's memory-repo so a +# cloud agent can consolidate them overnight. Silent no-op when the primitive +# is absent or the user hasn't opted in via /sleep-setup. +sleep_sync="${HOME}/.claude/agents/_primitives/kei-sleep-sync.sh" +if [ -x "$sleep_sync" ]; then + "$sleep_sync" >/dev/null 2>&1 || true +fi + exit 0