Skip to content
Theseus

Delete the code.
Keep the ship.

Theseus writes down how an app behaves as plain-English Kane CLI tests1, deletes the code, lets AI agents grow it back in other stacks, and keeps testing until every version behaves like the original.

jQuery TodoMVC, regrown2

Regrown in Next.js and SvelteKit, then as a native Expo app on Expo on Android.

Behaviors proven everywhere
20/22
Regrowth rounds
8
Red verdicts fed back
9
Kane credits
2,750.8
  • Not run
  • Running
  • Passed
  • Failed
  • Diverged
BehaviorjQuery TodoMVCNextSvelteExpo on Android
Fresh empty view
Add one todo
Add many todos
Clear input after add
Ignore empty submission
Trim surrounding whitespace
Complete one todo
Mark all complete
Uncomplete all todos
Pluralized counter
Show all filter
Show active filter
Show completed filter
Update filtered list
Save edited title
Save edit on blur
Discard edit with escape
Empty edit removes todo
Remove one todo
Clear completed todos
Persist todos after reopening
Persist selected filter

How a voyage works

Four stages, each producing an artifact you can inspect. Everything below was taken from the voyage above, not written for this page.

  1. Capture

    An agent crawls the running original and drafts behaviors in plain English. Kane runs each one on the original, and only the ones it proves are kept. 21 of 22 made it into this spec.

    trim-inputAdding
    Starting from a fresh app with no items, enter spaces around "Task" and submit it, then store the footer counter text exactly as shown, or the word none if no counter is visible, as 'counter_text', and store the titles of the visible todos in display order separated by commas, or the word none if no todos are visible, as 'visible_titles'. Verify the only todo is labeled "Task" without surrounding spaces and the counter shows "1 item left".
    Kane storescounter_textvisible_titles
  2. Strength

    Theseus plants realistic bugs in a copy of the original and records which behaviors catch them. A bug that nothing catches is a hole in the spec, so it is reported rather than hidden.

    This voyage has no strength report yet.

  3. Regrow

    Each target starts in an empty clean room holding only SPEC.md and reference screenshots, never the original source. The agent builds, Kane tests, and every failure goes back with the failing step, the root cause and a suggested fix.

    Feedback for Next.js, before round 2
    Round 2. Kane CLI ran the behaviors from SPEC.md against your app: 20 of 22 pass.
    
    Fix the app so these behaviors pass, without breaking the ones that already pass. When Kane's root cause is an automation_bug the app may be right and the test flaky; check the screenshot before changing working code.
  4. Parity

    Passing is not the end. Kane stores values while it tests, such as the counter text or the route. Theseus compares them with the original's values and issues a certificate for each target, divergences included.

    Show active filter on Next.jsDiverged
    key
    counter_text
    original
    1 item left
    regrown
    1 item left All Active Completed Clear completed
Red-figure painting on a Greek vase: Odysseus bound to the mast of a ship while his crew rows past the Sirens.
Odysseus and the Sirens, about 480 to 470 BC3

The tests are the ship.

Plutarch tells of the Athenians keeping the ship of Theseus for centuries, replacing each rotten plank with new timber, until philosophers could not agree that it was still the same ship.4

Software has the same riddle, and the usual tests do not answer it. Unit tests import functions. Component tests mount components. Delete the code and those tests go with it.

The sentence below names no file, no framework and no selector. That is why it survived the move from jQuery to Next.js and SvelteKit, and off the web entirely onto Expo on Android. Written at the level of intent, tests stop being a check on the code and become the part of the app that lasts.

Starting from a fresh app with no items, enter spaces around "Task" and submit it, then store the footer counter text exactly as shown, or the word none if no counter is visible, as 'counter_text', and store the titles of the visible todos in display order separated by commas, or the word none if no todos are visible, as 'visible_titles'. Verify the only todo is labeled "Task" without surrounding spaces and the counter shows "1 item left".
Parity verdict for this behavior on each target:
  • jQuery TodoMVC (2012): the original
  • Next.js: Identical
  • SvelteKit: Diverged
  • Expo on Android: Identical

The log

Totals across the baseline and every regrowth round, read from the voyage file.

Behaviors in the spec
22
Each proven on the original before any code was deleted.
Regrowths
3
Next.js, SvelteKit, Expo on Android
Rounds
8
Build, run every behavior, feed failures back, repeat.
Failures fed back
7
Each with Kane's failing step, root cause and suggested fix.
Identical behavior
60/66
Target and behavior pairs whose stored values match the original. 2 diverged, 4 failed.
Kane runs
115
2 h 46 m of browser and emulator time.
Kane credits
2,696.3
The baseline plus every round on every target.

Run a voyage

Theseus is a command line tool. The site is built from what it records.

npx theseus-cli demo

Replays this voyage in your terminal. No login, no credits.

npx theseus-cli voyage ./examples/todomvc-jquery

Runs capture, strength, regrowth and parity on a real app. Needs Kane CLI logged in, and Claude Code or Codex on your path.

Read the method for the clean room rules and what a parity certificate does not prove.