Migrate your app to Rails.Prove it behaves the same.
Ruby Anything records what your app does, then replays every recorded request and call against the Rails port. Your agent writes the Ruby. Nothing ships until the outputs match.
Install Ruby Anything with npm i -g ruby-anything, then run ruby-anything setup. Run ruby-anything go -- <command that starts this app> and finish the port until ruby-anything gate --app passes.
src/routes/orders.tsTypeScript route moves to Rails behind the front door. Replay: 100%match- 10
- source languages: TypeScript, JavaScript, Python, Go, Java, Kotlin, C#, PHP, Rust and Swift
- 8
- coding agents set up by one command: Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot, Cline
- 100%
- of recorded cases must match before a piece passes the gate
- 0%
- fallback to the original before app lift leaves a pure Rails app
Install
Install the CLI, then add the skill and the MCP server to Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot and Cline.
- 01
Install the CLI
$npm install -g ruby-anything$ruby-anything setupOne package from npm.
- 02
Register it with your agent
ruby-anything setupadds the skill and the MCP server to Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot and Cline. - 03
Check your toolchain
ruby-anything doctorchecks Ruby, Rails and the runtimes your original needs.
ruby-anything goPortsMoves the migration to its next stage and writes the next task for your agentruby-anything analyzePlansRoutes, templates, functions in waves, dependencies and decisionsruby-anything app recordRecordsSaves what every request answers, plus side effectsruby-anything gateBlocksDone means gate passes: every case matches, rubocop and brakeman passruby-anything app liftShipsRemoves the proxy and leaves a pure Rails appRecording runs the original's real code. Work on a copy, with a test database (--db-reset "<command>").
How a port gets done
The original stays the source of truth. Ruby Anything does not translate code: it records behavior, keeps the app running behind a Rails front door, and a gate says when each piece is done.
app record- Records every HTTP answer, or CLI output
- Turns your own test suite into cases
- Captures outgoing HTTP, email and DB rows
front-door- Runs rails new with Tailwind and daisyUI
- Proxies unported routes to the original
- Each route gets a kill switch
diff, gate- Replays every recorded case
- Pages compared by visible text, JSON exactly
- Gate blocks stubs and pasted answers
app lift- Replay stays at 100%
- Fallback rate drops to zero
- The proxy goes; pure Rails is left
ruby-anything app record . --http -- npm startruby-anything app wire . ordersruby-anything gate . --appruby-anything app lift .What the recording catches
An example: a first port of a checkout route forgot to send the receipt email. The page looked right, and replay failed.
# record the original, side effects included $ ruby-anything app record . --http --effect-env SMTP_HOST=smtp_host -- npm start $ ruby-anything app front-door . # your agent ports the route, then: $ ruby-anything app wire . checkout $ ruby-anything app replay . $ ruby-anything gate . --app
# replay, first port POST /checkout: status and page text match - POST /checkout: expected 1 email to buyer@example.test, got 0 # the original sent one email; # the Rails port sent none. # after the agent adds the mailer: # every case matches, and the gate passes
Languages
The language and framework are detected from the repository. analyze lists routes, templates and functions in waves, and every dependency with its Rails equivalent.
Try it on your own app.
Free and open source. Your original stays the judge, and one switch sends any route back to it.