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
| Method | Description |
|---|---|
teammate_name | The name of the idle teammate |
team_name | The team name |
Hook State Helpers
๐ Shared hook state methods
| Method | Description |
|---|---|
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
| Method | Description |
|---|---|
output.continue? | Whether Claude will continue |
output.stop_reason | The reason Claude was stopped |
Hook Exit Codes
| Exit Code | Behavior |
|---|---|
exit 0 | Claude continues |
exit 2 | Blocks Claude (continue: false) |