Under active development. Star us on GitHub

FAQ

Questions, answered.

Straight answers about the framework, its tested template and its checks: agents and models, why not Loco or your own prompt, contributing, cost, production, and whether this is all AI slop.

Getting started

Which agents work?

Claude Code with the plugin is the recommended setup: you get nine skills, from /offrails:new to /offrails:upgrade, and the guardrail hooks. Codex and opencode work too (the offrails command can start either for you), and so do Cursor, Meta's Muse and any other agent that reads AGENTS.md: every generated app carries AGENTS.md, a Cursor rule and Copilot instructions pointing at it. The docs are the framework, so any agent that reads Markdown can follow them. How to start without Claude Code.

Which models?

We started with Claude Opus 5.5, then used other models too, including Muse Wonder Full, OpenAI's GPT-6 Astra, Sol and Luna, and Claude Sonnet. The goal is a framework that works with any model, and we're especially interested in making it work very well for smaller ones. Results still vary with the model: the stronger it is at long, multi-step work, the fewer times you'll be asked to "fix the red test".

Do I need to know Rust?

No. You write intent (specs in product/, answers in the interview) and the agent writes every line. Knowing some Rust helps when you want to review a diff, and the compiler plus the test suite on two databases catch most mistakes before you'd ever see them.

How long does `new` take?

A full app skeleton takes roughly 40 to 60 minutes of agent time, because everything (the job queue, the dev mailbox, the jobs dashboard, the tests) is generated from the docs rather than installed from a library. Then the first cargo build takes about 10 minutes. Make a coffee; the agent asks its interview questions up front, so you can walk away after you say "yes" to the plan.

What does it cost?

The framework is free and open source, dual licensed MIT OR Apache-2.0. You pay for your agent (tokens or a subscription) and for wherever you host the app.

Using it

Do I have to use all of it?

No. Take the parts that matter to you and leave the rest. We give your agent good ideas and inspiration: the crates we'd recommend, and reference code for things we like, such as job processing, presence and authenticated webhooks, all in the samples repo. Nothing is hidden. The code is copied into your app, so it's all in your repo and yours to change. (You still depend on ordinary crates like Axum and SeaORM.) We're still experimenting and building real apps with it. We like it, and so far it has gone better than we expected.

Can I edit the code myself?

Yes, nothing stops you. The rule is that humans write intent, but when you paste a fix, the agent doesn't revert it: it keeps it working, records the intent in the spec or docs/decisions.md so it survives future changes, and owns that code again from then on. /offrails:doctor looks for hand edits too. Usually it's quicker to tell the agent what you wanted.

SQLite or Postgres?

Both, with the same code. Apps use SQLite locally, and you pick production in the interview: Postgres managed by your host (recommended), or SQLite on the server's disk for a single, cheap server. Every test suite runs on both databases, and "green" means green on both.

Can it do realtime, background jobs and email?

Yes, all built in, with no Redis: the database is the only infrastructure. An Oban-style persistent job queue with cron and a live /admin/jobs dashboard; a Swoosh-style dev mailbox at /dev/mailbox with mailer previews; live page updates over SSE; and channels with presence over WebSockets (from 0.4.0 on the framework's own offrails.v1 protocol, with resume after downtime and fallbacks).

How do I upgrade an app?

Commit, run offrails update, then offrails upgrade in the app (framework 0.4.0+; in Claude Code, /offrails:upgrade). Your agent reads the CHANGELOG's migration steps, reconciles instead of re-creating, never edits applied migrations, and shows you the plan first. The full upgrade guide.

Can my agent read the docs without installing anything?

Yes. Connect it to the hosted MCP server, https://rustoffrails.org/mcp. In Claude Code that's one line: claude mcp add --transport http rustoffrails https://rustoffrails.org/mcp; the MCP page has the setup for Claude, Cursor, ChatGPT and Codex. Your agent can then search the docs, read any guide, look up the Rails and Phoenix map, list the skills and get a starter prompt. It's read-only, public and needs no account. To build an app you still install the framework.

What's llms.txt for?

For your agent. /llms.txt is an index of the whole site in Markdown, /llms-full.txt is every doc in one file, and every page has a Markdown twin (add .md, or send Accept: text/markdown). Tell your agent "read rustoffrails.org/llms.txt" and it gets clean Markdown instead of HTML soup.

Code and contributions

Can I contribute?

Yes! Read CONTRIBUTING.md. The most valuable contribution is a report of where an agent got stuck, improvised or built the wrong thing while following the docs. Next best: a verified doc fix (have your agent fix the guide, then prove it by building a real app from the corrected docs), and new eval cases that catch agents doing the wrong thing.

Is AI-written code accepted?

Yes. It's what the framework is designed around: agents write the code, in apps and in the framework's own repository. Hand-written code is welcome too (see the next question).

Is hand-written code accepted?

Yes, that's fine. Ideally an AI model reviews it before it's merged, so it matches the rest of the code. And if you wrote it by hand because an agent got something wrong, we'd love to hear what happened (which agent and model, what you tried): we can often turn that into a doc fix, so agents get it right next time.

With no code provided, can different people get different results?

Exactly! The docs pin the decisions (the stack, the structure, the conventions, security, the tests), not the lines. Two people with different agents can get different code for the same spec, and both are right if they pass the same Definition of Done. We tested shipping sample code, and for now it isn't in the framework's best interest; it may come later as optional, verified reference implementations.

Is this all AI slop?

Well, it's up to you (or your AI agent) to judge. The evidence we'd offer: every app proves itself with its test suite on SQLite and Postgres, dependency and secret scans and an OWASP ZAP baseline in CI, and this website, generated the same way, scores 100 on Lighthouse.

Is the name a joke?

A little. It's Rust, off Rails: the logo is an R tipping off two rails, and the acronym is still RoR, on purpose, as a thank-you. "Off" means there's no framework under your app to ride on, and no hidden framework code either. Your agent gets directions, you build your app, and you own all of it. It's off Rails, not off the rails, and it isn't a dig at Rails or DHH: it's Rails' conventions, without Rails.

Trust and production

Is it production-ready?

It's young, but it relies on well-established crates for the critical parts. We'd be lying if we said it's battle tested at this point, but we're working as fast as we can to make it awesome. We use it for real: some of our own apps run on it, including the Fizzy port (fizzyer), though not at a huge scale yet. This site is live and healthy and has served its traffic well, typically in under 20 MB of memory. Every app carries its own tests on two databases, a security checklist and a Definition of Done. Judge your app by its tests, and run /offrails:security before you ship anything sensitive.

How are apps and upgrades tested?

Hard, and on purpose. An agent isn't done until cargo offrails verify --full passes: the tests on SQLite and Postgres, every acceptance criterion cited by a test, at least 80% line coverage (90% for models and policies), clippy with warnings as errors, no unwrap outside startup, migrations that roll back, cargo-deny and gitleaks, no accessibility violations in light or dark, browser smoke tests, and prove, which screenshots every page. Upgrades follow a written recipe and end with the same gates, and we've run them for real: Bookshelf went from 0.2 to 0.3 with 217 of 217 tests on both databases and a ZAP scan with no failures; this site went through every release from 0.4 to 0.7.3, the last in 43 minutes, ending at 93% line coverage; uptime-offrails went from 0.7.1 to 0.7.2 with 1,530 of 1,530 tests on both databases. These numbers were measured by the agents that ran the upgrades. Much of this comes from real-world experience: the maintainer works with other stacks every day, including Rails and Django apps, and the testing rules and the upgrade steps come from what holds up there.

Why Rust?

Because the compiler is the best reviewer an agent can have. Queries are typed Rust, templates are checked at compile time, and front-end types are generated from Rust, so most of an agent's mistakes become compile errors in seconds instead of bugs in production. What types can't prove, the tests prove on both databases. And the result is one fast binary in one Docker image.

What about Rust compile times?

The first build of a new app is the slow one, about 10 minutes. After that, rebuilds are quick: on this site (about 16,000 lines of Rust, with compile-time-checked templates), a change rebuilds in 5 to 7 seconds in development, on a laptop. Some people report 10+ minutes for about 200,000 lines of Rust; we haven't built anything that big. Release builds for production are slower, and we haven't timed them.

Why not just use Rails or Phoenix?

We love them, and we borrow from both: Rails' conventions, generators and Solid trifecta; Phoenix's Oban, mailbox, LiveDashboard and channels. Rust off Rails takes those ideas and has an agent write all the code, with a compiler checking it. If you're happy writing Rails by hand, keep going.

Is it just Markdown files?

No. The Markdown carries the conventions, but an app also starts from a tested template, with parts and snippets you copy in, and a checker called offrails-check that fails the build when a rule is broken. It checks that every acceptance criterion in the specs is cited by a test, that every row of a feature's security table names a test that exists, that no id column is 32-bit, that the test suite can run on Postgres and not only SQLite, and that the dev server listens on localhost and checks the Host header. The test suites then have to pass on both databases before anything counts as done.

Does the world need another framework?

Probably not. Other frameworks are good too, Loco among them, and years ago we played with Rocket but, for some reason, didn't enjoy it as much. We do believe this experiment turned out better than expected, so we built this site, published the code, and we keep building the framework. Rust off Rails was built from scratch, from first principles and with new assumptions in mind (the agent writes the code, the conventions are written down, the checks keep it honest), and so far we're happy with it. We use it ourselves, and anyone who thinks they can build something better, or at least learn from it, is welcome to play around.

Why not Loco?

We played with Loco. It's a real, maintained Rust framework with Rails-style conventions. We just felt that a framework built for AI agents from the start could be better, so we tried building one. It's an experiment, not a verdict on Loco. It's also a different kind of thing: Loco is a library your app depends on, while here the agent writes the code into your app and you own it. If you want a library with a community behind it today, use Loco.

Why not just prompt my own stack?

You can, and for a one-off that may be enough. This gives you decisions made once and pinned, a template tested on two databases, and checks that fail the build when the agent drifts. People who prompt their own stack get different results each time. Here the docs pin the decisions, so everyone starts from the same ones.

How seriously do you take security?

Very. Apps get a strict CSP and the full header matrix, authorization on every route and socket join, hashed tokens and rate limits. Every feature spec has a threat model, and CI runs dependency, secret and ZAP scans. A flaw in the guidance would spread to every app built from it, so doc vulnerabilities count as real vulnerabilities. Report them privately on GitHub (Security → Report a vulnerability); see SECURITY.md.

Help

Where do I get help?

Ask in GitHub Discussions, or write to hello@rustoffrails.org. If your agent got stuck or built the wrong thing while following the docs, open an issue with the "Agent got stuck" form: those reports make the framework better for everyone. Pull requests, issues and anything else on GitHub are welcome too.

Not here? Ask in GitHub Discussions. This page is also plain Markdown.