TeammateIdle API

July 14, 2026 ยท View on GitHub

Available when inheriting from ClaudeHooks::TeammateIdle:

Runs when a teammate goes idle. Can block Claude from continuing via prevent_continue! or exit 2.

Input Helpers

๐Ÿ“š Shared input helpers

MethodDescription
teammate_nameThe name of the idle teammate
team_nameThe team name

Hook State Helpers

๐Ÿ“š Shared hook state methods

MethodDescription
prevent_continue!(reason)Block Claude from continuing (continue: false + stopReason)

There is no top-level decision field for this event โ€” block via prevent_continue! or exit 2.

Output Helpers

๐Ÿ“š Shared output helpers

MethodDescription
output.continue?Whether Claude will continue
output.stop_reasonThe reason Claude was stopped

Hook Exit Codes

Exit CodeBehavior
exit 0Claude continues
exit 2Blocks Claude (continue: false)