Introduction
Spawnfile is a spec and compiler for autonomous agent runtimes – systems that host agents as long-lived services with markdown workspace identity.
The Problem
Section titled “The Problem”Agent harnesses differ in how they read instructions, configure tools, select a model and store credentials.
Your agent’s identity – its personality, instructions, skills, and tool connections – gets locked into one runtime’s conventions.
The Solution
Section titled “The Solution”Spawnfile gives you one canonical source format. You write a Spawnfile manifest and a set of markdown docs. The compiler generates the runtime-native config and workspace files each target expects.
spawnfile_version: "0.1"kind: agentname: research-assistantruntime: name: openclaw
workspace: docs: identity: IDENTITY.md soul: SOUL.md system: AGENTS.md skills: - ref: ./skills/web_search
environment: packages: - id: playwright manager: npm name: playwright
execution: model: primary: provider: anthropic name: claude-sonnet-4-5 auth: method: claude-codeSet runtime.name to an adapter-supported runtime and run spawnfile compile. The compiler emits that runtime’s native files and reports any capability that is degraded or unsupported.
After compile, spawnfile status gives a read-only view of declared and compiled state. After a detached run or up, spawnfile status --live inspects the recorded Docker target, runs adapter-owned runtime probes, and checks Moltnet metadata without treating live systems as source of truth.
What Spawnfile Targets
Section titled “What Spawnfile Targets”Each adapter writes native files and describes how the harness starts. Agents in one team can choose different adapters. Register your own adapter in the root Spawnfile to add another harness. Adapter guide
Supported Runtimes
Section titled “Supported Runtimes”| Built-in harness | What Spawnfile runs |
|---|---|
| Daimon | One host with a workspace per Daimon agent |
| OpenClaw | An OpenClaw gateway and workspace |
| PicoClaw | A PicoClaw gateway and workspace |
| Hermes Agent | A Hermes workspace with native sessions |
| OpenCode | An OpenCode server and workspace |
OpenFang is a research target. Runtime overview
Open Source
Section titled “Open Source”Spawnfile is fully open source under the MIT license. Contributions and discussion are welcome on GitHub.