Answer: You can disable specific subagents by adding them to the `deny` array in your settings using the format `Agent(subagent-name)`, or by using the `--disallowedTools` CLI flag. Status: Confirmed Entry: tool/claude-code/agents-and-automation/disable-subagents Revision: 2 Digest: sha256:856aa634457ad049 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:57Z Last changed: 2026-11-15T12:26:05Z (example deny array: — → ["Agent(Explore)", "Agent(my-custom-agent)"]) Last verified: 2026-11-20T12:25:46Z Next check: 2026-11-21T12:25:46Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of settings method | Agent(subagent-name) | [1] | 2026-11-20 example deny array | ["Agent(Explore)", "Agent(my-custom-agent)"] | [1] | 2026-11-20 CLI flag | --disallowedTools | [1] | 2026-11-20 CLI example | claude --disallowedTools "Agent(Explore)" | [1] | 2026-11-20 Sources: [1] Anthropic. "Create custom subagents". https://code.claude.com/docs/en/sub-agents.md Role: primary. Accessed: 2026-11-20T12:25:46Z Quote: "Use the format `Agent(subagent-name)` where `subagent-name` matches the subagent's name field." (Supports: settings method) Quote: ""deny": ["Agent(Explore)", "Agent(my-custom-agent)"]" (Supports: example deny array) Quote: "You can also use the `--disallowedTools` CLI flag:" (Supports: CLI flag) Quote: "claude --disallowedTools "Agent(Explore)"" (Supports: CLI example) Published: 2026-11-20T02:51:46Z Snapshot SHA-256: 554874b443a109e88a2c58273dd3ccdd8e74cf6ed0536238fb704dbe0a254b43 (captured 2026-11-20T12:25:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:25:46Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:46Z Last attempt: 2026-11-20T12:25:46Z Notes and limitations: Extracted automatically from a single official source (section "Disable specific subagents"). Related: https://latestn.com/tool/claude-code/agents-and-automation/dispatch-agent-from-shell How do I dispatch a new background agent from the Claude Code shell? https://latestn.com/tool/claude-code/agents-and-automation/display-todo-progress-realtime How do I display Claude's todo progress in real time in my application using the Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/enable-agent-teams How do I enable agent teams in Claude Code? https://latestn.com/tool/claude-code/agents-and-automation/create-subagent-programmatically How do I create a subagent programmatically in the Claude Agent SDK? https://latestn.com/tool/claude-code/agents-and-automation/custom-sessionstore-adapter How do I implement a custom SessionStore adapter for Claude Code Agent SDK session storage? https://latestn.com/tool/claude-code/agents-and-automation/disable-filesystem-settings-setting-sources How do I disable filesystem settings like CLAUDE.md and skills in a Claude Code SDK agent? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:26:05Z | changed | example deny array: — → ["Agent(Explore)", "Agent(my-custom-agent)"] | [1] 2026-11-15T12:26:05Z | changed | settings method: — → Agent(subagent-name) | [1] 2026-11-15T12:26:05Z | changed | example deny entry: Agent(Explore) → — | [1] 2026-11-15T12:26:05Z | changed | deny array format: Agent(subagent-name) → — | [1] 2026-11-13T03:05:57Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/agents-and-automation/disable-subagents/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/agents-and-automation/disable-subagents POST: https://latestn.com/dispute/tool/claude-code/agents-and-automation/disable-subagents with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/agents-and-automation/disable-subagents?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I disable specific subagents in Claude Code? Revision 2, last verified 2026-11-20T12:25:46Z. https://latestn.com/tool/claude-code/agents-and-automation/disable-subagents (accessed 2026-11-21T09:59:03Z). @misc{LatestN_tool_claude_code_agents_and_automation_disable_subagents_r2, title = {How do I disable specific subagents in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/agents-and-automation/disable-subagents}}, note = {Revision 2; digest sha256:856aa634457ad049; last verified 2026-11-20T12:25:46Z; accessed 2026-11-21T09:59:03Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/agents-and-automation/disable-subagents