github ★

The Dockerfile for agentic organizations.

Define an agent or team in a Spawnfile. Run it in Docker.

$ npm i -g spawnfile
Example scope
Spawnfile
Example view
spawnfile_version: "0.1"kind: teamname: research-orgmode: hierarchicallead: coordinatormembers:  - { id: coordinator, ref: ./daimon }  - { id: analyst, ref: ./openclaw }  - { id: engineer, ref: ./opencode }  - { id: field-team, ref: ./field }
Full Spawnfile
spawnfile_version: "0.1"kind: agentname: engineerruntime: opencodeworkspace:  docs: { system: AGENTS.md }execution:  model:    primary: { … }
Full Spawnfile
Docker1 container
research-org5 agents
  • Daimon
  • OpenClaw
  • OpenCode
  • Hermes Agent
  • PicoClaw
#mission-controlcoordinator · analyst
engineer1 agent
  • OpenCode
Model
gpt-5.4
Instructions
AGENTS.md
[ format ]

Two kinds: agent and team.

  • An agent says who it is, which harness and model it runs on, and where it talks.
  • A team lists its members, its lead and its rooms.
  • Teams can contain teams.
  • Read the full specification
daimon/Spawnfile
spawnfile_version: "0.1"
kind: agent
name: coordinator
runtime: { name: daimon, options: { engine: codex } }
workspace:
  docs: { system: AGENTS.md }
execution:
  model:
    primary: { provider: openai, name: gpt-5.4, auth: { method: codex } }
[ shared ]

Skills and tools, declared once.

Direct members inherit the team’s skills, servers, docs and secrets. Check the compile report for harness limits. OpenCode, for example, grants access to a whole MCP server.

Spawnfile
shared:
  workspace:
    skills: [{ ref: ./skills/cite-sources }]
  environment:
    mcp_servers:
      - name: web_search
        transport: streamable_http
        url: https://search.example.com/mcp
        tools: [search]
[ compile ]

Compile it for each harness.

Follow the Spawnfile quickstart to turn an agent manifest into the config and workspace its harness reads.

$ spawnfile compile
compiled to .spawn
[ run ]

Run it, check it, share it.

Sign each harness into its account, then start the team and its rooms together. Set up the example team.

$ spawnfile up . --auth-profile research --detach
$ spawnfile status . --live
$ spawnfile publish
[ harnesses ]

Pick a harness for each agent.

HarnessPinned versionModels or enginesLogins and keys
Daimon0.2.26-4bdb427Models or enginesCodex, Grok, AntigravityLogins and keysChatGPT, SuperGrok or Antigravity
OpenClaw2026.6.11Models or enginesOpenAI, Anthropic, custom and local endpointsLogins and keysChatGPT, Claude or a provider key
PicoClaw0.3.1Models or enginesOpenAI, Anthropic, custom and local endpointsLogins and keysChatGPT, Claude or a provider key
Hermes Agentv0.23.3Models or enginesNative providers, custom and local endpointsLogins and keysChatGPT, SuperGrok, Nous Portal, MiniMax or a provider key
OpenCode1.19.6Models or enginesNative providers, custom and local endpointsLogins and keysChatGPT, SuperGrok, GitHub Copilot, OpenCode Go plan key or a provider key

Compare runtime features or connect your own harness.

A file in your repo, not a control plane.

No server to run

No UI, no database, no tickets. The team is source you review in pull requests.

Not a runtime

It emits config for harnesses you already run, and leaves them untouched.

Not a chat network

Agents talk over Moltnet; Spawnfile declares the rooms and starts them.

[ train ]

Train an agent on your cases.

spawnfile train runs your cases on the agent’s own harness. Each stored trial writes a portable .eval with its reply, observed tools and grades. Training guide

$ spawnfile train ./Spawnfile --agent writer --dry-run

Compile your first team in a minute.

$ npm i -g spawnfile

Built with Spawnfile