By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Hooks and guardrails in custom agents

Teams that build their own agents on an SDK get the same interception points in code. Use them to validate tool inputs, block tool calls and stop runs when a guardrail trips, before the result reaches a user or downstream system.

Read in this order

  1. OfficialIntercept and control agent behavior with hooks (Claude Agent SDK)Start here: intercepting tool calls in code with the Claude Agent SDK.
  2. OfficialGuardrails (OpenAI Agents SDK)Input, output and tool guardrails in the OpenAI Agents SDK.
  3. OfficialConfigure permissions (Claude Agent SDK)How SDK permission modes and rules combine with your hooks.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.