# SpawnAgentOptions

**Kind:** Interface

**Source:** [`atloria-monorepo/libs/agent-core/src/tools/spawn-agent.tool.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/agent-core/src/tools/spawn-agent.tool.ts#L40)

## Properties

| Property | Type |
|---|---|
| `runtime` | `IAgentLoop` |
| `agentFactory` | `AgentFactory<TContext>` |
| `timeout` | `number` |
| `onBackgroundComplete` | `(event: BackgroundCompleteEvent) => void` |
| `worktreeManager` | `WorktreeManager` |
| `router` | `ModelRouter` |
| `onSubagentStart` | `(event: { agentName: string; task: string }) => void` |
| `onSubagentEnd` | `(event: { agentName: string; output: string; durationMs: number }) => void` |
