Checked fact 124112 Oct 2026Agents and apps
The documentation says hooks run in the application process, not inside the agent's context window, and that a PreToolUse hook that rejects a tool call prevents it from executing.
The exact words it rests on
Hooks run in your application process, not inside the agent's context window, so they don't consume context. Hooks can also short-circuit the loop: a PreToolUse hook that rejects a tool call prevents it from executing, and Claude receives the rejection message instead.
What the source said when we opened it, on 12 Oct 2026.
The source
How the agent loop works
Checked
Checked by the notis newsroom on , against the source above.
In the story
How an agent harness runs a model and enforces limits 12 Oct 2026
Cite this fact
Anyone may quote this address. It does not change; if we correct the story, this page says so.