Claude Code now tracks a live list of running hooks per host, with an agent ID threaded through
When Claude Code runs hooks (scripts that fire on events like tool use) outside the normal request/response cycle, it now registers each batch of hooks in a shared tracking store before running them, marks each one as settled once it finishes, and cleans up the registration when all are done. An agentId value is now passed through the entire hook-execution path, and a finisher callback runs once every hook in the batch has settled.
This gives Claude Code visibility into which hooks are currently running per host and ties that activity to a specific agent, which is a building block for coordinating or reporting on hook execution rather than a change you'll directly interact with.