MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getAgentToolSection

Function getAgentToolSection

src/constants/prompts.ts:316–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314}
315
316function getAgentToolSection(): string {
317 return isForkSubagentEnabled()
318 ? `Calling ${AGENT_TOOL_NAME} without a subagent_type creates a fork, which runs in the background and keeps its tool output out of your context \u2014 so you can keep chatting with the user while it works. Reach for it when research or multi-step implementation work would otherwise fill your context with raw output you won't need again. **If you ARE the fork** \u2014 execute directly; do not re-delegate.`
319 : `Use the ${AGENT_TOOL_NAME} tool with specialized agents when the task at hand matches the agent's description. Subagents are valuable for parallelizing independent queries or for protecting the main context window from excessive results, but they should not be used excessively when not needed. Importantly, avoid duplicating work that subagents are already doing - if you delegate research to a subagent, do not also perform the same searches yourself.`
320}
321
322/**
323 * Guidance for the skill_discovery attachment ("Skills relevant to your

Callers 1

Calls 1

isForkSubagentEnabledFunction · 0.85

Tested by

no test coverage detected