# Rails Is Built for AI

> Source: <https://rubyonrails.org/ai>
> Published: 2026-08-13 17:09:24+00:00

Rails gives coding agents the same thing it has always given developers: clear conventions, expressive code, and a complete framework for turning ideas into production software.

**Rails gives agents a map.** Standard names, folders, commands, and patterns help generated changes land closer to idiomatic Rails with less prompting.

**Less code means more context.** Ruby and Rails express product ideas with fewer tokens, helping agents make smaller edits and move faster from request to working feature.

**The patterns are everywhere.** Decades of public Rails code give models strong signals for controllers, models, views, tests, jobs, migrations, and the glue between them.

**One person can ship more.** Rails provides the full product stack. Add an AI coding agent, and a solo builder can take on broader work without stitching everything together from scratch.

Compare accuracy, speed, token efficiency, cost, and API recall across the same set of Rails evaluations.

Swipe to compare all model metrics

The strongest models rise toward the top-left.

Swipe to explore every model

Each model ran every evaluation three times in August 2026, using the provider's default settings — 63 runs per model. Accuracy is the share of runs that passed the evaluation's hidden tests; refusals count as failures, and differences of a few points between models are within run-to-run noise. Speed is the median run duration, and tokens and cost are means per run. API recall is the percentage of runs in which the model reached directly for the target Rails API. Model-level medians come from run-level data, so they can differ slightly from the per-evaluation timings. Select any model or result for the underlying evaluation details.

Explore the open-source [Rails AI evaluation suite](https://github.com/rails/ai-evals).

Convention over configuration set the path for 20+ years of great training data for AI to use today. Not only does this mean agents do great with Rails, but also that squishy humans can quickly and confidently review the output without a jungle of distracting boilerplate.

Rails' convention over configuration explains why I got very good LLM output quality in the early days of LLM-assisted coding while many developers still thought it was unusable. Most Rails codebases look the same and on average is high quality.

One of the killer features of using Rails in this AI era is "Convention over configuration". If you keep your project close to the Rails defaults, the AI knows so much already about your project… It makes things 100x faster.
