From docs/AUDIT-v0.4.0.md (P1, item 4).
The buffer records what happened (tool calls) but never why: user intent lives only in the compactable, mortal conversation. There is no UserPromptSubmit hook.
Proposal: a small hooks/session-prompt.sh on UserPromptSubmit that appends a redacted, truncated (~200 chars) prompt line to the session buffer, reusing the existing jq redaction pipeline from session-capture.sh. Line shape suggestion: - \` prompt `. Same fail-open guarantees (exit 0 on every failure path, breadcrumb to .capture-errors).
This is the cheapest high-value fidelity win: claude-mem captures this event, and the handoff skill currently reconstructs intent from conversation recall, which is exactly what compaction destroys.
From docs/AUDIT-v0.4.0.md (P1, item 4).
The buffer records what happened (tool calls) but never why: user intent lives only in the compactable, mortal conversation. There is no UserPromptSubmit hook.
Proposal: a small hooks/session-prompt.sh on UserPromptSubmit that appends a redacted, truncated (~200 chars) prompt line to the session buffer, reusing the existing jq redaction pipeline from session-capture.sh. Line shape suggestion:
- \` prompt `. Same fail-open guarantees (exit 0 on every failure path, breadcrumb to .capture-errors).This is the cheapest high-value fidelity win: claude-mem captures this event, and the handoff skill currently reconstructs intent from conversation recall, which is exactly what compaction destroys.