Skip to main content
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

This creates an agent named <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

  1. Admission check. Concurrency limits, queue eligibility. If full, the agent enters the queue.
  2. Workspace creation. Either a git worktree (local-process) or a per-agent directory (Docker Compose / Kubernetes). See Workspaces.
  3. Credential materialization. Profile-driven secrets are written into the agent’s environment.
  4. Process launch. The runtime CLI is started as a subprocess (local-process / Docker Compose) or as a Kubernetes Job (k8s mode).
  5. Wiring. The agent’s MCP client points at the gateway. Its mailbox is initialized. Its intent is set to a default.
  6. State write. The agent appears in fracta list with status running.

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:
Each gets its own workspace; admission control enforces the configured concurrency limit. Use fracta list to watch all of them at once.

Source