{"slug": "rails-is-built-for-ai", "title": "Rails Is Built for AI", "summary": "Rails, the Ruby web application framework, is positioned as ideal for AI coding agents due to its conventions, expressive code, and comprehensive framework, according to the Rails team. The framework's standard patterns and decades of public code improve agent accuracy, speed, and token efficiency, enabling solo developers to ship more. The Rails team released an open-source evaluation suite that benchmarks models across 63 runs per model in August 2026, measuring accuracy, speed, tokens, cost, and API recall.", "body_md": "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.\n\n**Rails gives agents a map.** Standard names, folders, commands, and patterns help generated changes land closer to idiomatic Rails with less prompting.\n\n**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.\n\n**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.\n\n**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.\n\nCompare accuracy, speed, token efficiency, cost, and API recall across the same set of Rails evaluations.\n\nSwipe to compare all model metrics\n\nThe strongest models rise toward the top-left.\n\nSwipe to explore every model\n\nEach 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.\n\nExplore the open-source [Rails AI evaluation suite](https://github.com/rails/ai-evals).\n\nConvention 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.\n\nRails' 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.\n\nOne 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.", "url": "https://wpnews.pro/news/rails-is-built-for-ai", "canonical_source": "https://rubyonrails.org/ai", "published_at": "2026-08-13 17:09:24+00:00", "updated_at": "2026-08-13 17:13:38.238646+00:00", "lang": "en", "topics": ["developer-tools", "artificial-intelligence", "large-language-models"], "entities": ["Rails", "Ruby"], "alternates": {"html": "https://wpnews.pro/news/rails-is-built-for-ai", "markdown": "https://wpnews.pro/news/rails-is-built-for-ai.md", "text": "https://wpnews.pro/news/rails-is-built-for-ai.txt", "jsonld": "https://wpnews.pro/news/rails-is-built-for-ai.jsonld"}}