# In what order do Claude Agent SDK hooks run when several match?

In no guaranteed order. When an event fires, every matching hook runs in parallel, and for permission decisions the most restrictive result applies, so one hook's `deny` blocks the [tool call](/answers/tool-calling/what-is-tool-calling) whatever the others return. Anthropic's docs say completion order is non-deterministic and tell you to write each hook to act independently, not to rely on another hook having run first.

That rules out chaining. A hook can't count on reading what an earlier hook logged or rewrote, because the two can finish in either order. If one check needs another's output, put both in a single callback, or split them across events so one runs at `PreToolUse` and the other at `PostToolUse`.

The docs' own example registers three independent checks on `PreToolUse`: authorization, input validation, and audit logging. Each one is safe alone, and none depends on the others.

Parallel hooks also change how you test them. A hook that only observes can go anywhere, but one that blocks or rewrites needs its own test, because [what a hook can check](/answers/claude-agent-sdk-evals/what-can-a-claude-agent-sdk-hook-check) is limited to the tool call in front of it.

---

Published: 2026-11-10

Sources:
- Claude Docs: Hooks in the Agent SDK, Register multiple hooks: https://code.claude.com/docs/en/agent-sdk/hooks (fetched 2026-11-10)

Source: https://tessary.ai/answers/claude-agent-sdk-evals/in-what-order-do-claude-agent-sdk-hooks-run
More on Claude Agent SDK evals: https://tessary.ai/answers/claude-agent-sdk-evals
From Tessary, agent reliability for AI agents in production: https://tessary.ai
