claude-code - 💡(How to fix) Fix Hook event for recap text

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
RAW_BUFFERClick to expand / collapse

Feature request

It would be useful to have a hook event that fires when a recap is generated, with the recap text available to the hook (e.g. via stdin JSON like PreToolUse/PostToolUse).

Use case

We use hooks to bridge Claude Code activity to a chat system (Rains federation via River MCP). Currently we post progress updates manually via MCP tool calls, but a PostRecap or OnRecap hook would let us automatically forward the harness-generated summary to external systems without relying on the LLM to remember to do it.

The recap text is already a good concise summary of what happened — being able to pipe it somewhere automatically would be valuable.

Suggested behavior

  • New hook event (e.g. PostRecap or OnRecap)
  • Fires after the recap is generated
  • stdin JSON includes at minimum: recap_text, session_id, transcript_path
  • Hook stdout could optionally replace/modify the displayed recap (similar to how PreToolUse can block)

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Hook event for recap text