{"name":"CLAUDE_CODE_SUBAGENT_MODEL","slug":"claude-code-subagent-model","family":"env","title":"Environment variables","noun":"environment variable","description":"Subagent model choice now records where the model came from, not just its name.","description_source":"entry","described_by":{"version":"2.1.251","anchor":"subagent-model-resolution-now-records-where-the-model-came-f"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.251","released_at":"2026-08-28 15:34:26","spans":1}},"aliases":[],"entries":[{"version":"2.1.251","anchor":"subagent-model-resolution-now-records-where-the-model-came-f","heading":"Subagent model resolution now records where the model came from","line":"Subagent model choice now records where the model came from, not just its name.","released_at":"2026-08-28 15:34:26","reason":"named in this entry, found in this entry's text"},{"version":"2.1.251","anchor":"subagent-model-lookup-restructured-around-a-single-resolver","heading":"Subagent model lookup restructured around a single resolver","line":"Subagent model inheritance runs through one resolver, with a Bedrock family mapping check added.","released_at":"2026-08-28 15:34:26","reason":"found in this entry's text"},{"version":"2.0.28","anchor":"model-override-support-for-subagents","heading":"Model Override Support for Subagents","line":null,"released_at":"2025-10-27 20:45:04","reason":"found in this entry's text"},{"version":"1.0.64","anchor":"new-features","heading":"New Features","line":null,"released_at":"2025-07-30 21:26:57","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"agent-teams","title":"Orchestrate teams of Claude Code sessions","documented":false},{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"model-config","title":"Model configuration","documented":false},{"source":"claude-code","path":"sub-agents","title":"Create custom subagents","documented":false}],"docs_total":4,"gates":[],"related":[{"name":"CLAUDE_CODE_SUBAGENT_CACHE_EVICT","slug":"claude-code-subagent-cache-evict","description":"When true, turns on the `prompt-caching-evict-2026-05-12` beta for model requests marked `evictCacheOnComplete` that carry sticky betas, without consulting the `tengu_subagent_cache_evict` flag (default `false`). Provider checks still apply: it has no effect unless the request goes to the first-party API at a first-party base URL (or Claude Platform on AWS with no `ANTHROPIC_AWS_BASE_URL`), and not when `CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS` is set or HIPAA mode is active."},{"name":"CLAUDE_CODE_SUBAGENT_CONFIG_WARNING","slug":"claude-code-subagent-config-warning","description":"A startup notice can warn when your CLAUDE.md, skills or agents push Claude to delegate to subagents, which may cost extra tokens"},{"name":"CLAUDE_CODE_SUBAGENT_HISTORY","slug":"claude-code-subagent-history","description":"Claude Code can list the subagents that ran earlier in a session, off unless CLAUDE_CODE_SUBAGENT_HISTORY is set or it is switched on remotely"},{"name":"CLAUDE_CODE_SUBAGENT_MODEL_FORCE","slug":"claude-code-subagent-model-force","description":"With the forced subagent model set, the workflow authoring reference drops its model-override guidance."},{"name":"CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL","slug":"claude-code-subagent-prompt-cache-ttl","description":"You can pin the prompt cache to five minutes or an hour, separately for subagents."},{"name":"CLAUDE_CODE_SUBAGENT_PROMPT_SNAPSHOT","slug":"claude-code-subagent-prompt-snapshot","description":null}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-subagent-model","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}