Specs of Theseus
A process for a team of people and agents to build software together. People decide what to build. Agents decide how. People and agents work together on specifications and evals. Agents write the tests and code. People decide when the work is done. The team can redesign, throw away, or rewrite any code in service of new work. The specs and tests are what lasts. The system can be replaced plank by plank like the Ship of Theseus.
Principles
- Evals are the spec. Code can be thrown away. Any subsystem can be rewritten as long as every eval still passes.
- If you care about it, make it an eval. Anything that isn’t an eval, the agent is free to change.
- The edges are fixed. The inside can be redrawn. Contracts with other systems are evals. Contracts between subsystems are disposable tests.
- Make the smallest change first, then look for something to regrow. XP keeps each step small. The Phoenix Architecture keeps the design from piling up patches.
- People decide what gets built and whether it’s done. Agents decide how. People own prioritization, evals and acceptance.
- Anyone can stop the line. At any step, an agent can raise an issue and hand the work back to a person. An open issue blocks the work until a person answers it.
Roots
Specs of Theseus borrows from:
- Pivotal Labs’ flavor of Extreme Programming (XP) — a prioritized backlog of small stories, coding practices using test-driven development, and acceptance of every story before releasing working software.
- Chad Fowler’s Phoenix Architecture — software is defined with durable specifications, but implemented with all disposable code. Any part of the system can be deleted and regrown, as long as the evals still hold.
The Stages
| Stage | Who | Turns | Into |
|---|---|---|---|
| Product Planning | 🧑🏻🎨 🧑🏾⚖️ 🧑🏼💻 🧞 | Ideas | A prioritized backlog |
| Update Evals | 🧑🏼💻 🧞 | The top story and the current evals | Reviewed evals and their failing tests |
| Redesign System | 🧑🏼💻 🧞 | The story, updated evals, failing tests and the code | A story with reviewed tasks |
| Development | 🧑🏼💻 🧞 | A story with reviewed tasks | A tagged story |
| Acceptance | 🧑🏾⚖️ ⚙ | A tagged story | New functionality in users’ hands |
More Details
- Evals — the four kinds of evals, how they’re written, and how they link to tests.
- Subsystems — the code units underneath the system; an agent modifies, deletes, and regrows the subsystems.
- Working Agreements — raising issues, tools, and commits with tags.
- Where Things Live — writing epics, stories, and evals then storing them in the repo.
- Usage — installing the
theseusClaude Code plugin and working with its skills. - Adopting an Existing Project — preparing the project and then writing the first evals for a project that has none.
- About — who wrote this, and where to find more.
Legend
- 🧑🏻🎨 a designer
- 🧑🏾⚖️ a product manager
- 🧑🏼💻 a developer
- 🧞 an agent
- ⚙ automation, such as CI/CD
In the diagrams:
- Boxes are activities. Arrows are the artifacts passed between them. Each box shows the actor(s), then names the activity with a verb.
- Box shapes: a box with double side borders is a work activity; a plain box is a choice or bookkeeping step, such as Choose Epic or Tag Repo.
- Box colors: green means people and an agent work together; red means an agent works alone; no color means people or automation, without an agent.
- Dotted arrows are returns that happen only sometimes, such as a rejected story or a reviewer’s requested changes.
- A role on a stage’s title means that person watches the whole stage. On Development, 🧑🏼💻 means the agent does its work while the developer oversees, answering issues and reading summaries.
Why Another System?
The short answer is because this works for me. Your mileage will vary.
However, I was looking for a system that was built on known, working principles. But one that could adapt to agents alone or in some variant of agentic software factories. I wanted an agentic system that expects software developers will be applying more rigor in the craft, but at higher levels of abstraction.