Recent updates to Claude Code give subagents persistent memory that survives across separate sessions, opening up much finer control over agent context.

Previously, subagents kept working memory only while executing a single call and lost everything once the task returned. Now they maintain independent context over long-running, multi-session projects.

Three Scopes of Subagent Memory

Memory permissions split cleanly across three levels. User scope stores and reuses notes across all of a user’s projects. Project scope applies inside the current git repo so teammates share accumulated context. Local scope stays private to the current user within the current project, acting as a personal scratchpad.

Separating shared repo knowledge from personal working notes keeps team conventions synced without leaking local configuration.

Custom Subagent Design and Benefits

Subagents keep raw search results and verbose command logs out of the main conversation thread. Each subagent runs in an isolated context window with its own system prompt and tool allowlist, separating codebase exploration from implementation.

Restricting write or shell tools per subagent creates safer execution boundaries, while routing lightweight lookups to a fast, low-cost model like Haiku trims token spend.

Built-in agents such as Explore and Plan follow the same pattern, skipping unnecessary file reads so the main session avoids context bloat.

Shifts in Collaboration Strategy and Use Cases

Persistent subagent memory changes how multi-agent workflows fit together. Instead of stitching together separate top-level agents externally, developers can place role-specific subagents - each with its own persistent memory - underneath a single orchestrating session.

Developers who repeatedly type the same project rules or run parallel sessions across repositories benefit immediately from subagents that remember prior runs.

Summary

  • Persistent subagent memory carries context across sessions, cutting repetitive instructions and token waste.
  • Splitting memory into User, Project, and Local scopes balances team knowledge sharing with local privacy.
  • Isolating exploration in subagents and routing lighter tasks to models like Haiku lowers cost while keeping the main context clean.