Skip to content

Migrate your app to Rails.Prove it behaves the same.

Rails 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.

Or paste this into your coding agent

Install Rails Anything with npm i -g rails-anything, then run rails-anything setup. Run rails-anything go -- <command that starts this app> and finish the port until rails-anything gate --app passes.

Source language
Rails Anything
recordHTTP
replay100%
gatepass
Rails
Controller
ERB view
Turbo Frame
Stimulus
JavaScript, Kotlin, C#, PHP, Rust, Swift
TypeScriptsrc/routes/orders.tsTypeScript route moves to Rails behind the front door. Replay: 100%match
Rails 8 · Hotwire · Tailwind CSS · daisyUI
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.

  1. 01

    Install the CLI

    $npm install -g rails-anything
    $rails-anything setup

    One package from npm.

  2. 02

    Register it with your agent

    rails-anything setup adds the skill and the MCP server to Claude Code, Codex, Cursor, Gemini CLI, OpenCode, Windsurf, GitHub Copilot and Cline.

  3. 03

    Check your toolchain

    rails-anything doctor checks Ruby, Rails and the runtimes your original needs.

rails-anything goPortsMoves the migration to its next stage and writes the next task for your agent
rails-anything analyzePlansRoutes, templates, functions in waves, dependencies and decisions
rails-anything app recordRecordsSaves what every request answers, plus side effects
rails-anything gateBlocksDone means gate passes: every case matches, rubocop and brakeman pass
rails-anything app liftShipsRemoves the proxy and leaves a pure Rails app

Recording 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. Rails 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.

Your appNode, Python, Go, Java, PHP and more
Rails Anything app record
  • Records every HTTP answer, or CLI output
  • Turns your own test suite into cases
  • Captures outgoing HTTP, email and DB rows
Rails Anything front-door
  • Runs rails new with Tailwind and daisyUI
  • Proxies unported routes to the original
  • Each route gets a kill switch
Rails Anything diff, gate
  • Replays every recorded case
  • Pages compared by visible text, JSON exactly
  • Gate blocks stubs and pasted answers
Rails Anything app lift
  • Replay stays at 100%
  • Fallback rate drops to zero
  • The proxy goes; pure Rails is left
Rails 8 appHotwire, Tailwind, daisyUI
rails-anything app record . --http -- npm startrails-anything app wire . ordersrails-anything gate . --apprails-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.

~/shop
# record the original, side effects included
$ rails-anything app record . --http --effect-env SMTP_HOST=smtp_host -- npm start
$ rails-anything app front-door .
# your agent ports the route, then:
$ rails-anything app wire . checkout
$ rails-anything app replay .
$ rails-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.