Search the documentation
4 pages for claude_agent_sdk_disable_builtin_agents.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…type`, it gets this built-in `general-purpose` subagent. If you set [`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1`](/docs/en/env-vars), that default is gone too. Such a call then fails with `subagent_ty…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS` | Set to `1` to disable all built-in [subagent](/docs/en/sub-agents) types…
Error reference
Claude Code CLI · in the page
errors
…t-in-subagents) to fall back on. That is the case in two setups: * [`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1`](/docs/en/env-vars) is set in non-interactive mode, which removes every built-in subage…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…/en/headless) and the [Agent SDK](/docs/en/agent-sdk/overview), set [`CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS=1`](/docs/en/env-vars) to remove all built-in types and supply only your own. An Agent to…