Skip to content

Add hooks for follow-up actions using a fast model #529

Closed

Description

@sentry-junior

Support event-driven hooks that trigger lightweight follow-up actions using a fast model after a primary skill completes. When a qualifying event occurs — such as a commit push or a merge — Junior should automatically run a cheap, scoped follow-up (e.g. refreshing the PR description to reflect the new diff) without requiring an explicit user request.

Gap

Junior currently only acts when directly invoked. There is no mechanism to chain a fast-model action onto the completion of another action or an external event. This means routine hygiene tasks (keeping a PR up to date after a push) fall back to the user.

Options

  • Post-action hook registry: skills or actions declare optional on_complete hooks that run a fast-model step with bounded context
  • Event listener model: subscribe to GitHub/Slack webhook events (e.g. push, pull_request.synchronize) and dispatch a configured lightweight action
  • Scheduled polling fallback: periodically check for stale PR descriptions when a hook bus is unavailable

Action taken on behalf of immutable dcramer.

Activity

  1. sentry-junior commented on Nov 9, 2026

    @sentry-junior
    ContributorAuthor

    Covered by #1038 (cheap fast-model handling for event turns) and #1365 (refresh PR metadata after a push, the motivating example here). Event triggers themselves exist as event automations.

    Closed during a tracker cleanup. Reopen if this still needs separate tracking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions