mirror of
https://github.com/akitaonrails/ai-memory.git
synced 2026-10-02 03:24:46 +08:00
docs/marker-file.md says the hook scripts forward `briefing` and `briefing_budget` on the handoff lookup when the marker opts in. Only the Kiro CLI and Kimi Code scripts did; the session-start scripts of Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Command Code, Devin and Antigravity CLI built the GET from ai_memory_marker_qs alone, and the PowerShell library added the briefing query only for Kimi and Grok. A script install with `inject_on_session_start = true` therefore got the handoff without the brief, while the native `ai-memory hook` command sent both. Each of those scripts now appends ai_memory_briefing_qs to its handoff GET, and Invoke-AiMemoryHook adds Get-AiMemoryBriefingQuery to every session-start fetch outside Kiro's once-per-session gate. No gate is added: the native session-start path sends the keys on every start. tests/hooks/test_lib.sh discovers every bundle whose session-start.sh fetches the handoff and asserts the keys are present when the marker opts in and absent when it opts out, plus a static check on the PowerShell library. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019KhB86k7H61CePGZdxtwyz