Search

Menu

Get Spwn on your computer

On this computer

macOS or Linux. Paste it in a terminal:

curl -fsSL https://spwn.sh/install.sh | bash

It installs two commands, spwn-agents and spwn-machines (short: agents, machines). Then spwn auth, spwn init, spwn agent neo. Docker must be running.

Send it to another computer

A phone can’t run Spwn. Send the command to the computer that will.

Email it to meOpens your mail app with the command. You type the address.

macOS or Linux · Docker running · no Spwn accountGetting started

Docs

Why

Principles

Seven principles. Each names what most tools do instead, why Spwn does not, where the product carries it, and one thing you can check yourself.

Principle 1 of 7

You bring the taste. The stack brings the hands.

The usual way
The tool decides the style and the context for you: a house prompt, a default voice, a template of how work is done.
Why not
A model left to decide builds the average of what it has read. What makes the work yours is your taste, your vision and the context that never reached a screen. The stack carries that to every agent; it does not replace it.
In the product
Wiki is being made for this: each fact in one place, written by you, read by every agent. What runs today is narrower. Agents mounts a knowledge folder you declare into a world, and every agent there reads it.
You can check it
Leave knowledge out of a world in spwn.yaml and its agents are never told a knowledge base exists. Declare it, and spwn world knowledge ls lists the files they read.
It would be broken if
the stack shipped a persona that overrode what you wrote, or kept one fact in two places, so that an agent read the stale copy.

Principle 2 of 7

Delegating is a craft, not a prompt.

The usual way
One strong agent, given every task in one long conversation.
Why not
One conversation holds until the work is larger than one head, and then you stop knowing what it did. A team holds because each part knows its scope, who it hands off to and when to ask you. Delegating never takes the detail away: you can open any part and set it straight.
In the product
Agents gives each agent a declared role in its agent.yaml: role: chief | manager | worker | npc. OS is being made for the rest: the one place where only what needs you reaches you.
You can check it
Give one agent the role chief and the others worker. spwn agent inspect shows each one’s composition, memory, world status and history, so the detail stays open to you.
It would be broken if
a surface asked you about everything, or hid the detail with no way to open it.

Principle 3 of 7

Rules live in the world, not in the agent.

The usual way
Give the agent every access, and ask it in its instructions to be careful.
Why not
A rule written in a prompt is enforced by the thing it constrains, so it can be talked around. A rule written in the environment cannot: a network that does not exist cannot be talked into anything. So the agent is left free, and its world is fenced instead.
In the product
Agents runs each agent in a world where a capability that is not declared does not appear at all. Machines gives an agent a machine of its own, and each port of a machine is a right with an audience: who may reach it.
You can check it
Start a server on a port the Machinefile does not open. station ports lists it as listens, not allowed, with the range that is open, and nothing shares it until you do.
It would be broken if
a guardrail in a prompt were the security boundary, or a machine got the credentials of the computer above it by default.

Principle 4 of 7

Declared, never improvised.

The usual way
Configure by hand, as you go, and forget what you did.
Why not
What is not written cannot be read back, shared, reviewed or rebuilt. A machine set up by hand drifts, and nobody remembers why it is the way it is. So each thing Spwn runs is one file, and what runs is what the file says.
In the product
Machines declares each machine by its Machinefile and works out what to do from it. Agents declares an agent in agent.yaml and a project in spwn.yaml.
You can check it
station explain prints each value of a machine’s Machinefile with the origin it comes from. station drift lists, row by row, where the machine differs from its Machinefile, and changes nothing.
It would be broken if
a setting were reachable only by a click with no file behind it, or the stack held a state no file explains.

Principle 5 of 7

Done means proven.

The usual way
“It seems to work”, said by whoever did the work.
Why not
When agents do most of the work, you cannot check it all by hand, and a maker’s word about its own work proves nothing. Done has to be checked by something other than the maker, against what was asked, in a form you can read.
In the product
Specs is being made for this. What runs today is narrower: Agents checks each tool a world declares while it builds the world’s image, so a world that is missing what it promised fails its build instead of failing an agent.
You can check it
Give a tool of a world a verify: probe that fails, then build the world: the build stops on it, before any agent wakes up.
It would be broken if
the agent that did the work could set its status to done, with no check behind it.

Principle 6 of 7

Taste is a system.

The usual way
Each screen designed on its own, to the taste of the day.
Why not
Agents apply what exists. If taste is a set of decisions written once, they apply it everywhere without reinventing it. If it lives in each screen, each new screen drifts from the last.
In the product
Design is being made for this: one family of shapes that agents apply without redrawing. Nothing of it ships yet.
You can check it
This site works the way Design asks. Open any two diagrams in these docs: their boxes, connectors and titles are the same pieces from one kit, and every edge lands on the dots of one 12 px grid.
It would be broken if
a piece were drawn by hand for one screen when the family already has it.

Principle 7 of 7

The stack learns. You don’t repeat yourself.

The usual way
Every session starts from nothing.
Why not
A clean session is easy to predict, and it makes you say the same thing again every day. A correction you give once should be the last time you give it. That needs agents that keep an identity and a memory, and a place where what each task learned is written.
In the product
Agents keeps each agent’s mind, its soul, its playbooks and its journal, on your computer, and the mind outlives the world the agent worked in. Wiki is being made as the place where a lesson becomes a rule every agent reads.
You can check it
Destroy a world with spwn world destroy: its agents are still listed by spwn agent ls, and each comes to its next world with the same mind.
It would be broken if
a memory lived only in one session, or a lesson were written where no agent will read it.