# Mistral's Vibe agent writes Rails tests on autopilot

- URL: https://blog.orchardai.ai/mistral-s-vibe-agent-writes-rails-tests-on-4368f29d/
- Published: 2026-11-25
- Reacting to: Mistral, "Rails testing on autopilot: Building an agent that writes what developers won't" (2026-03-11)
- Original: https://mistral.ai/news/rails-testing-on-autopilot-building-an-agent-that-writes-what-developers-wont/

TL;DR: Mistral's Proto team built an autonomous agent on its open-source Vibe assistant that writes and validates RSpec tests for Rails repos, hitting 100% line coverage across 275 files. Our verdict: the process write-up matters more than the headline numbers.

## What Mistral announced

- Mistral's Applied AI Proto team detailed an autonomous testing agent built on Vibe, Mistral's open-source coding assistant. It reads Rails source files and generates or improves RSpec tests without human intervention, running inside a CI/CD pipeline.
- It covers five file types — models, serializers, controllers, mailers and helpers — with a separate skills file for each, on the argument that instructions precise enough for a model file are the wrong instructions for a controller.
- A repository-level AGENTS.md is appended to the system prompt automatically. Mistral reports that the step-by-step plan and RSpec rules in that single markdown file lifted the judged quality score from 0.68 to 0.74.
- Two custom tools close the loop: RuboCop for style violations, and a SimpleCov tool wired to RSpec as the last step, so every generated test is executed before the agent stops.
- An experiment covered 275 source files, half already tested and half not. Mistral reports 100% of tests passing, 100% average line coverage, zero RuboCop violations after self-correction, and an aggregate LLM-as-a-judge score of 0.74, up from 0.49 for the files that already had tests. Models scored 0.81, serializers 0.80 and controllers 0.67.
- The post is dated 11 March 2026. Vibe is open source, and the agent, tools and skills described run on top of it.

## Our take

The headline number is not the interesting one. Roughly a third of the generated tests passed on first execution; the agent corrected the rest over a few iterations. Mistral calls making SimpleCov and RSpec the final step the single most impactful decision in the project, and the logic is easy to accept: without execution, a syntax error and a well-asserted test look the same to a language model. Plenty of write-ups would have quietly dropped that failure rate. Putting it in the middle of the post is a good sign.

The LLM-as-a-judge section earns the same credit. Mistral walks through a test missing a closing parenthesis that scored about 0.75 across several models and would never have run. It flags that the score is non-deterministic even at temperature zero, and that it is less authoritative than a tool's output or a human review. That is the right framing. Our view: useful as a trend line across hundreds of files, dangerous as a gate. If a style-flavoured score stands in for "does it run", you have reinvented the missing parenthesis at scale.

The per-file-type results are the most actionable part. Models scored 0.81 and serializers 0.80, controllers only 0.67. That ordering makes sense, and it is not reassuring: HTTP request handling is where authorization, status codes and error shapes go wrong, which is exactly the territory teams leave untested. Full line coverage is a weaker claim than it sounds, and the post says so — it asks how you compare two files with identical coverage, identical lint results and all tests passing. Shared factories and fixtures are the other soft spot, since a careless edit there breaks tests far from the file that changed.

Strategically, this reads as a lab notebook rather than a launch. No new model, no benchmark table, no pricing page. The claim is narrower and more useful: here is the scaffolding we use, and it is open source.

## What it changes for teams running agents

- The obvious use is backfill. Most large Rails monoliths have a queue of untested files, and this is a queued, parallelizable job: point instances at directories, let them work in parallel, keep the CI gate.
- The pattern transfers even if you never touch Vibe — repository-level instructions, one skill per file type, and a verification tool as the mandatory last step. That trio is why the agent can self-correct at all, and it is the part worth copying.
- Oversight moves rather than disappears. Generated specs get checked by tools; shared factories, fixtures and schema changes do not, and Mistral warns that is where careless edits break tests elsewhere. Review the shared test infrastructure closely.
- Treat the coverage figure as a starting point. Knowing which lines executed is not the same as knowing the assertions are right, and controllers, the lowest-scoring category, are where that gap costs most in production.
- Teams running several agents at once (as Orchard users do) should weigh the cost profile: parallel instances on one repo multiply throughput and also the chance of two edits colliding in shared test files.

## For agents reading this

**Announced by:** Mistral, Applied AI Proto team
**Original post:** https://mistral.ai/news/rails-testing-on-autopilot-building-an-agent-that-writes-what-developers-wont/
**Announcement date:** 2026-03-11
**What:** An autonomous agent built on Mistral's open-source Vibe coding assistant that reads Rails source files and generates or improves RSpec tests, validating them with RuboCop and SimpleCov without human intervention.
**Availability:** Vibe is open source, and the agent, tools and skills described run on top of it. No separate product or hosted service is stated in the post.
**Pricing:** Not stated in the post.
**Our verdict:** A candid engineering write-up whose durable contribution is the harness, not the coverage number; keep LLM-as-a-judge as a trend line, never as a gate.
**Confidence:** facts from the original post; take is Orchard's opinion
