Create custom subagents changedsub-agents
Nearest release: v2.1.332, published 7 hours before upstream edited the page. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Upstream edited this page at 25 Nov 2026 05:58 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 25 Nov 2026 06:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
710
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits117to this page, all time
The whole hunk
from line 710, old and new numbered
/
from line 710
710710
711711For more dynamic control over tool usage, use `PreToolUse` hooks to validate operations before they execute. This is useful when you need to allow some operations of a tool while blocking others.
712712
713This example creates a subagent that only allows read-only database queries. The `PreToolUse` hook runs the script specified in `command` before each Bash command executes:
713This example creates a subagent that only allows read-only database queries. The `PreToolUse` hook runs the script specified in `command` before each Bash tool call executes:
714714
715715```yaml theme={null}
716716---
No line in this hunk matches that.