Skip to content

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.

🧑🏼‍💻 DevelopmentRedesign SystemUpdate EvalsProduct PlanningKeyAcceptanceAcceptanceIdeasPrioritized WorkEpicStoriesEmptyBacklogPrioritizedBacklogStoryRejectedStoryCurrent EvalsCodeUpdated EvalsFailing TestsRequestedChangesStoryUpdated EvalsFailing TestsRedesignedSubsystemsPlanStoryStory withTasksStory withTasksPassing EvalsTaskSubsystemsCode & TestsFailingProperty TestsSubsystemsCode & TestsFailing EvalsEmptyTask ListStory'sSubsystemsSurvivorsSubsystemsCode & TestsFailing ChecksPassing ChecksCodeEmptyWorkQueueTaggedStoryWorkingSoftwareAcceptedStoryNew Functionality🧑🏻‍🎨 Designer🧑🏾‍⚖️ Product Manager🧑🏼‍💻 Developer🧞 Agent⚙ Automation🧑🏻‍🎨 🧑🏾‍⚖️ PrioritizeIdeas🧑🏾‍⚖️ Choose Epic🧑🏾‍⚖️ 🧑🏼‍💻 🧞 BreakDown Epic🧑🏾‍⚖️ 🧑🏼‍💻 🧞 PrioritizeStories🧑🏼‍💻 🧞 Choose Storyfrom Top of Backlog🧑🏼‍💻 🧞 Update Evals⚙ Deploy🧑🏾‍⚖️ Accept or Reject🧑🏾‍⚖️ ⚙ Release🧑🏼‍💻 Review Evals& Tests🧞 Redesign System🧞 Add Tasks to Story🧑🏼‍💻 🧞 Review Tasks🧞 Pick Next Task🧞 Tag Repo🧞 Red/Green/Refactorin Subsystems🧞 Migrate toProperty Testing🧞 Run FullEval Suite🧞 Complete Story🧞 Run Mutation Tests🧞 Run Controls& ChecksOpen full diagram ↗
Figure 1: All of the stages in one diagram. It’s a lot.

Principles

  1. Evals are the spec. Code can be thrown away. Any subsystem can be rewritten as long as every eval still passes.
  2. If you care about it, make it an eval. Anything that isn’t an eval, the agent is free to change.
  3. The edges are fixed. The inside can be redrawn. Contracts with other systems are evals. Contracts between subsystems are disposable tests.
  4. 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.
  5. People decide what gets built and whether it’s done. Agents decide how. People own prioritization, evals and acceptance.
  6. 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:

The Stages

StageWhoTurnsInto
Product Planning🧑🏻‍🎨 🧑🏾‍⚖️ 🧑🏼‍💻 🧞IdeasA prioritized backlog
Update Evals🧑🏼‍💻 🧞The top story and the current evalsReviewed evals and their failing tests
Redesign System🧑🏼‍💻 🧞The story, updated evals, failing tests and the codeA story with reviewed tasks
Development🧑🏼‍💻 🧞A story with reviewed tasksA tagged story
Acceptance🧑🏾‍⚖️ ⚙A tagged storyNew 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 theseus Claude 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.