Expand description
spawn_worker tool: first-class coordinator-pattern delegation.
Unlike the lower-level sub_agent tool (which the LLM can use for arbitrary
sub-tasks), spawn_worker is designed for the coordinator pattern where
a lead agent explicitly delegates structured work to specialist workers.
Motivation: The old TeamOrchestrator approach required the LLM to write
DELEGATE:<role>:<task> text strings, which were then parsed — a fragile,
non-type-safe mechanism. spawn_worker gives the coordinator agent a proper
JSON tool call to express delegation, eliminating text parsing entirely.
§Worker types
worker_type | System prompt focus | Tool access |
|---|---|---|
general | General-purpose | Full (parent registry) |
explore | Read-only research | read_file, list_dir, search_files, web_fetch |
coder | Code implementation | Full |
reviewer | Code review | read_file, list_dir, search_files |
researcher | External research | read_file, search_files, web_fetch |
Structs§
- Spawn
Worker Tool - The
spawn_workertool — a first-class coordinator delegation mechanism.
Enums§
- Worker
Type - Named worker personality for coordinator-pattern delegation.