How to Disable the Built-In Explore and Plan Subagents in Claude Code
Set CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS to 1 so Claude Code reads files directly instead of delegating to the built-in agents.
THE FIELD GUIDE
Build, connect, and test tool-using agents and repeatable AI workflows with practical examples.
Set CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS to 1 so Claude Code reads files directly instead of delegating to the built-in agents.
Write a subagent description that names the exact work it does, because Claude Code reads descriptions to decide when to delegate.
Let Claude Code delegate codebase searches to the built-in Explore subagent, which reads files on a cheaper model and cannot write.
Add a permissions.deny rule for git push in Claude Code settings so a subagent can run tests and builds but cannot push.
Set model to haiku on an Explore-style Claude Code subagent so codebase searches cost less than full-capability runs.
Set a tools allowlist on a Claude Code subagent so it can read, search and report but cannot change any file.
Write a reviewer subagent file in .claude/agents so Claude Code delegates code reviews to a specialist with its own instructions.
Pass a custom speaker selection function to an AG2 GroupChat so the next speaker follows your own routing rules.
Run an AG2 research group chat with a planner, engineer, executor, scientist and critic so the summary is reviewed before it is…
Check that every agent in an AG2 GroupChat has a unique name, because duplicate names raise a ValueError before the chat runs.