Skip to content

Add user-prompt-submit hook to remind Claude about recap logging #359

@acreeger

Description

@acreeger

Summary

Add a user-prompt-submit hook that reminds Claude to log decisions, insights, and risks to the recap system. This addresses the gap where Claude may forget to call add_entry after making decisions.

Problem

Claude has instructions to log decisions/insights/risks to recap, but doesn't always do so consistently. This is a pattern-matching gap - the instruction exists but isn't always applied in the moment.

Trying to enumerate every scenario in prompts isn't scalable.

Proposed Solution

A user-prompt-submit hook that injects a brief reminder before each response:

If you made any decisions, discovered insights, or identified risks in your previous turn, log them to recap before continuing.

This keeps recap logging in Claude's working memory without requiring explicit prompting for every scenario.

Implementation Options

  1. Add to existing iloom-hook.js - Check for UserPromptSubmit event type and output reminder
  2. Separate hook file - Keep concerns separated (status broadcasting vs behavioral nudges)

Considerations

  • Keep reminder brief to minimize context overhead
  • Only inject when ILOOM=1 (same as existing hook)
  • Consider whether to always inject or only when recap file exists

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions