A hook is a command you set up to run automatically at a certain point in Claude Code. SessionEnd hooks run when a session terminates. If such a hook is marked as having run on another machine, Claude Code no longer writes its failure output to your terminal's error output.
A new message is also used for hooks run elsewhere: "This hook runs on another machine, which could not run it."
In remote sessions, or sessions connected through another machine, you should no longer see misleading SessionEnd hook failures printed on your own computer.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Settings hooks are the command, HTTP, prompt, and agent hooks you configure in settings files. Each [settings hook event](https://code.claude.com/docs/en/hooks.md#hook-events), such as `Stop`, `SessionEnd`, or `PostToolUse`, is also an eve…plugins/mods/events see the edit
&& idle.StopReason?.Value is BetaManagedAgentsSessionEndTurn)managed-agents/events-and-streaming see the edit
Anthropic's documentation has since written up SessionEnd, on events-and-streaming.