Skip to content

Hook for phase boundary recap reminders #348

@acreeger

Description

@acreeger

Summary

Add a hook that fires when iloom agents complete, reminding the orchestrator to capture any decisions, insights, risks, or assumptions from that phase that weren't already logged.

Motivation

The prompts (#347) tell Claude to log things proactively as they happen. But Claude may forget during long phases. The hook provides a "backstop" - a reminder at each phase boundary to capture anything that was missed.

The hook reminder can be specific about what to look for, making it easy for the orchestrator to distill the key points from the agent's output.

Proposed Implementation

Hook Trigger

Fire when an agent task completes, filtered to iloom agents:

  • Agent name contains "iloom" (e.g., iloom-issue-enhancer, iloom-issue-analyzer, etc.)

Reminder Content

Inject a reminder to the orchestrator like:

The {agent-name} phase just completed. Before continuing, review the agent's output and use the Recap MCP to capture any:
- **Decisions** made during this phase
- **Insights** discovered about the codebase or problem
- **Risks** identified that could affect the solution
- **Assumptions** made about requirements or approach

Only log things not already captured. Keep entries concise.

Configuration

Make this optional in settings:

{
  "recap": {
    "phaseReminders": true  // default: true
  }
}

Alternative: Periodic Reminder

Consider also a periodic reminder (every N minutes or N tool calls) if no recap entry has been added recently. This is lower priority than phase boundary reminders.

Acceptance Criteria

  • Hook fires when iloom agents complete
  • Reminder text is injected to orchestrator
  • Reminder is specific about what to capture
  • Can be disabled via settings
  • Works with all iloom agents (enhancer, analyzer, planner, implementer, etc.)

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions