What
New hook types for agent team workflows that allow custom scripts to run at key points.
Details
TeammateIdle: Fires when a teammate is about to go idle. Input is JSON withteammate_nameandteam_name. Exit code 2 prevents idle (teammate continues working).TaskCompleted: Fires when a task is being marked as completed. Input is JSON withtask_id,task_subject,task_description,teammate_name, andteam_name. Exit code 2 prevents task completion.
Evidence
Hook definitions (search for "When a teammate is about to go idle", "When a task is being marked as completed")
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agree
Added TeammateIdle and TaskCompleted hook events for multi-agent workflows