Agents on Rails: lemans goes open source Rails has open-sourced lemans, the Ruby-based harness behind its Agents on Rails benchmark, and released new scores for four models, including Sonnet 5, Terra, and Qwen 3.8-27B. Qwen 3.8-27B scored 48 of 63 but took a median of 27 minutes per run, while Terra scored 49 of 63 at 20 cents per run and 182 seconds median, making it the fastest model tested. The open-source release aims to provide Ruby and Rails developers with native tooling for AI agent evaluation. Another week, another step for Agents on Rails /ai . This one is a big one: lemans https://github.com/rails/lemans , the harness behind every number we’ve published, is now open source. We also ran four new models: Sonnet 5 , Terra , an open-weight Qwen you can run on your own machine, and one that won’t tell us its name. If you’re here for the ride, read on for the tour of lemans. If you’re here for the scores, they’re on the leaderboard /ai , and the raw runs https://github.com/rails/ai-evals are updated too. Qwen 3.8-27B is the one we and many of you were most curious about: it’s open weight and small enough to run on hardware you may already own. Should you ditch your cloud LLM subscriptions and go supportlocal ? Well: it scores 48 of 63 , right in the middle of the pack. Pretty good for a model that you can run locally. However, there’s a catch Qwen takes a median of 27 minutes per run we even had to raise our timeouts from 30 to 60 minutes to fit it , which is 1.7x the next-slowest model in the benchmark. Its Rails API recall is also the worst at 7.9% . Impressive for a model that might be run on a laptop. Terra is another great option from the GPT family: it scores 49 of 63 for 20 cents a run, at a median of 182 seconds , which means it is now the fastest in the entire field bumping Luna into second place. OpenAI’s three models Sol, Terra, and Luna score 84%, 78%, and 73%, in exactly that order by price. The more you pay, the better you do, and all three run in the fastest third of the field, so the stronger model never costs you time. Anthropic’s lineup is the opposite story. Sonnet 5 lands at 44 of 63 , the weakest Anthropic result we’ve recorded, stretching the family’s range from 92% down to 70%. Wide, and hard to explain. Sonnet 5 reaches for the right Rails API more often than Opus 4.8 25.4% against 15.9% . It still finishes six runs behind, at twice the time. Better recall doesn’t buy the result. ox-alpha is the odd one out. It’s a stealth model on OpenRouter: unnamed, unattributed, and free while it’s in preview. It scores 52 of 63, matching Grok 4.6 exactly, with 28.6% Rails API recall. We started our Agents on Rails experiments using Harbor https://www.harborframework.com , and it worked okay-ish. One thing bothered us from the very first day of this journey: why do we have to use this Python-esque in all senses good-enough tool? Why does our beloved Ruby and Rails community have no such tooling? We believed we deserved it. So with further encouragement from the Rails Foundation, we wrote one: lemans https://github.com/rails/lemans . We didn’t build lemans just to stay 100% Ruby and to be able to tweak the harness and tasks however we like thanks to Ruby’s openness . We also wanted: You can see all of this yourself by giving lemans a try. Clone the evals repo https://github.com/rails/ai-evals , install the lemans gem, grab your LLM provider and Daytona API keys, and you’re ready to rock Which LLM? Any supported by RubyLLM https://rubyllm.com , the workhorse of our harness’s LLM integration. Provide a token of your choice via environment variables, e.g., ANTHROPIC API KEY=