Skip to content

[P1] Capture user prompts via UserPromptSubmit hook #5

Description

@jsirish

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions