Create custom subagents changedsub-agents
Nearest release: v2.1.327, published 2 hours after 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 17 Nov 2026 18:21 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 17 Nov 2026 18:37 UTC.
Upstream edited
Recorded here
Lines+6added
Lines−6removed
From line
650
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits112to this page, all time
The whole hunk
from line 650, old and new numbered
/
from line 650
650650
651651#### Enable persistent memory
652652
653The `memory` field gives the subagent a persistent directory that survives across conversations. The subagent uses this directory to build up knowledge over time, such as codebase patterns, debugging insights, and architectural decisions.
653The `memory` field gives the subagent a persistent directory that survives across conversations. The subagent uses this directory to build up knowledge over time, such as your preferences, your corrections, and project decisions.
654654
655655```yaml theme={null}
656656---
from line 660
660660---
661661
662662You are a code reviewer. As you review code, update your agent memory with
663patterns, conventions, and recurring issues you discover.
663the review preferences and corrections you're given.
664664```
665665
666666Choose a scope based on how broadly the memory should apply:
from line 687
687687* Include memory instructions directly in the subagent's markdown file so it proactively maintains its own knowledge base:
688688
689689 ```markdown theme={null}
690 Update your agent memory as you discover codepaths, patterns, library
691 locations, and key architectural decisions. This builds up institutional
692 knowledge across conversations. Write concise notes about what you found
693 and where.
690 Update your agent memory as you learn the team's preferences, project
691 constraints, and the reasons behind key decisions. This builds up
692 institutional knowledge across conversations. Write concise notes about
693 what you learned and why it matters.
694694 ```
695695
696696#### Conditional rules with hooks
No line in this hunk matches that.