Agents commands
spwn init
Scaffold a Spwn project in the current directory.
Scaffold a Spwn project in the current directory.
Without arguments, creates a blank spwn.yaml plus a default ./spwn/ tree (one world, one agent) and adds .spwn/ to .gitignore.
A positional example ref installs one of the bundled gallery entries into the current directory. Bare names resolve through the catalog:
spwn init matrix # shorthand for spwn init spwn:matrix
spwn init spwn:matrix # explicit formUse --global to instead seed ~/.spwn/ with a world config (legacy user-home mode, kept for backward compatibility).
Usage
spwn init [example-ref] [flags]Options
--backendstringPin the scaffolded agent to a runtime backend (e.g. claude-code, codex). Leave empty to let Spwn resolve at spawn time.-f, --forceOverwrite existing spwn.yaml--globalInitialise ~/.spwn/ (legacy user-home mode)--namestringProject name (default: current directory name)Related Commands