subagent-four-failure-modes-and-bulletproofing-fixes

Four root causes for subagent stalls/vanishing changes: (1) settings.local.json had zero Edit/Write wildcards — every file modification triggered a permission prompt the subagent couldn’t resolve; fix by adding broad workspace wildcards. (2) isolation: ‘worktree’ writes to a temp git tree, not the live workspace — changes appear to vanish; never use for production. (3) Session-scoped MCPs registered mid-session are invisible to pre-existing subagents — register before dispatching. (4) Specialized agent types (Explore, etc.) have curtailed toolsets; always use subagent_type: ‘general-purpose’ for execution tasks.