First time spawning an agent? Start with the first agent quickstart — it walks you through one end-to-end. The page below is the reference.
The basic call
<task-name>, picks the claude runtime, hands it the contract as its initial prompt, and supervises the resulting subprocess (or pod, depending on deployment mode) until it exits.
Inputs that shape the agent
What the control plane does on spawn
- Admission check. Concurrency limits, queue eligibility. If full, the agent enters the queue.
- Workspace creation. Either a git worktree (local-process) or a per-agent directory (Docker Compose / Kubernetes). See Workspaces.
- Credential materialization. Profile-driven secrets are written into the agent’s environment.
- Process launch. The runtime CLI is started as a subprocess (local-process / Docker Compose) or as a Kubernetes Job (k8s mode).
- Wiring. The agent’s MCP client points at the gateway. Its mailbox is initialized. Its intent is set to a default.
- State write. The agent appears in
fracta listwith statusrunning.
Lifecycle states
The orchestrator tracks each agent through a small state machine:
State transitions are persisted in the state store (SQLite or PostgreSQL). They survive restarts of the control plane.
Talking to an agent after it’s running
fracta merge is non-destructive — the agent keeps running and can iterate further. fracta kill is the terminal operation.
Spawning many at once
The swarm pattern is many agents in parallel.fracta spawn is happy to be invoked repeatedly:
fracta list to watch all of them at once.
Source
- Spawn flow:
internal/orchestrator/spawn.go - Lifecycle writer:
internal/agentlifecycle/ - Admission and reaping:
internal/admission/

