Kane CLI Project Showcase / Upgrades, rewrites and migrations
theseus
CLI that treats your running legacy web app as the answer key. Kane CLI verifies old vs. new in Chrome and drives coding agents until zero behavioral drift.
Built with Antigravity, Claude Code, OpenCode by Team Farouk Obayanju
Tested with Kane CLI
Demo video by the theseus team
About theseus
Theseus is an open-source TypeScript CLI for engineers migrating legacy web applications. Instead of writing fragile migration tests by hand or relying on CSS-breaking pixel diffs, Theseus treats the running legacy app as the executable answer key.
You define user journeys in plain English inside theseus.yaml (or auto-discover them with `theseus discover` via `kane-cli explore`). Theseus runs each flow in headless Chrome against the legacy URL using `kane-cli run --agent --headless` (with `--assertion-mode dom`, `--final-validation on`, and `--bug-detection continue`), caches golden `store as` outputs, and validates every `.evidence` pack via `kane-cli evidence validate --profile L1`.
Next, it runs the exact same flows against your modern rewrite and compares six drift classes: extracted value mismatches, missing declared keys, flow status, new console errors, new HTTP 4xx-5xx network errors, and native Kane bug-detection findings.
In `converge` mode, Theseus sends structured diff tables and Chrome evidence directly to your coding agent (Claude Code by default, or any CLI via `--agent-cmd`), re-verifies failing flows, runs a mandatory full regression pass to catch Hydra regressions, merges all legacy and modern packs via `kane-cli evidence merge`, and signs a self-contained SHA-256 HTML equivalence certificate (`.theseus/report.html`) with side-by-side Chrome screenshots, L1 validation status, and git diffs.
More about theseus
How the agent and Kane CLI talk to each other:
Kane CLI runs plain-English flows in real Chrome against Legacy and Modern URLs, streaming NDJSON (`final_state`, `variables`, `memory`, `coverage.pack`, native bug findings).
Theseus unpacks each `.evidence` zip (annotated PNG screenshots, console NDJSON, HAR network logs), validates it with `kane-cli evidence validate --profile L1`, diffs Legacy vs. Modern, and formats a Markdown drift report with expected/actual tables and browser errors.
That report is piped directly to `claude -p` (or any `--agent-cmd` like OpenCode or Gemini CLI) scoped to `repoPath`. After the agent edits files, Theseus takes a scoped `git diff` snapshot, runs targeted re-verification on failing flows, then runs a mandatory full regression pass over every flow before calling `kane-cli evidence merge` and signing `.theseus/report.html`.
What Kane CLI caught and proved:
Shop benchmark (`--suite shop`, verified live on Windows to `Verdict: EQUIVALENT`, exit 0, 6 packs merged): caught all 3 planted rewrite bugs in `pricing.mjs`: tax applied before `SAVE10` discount ($98.25 vs $97.43), silent promo code overwrite instead of "Promo codes cannot be combined", and a missing $10.00 minimum order checkout guard.
Real-world TodoMVC benchmark (`--suite todomvc`): catches "1 items left" singular grammar drift, whitespace-only todos accepted, and `clearCompleted` wiping active todos.
Live runs also caught real edge cases we fixed with regression tests (51/51 passing): Windows `.cmd` shim resolution via `where.exe` (zero `ENOENT`), numbered duplicate keys (`promo_error_2`), and ignoring Kane's internal `cp_final` checkpoint variable when explicit `storeKeys` are declared.
How to run it:
git clone https://github.com/faroukobayanju/theseus.git
cd theseus && npm install && npm run build && npm test
node dist/cli.js demo --suite shop # live Chrome + Claude Code
node dist/cli.js demo --suite todomvc # real-world TodoMVC benchmark
# Free agent runner: add --agent-cmd "opencode run --standalone --auto {{prompt}}"
What's next:
Authenticated session / cookie handoff for legacy apps behind SSO
Parallel flow execution with worker pools for large migration suites
GitHub Action wrapper posting the signed equivalence badge and diff summary directly on migration PRs
Community-submitted project. The description and results come from the theseus team's Kane CLI hackathon submission and have not been verified by TestMu AI.
Test your own app the way theseus was tested
Every project in the showcase had to run Kane CLI to be eligible. Kane CLI runs a flow you describe in plain English in a real browser, and saves the steps, screenshots, logs and verdict as evidence.
npm install -g @testmuai/kane-clikane-cli loginkane-cli run --url https://your-app.example "Sign up and verify the dashboard loads"More projects in upgrades, rewrites and migrations
Browse all projects

