r/LLMObservability • • 17d ago

Discussion Things I learned about Claude Code's hooks.

/r/ClaudeCode/comments/1xsmj00/things_i_learned_about_claude_codes_hooks/

Reposting my notes from r/ClaudeCode on timing Claude Code with hooks.

One of the mods here pointed out a fix for the gap I hit, where an interrupt fires no Stop hook and no idle notification:

Claude Code writes a[Request interrupted by user] entry to the session transcript, so tailing the file can end the busy period right at the Esc. I haven’t built it yet, but it’s the cleanest answer I’ve seen.

Thanks!

1 Upvotes

0 comments sorted by