Expand description
Main orchestrator actor.
MainActor is the central LLM-powered orchestrator. It:
- Receives user input and routes it to the appropriate agent
- Sends the full system context to its LLM backend
- Parses
<spawn>blocks in the LLM’s reply to dynamically create agents - Is protected — it cannot be killed by external commands
Spawn block format (JSON inside XML-like tags):
<spawn>
{
"agent_type": "DynamicAgent",
"agent_name": "data-fetcher",
"script": "...",
"description": "Fetches weather data"
}
</spawn>Structs§
- Main
Actor - The central orchestrator.
- Spawn
Directive - Parsed content of a
<spawn>block.