Files
claude-code-system-prompts/system-prompts/tool-description-agent-when-to-launch-subagents.md
T
2026-11-18 16:43:32 -07:00

1.6 KiB

${TOOL_BASE_DESCRIPTION}. Each agent type has specific capabilities and tools available to it.

${DESCRIBES_SYSTEM_TURNS_FN({model:e,describesSystemTurns:h})?AVAILABLE_AGENT_TYPES_SYSTEM_MESSAGE_NOTICE:AVAILABLE_AGENT_TYPES_SYSTEM_REMINDER_NOTICE}${PRO_PLAN_SUBAGENT_RESTRICTION_NOTE}

${CAN_FORK_CONTEXT?When using the ${AGENT_TOOL_NAME} tool, specify a subagent_type to select an agent: "fork"forks yourself (the fork inherits your full conversation context and always runs on your model — amodel override is ignored); ${HAS_GENERAL_PURPOSE_AGENT?"any other type — or omitting it — starts a fresh agent (general-purpose by default).":any other type starts a fresh agent. ${GENERAL_PURPOSE_AGENT_UNAVAILABLE_INSTRUCTIONS}}:When using the ${AGENT_TOOL_NAME} tool, specify a subagent_type parameter to select which agent type to use. ${HAS_GENERAL_PURPOSE_AGENT?"If omitted, the general-purpose agent is used.":GENERAL_PURPOSE_AGENT_UNAVAILABLE_INSTRUCTIONS}}${SUBAGENT_BUDGET_NOTE===void 0?"":`

${SUBAGENT_BUDGET_NOTE}`}