Create custom subagents changedsub-agents
Nearest release: v2.1.333, published 2 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 30 Nov 2026 21:52 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 30 Nov 2026 22:07 UTC.
Upstream edited
Recorded here
Lines+1added
Lines−1removed
From line
795
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits128to this page, all time
The whole hunk
from line 795, old and new numbered
/
from line 795
795795
796796Until you trust the folder, the subagent still runs, but Claude Code skips its frontmatter hooks and logs an error to the debug log explaining how to trust the folder. This is a stricter rule than the one for hooks in settings files: trusting a parent folder isn't enough, and a `-p` session doesn't count as trusted. [What runs before you trust a folder](https://code.claude.com/docs/en/permissions.md#what-runs-before-you-trust-a-folder) compares the two.
797797
798All [hook events](https://code.claude.com/docs/en/hooks.md#hook-events) are supported. The most common events for subagents are:
798The most common hook events for subagents are:
799799
800800| Event | Matcher input | When it fires |
801801| :- | :- | :- |
No line in this hunk matches that.