Anthropic Agent SDK
Also known as: Claude Agent SDK, Anthropic Claude Agent SDK, Claude Code Hooks SDK
The programmatic TypeScript surface for building agents on top of Claude. Covers the 12 hook events (PreToolUse, PostToolUse, UserPromptSubmit, Stop, SubagentStop, PreCompact, SessionStart, SessionEnd, Notification, PermissionRequest, SubagentStart, PostToolUseFailure), the HookCallback signature, hookSpecificOutput decisions (allow/deny/ask + updatedInput), and how programmatic hooks compare to declarative Claude Code settings.json hooks.
Canonical resource
/blogs/anthropic-agent-sdk-hooks-typescript-referenceArticles (3)
Anthropic Agent SDK Hooks: TypeScript Reference
Programmatic Anthropic Agent SDK hooks reference. 12 events, full TypeScript signatures, PreToolUse, PostToolUse, Stop, SubagentStop, UserPromptSubmit with worked examples.
May 23, 2026
Claude Code Hooks: 6 Production Patterns (2026)
Six production Claude Code hooks patterns: auto-format, file protection, security gates, type-checks, prompt review. Real settings.json examples.
Feb 14, 2026
Context Engineering Beyond CLAUDE.md: The 5-Layer Hierarchy
CLAUDE.md is just layer one. The five-layer context hierarchy, memory patterns, and subagent strategies that separate productive AI coding from prompt guessing. With working examples.
Feb 14, 2026
Related Topics
Want to implement anthropic agent sdk in your product?
Talk to our team