Subagents are best suited for a large codebase with many parts. you'd be working on heavy complex software if you're finding yourself using subagents. Each subagent is given a prompt and is allocated its own context. These subagents answer to the primary agent and the subagents can be made aware of each others status, but generally they are given file-scoped prompts to keep them from "stepping on each others toes" so to speak. Say you are doing a large refactor on a legacy PHP codebase, with ma…