Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add async hooks support for Claude Code v2.1.0+#11

Merged
himattm merged 1 commit intomainfrom
himattm/async-hooks
Jan 30, 2026
Merged

Add async hooks support for Claude Code v2.1.0+#11
himattm merged 1 commit intomainfrom
himattm/async-hooks

Conversation

@himattm
Copy link
Owner

@himattm himattm commented Jan 30, 2026

Summary

  • Configure hooks that don't need to display output or block execution to run asynchronously (fire-and-forget)
  • Improves responsiveness by not making Claude wait for hooks that only do logging or cache invalidation
  • Updates installer, test fixtures, and documentation

Async hooks: Stop, SessionStart, SessionEnd, PostToolUse, Notification, SubagentStop

Sync hooks (unchanged): UserPromptSubmit, PreCompact, Setup, PreToolUse, PermissionRequest

Test plan

  • All 11 installer merge tests pass
  • All Go tests pass
  • Fresh install: verify async flags present in ~/.claude/settings.json
  • Merge install: verify prism hooks added with correct async flags

🤖 Generated with Claude Code

Configure hooks that don't need to display output or block execution
to run asynchronously (fire-and-forget). This improves responsiveness
by not making Claude wait for hooks that only do logging or cache
invalidation.

Async hooks: Stop, SessionStart, SessionEnd, PostToolUse, Notification,
SubagentStop

Sync hooks (unchanged): UserPromptSubmit, PreCompact, Setup, PreToolUse,
PermissionRequest

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@himattm himattm merged commit 1442806 into main Jan 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant