Skip to main content

register_task_tool

Function register_task_tool 

Source
pub fn register_task_tool(
    registry: &mut ToolRegistry,
    manifest: &AgentManifest,
    driver: Arc<dyn LlmDriver>,
    max_depth: u32,
)
Expand description

Register TaskTool + Spawn { max_depth } capability in the given registry, unless the manifest already denies Spawn explicitly.

Also discovers user-defined subagents from the current working directory’s .apr/agents/ (or .claude/agents/ for cross-compat) and merges them on top of the 3 canonical built-ins. This is the default-registration hook used by apr code so the Task tool ships in the default toolbelt (Claude-Code parity).