Skip to main content

Module agent

Module agent 

Source
Expand description

Agent tool: spawn subagents for parallel task execution.

Launches a new agent with its own query loop, isolated context, and optionally a separate working directory. The subagent runs the same tool set and LLM client but with its own conversation history and permission scope.

§Isolation modes

  • Default: shares the parent’s working directory
  • worktree: creates a temporary git worktree for isolated file changes

Structs§

AgentTool