How agentic coding ships a feature
Rational Trains is an autonomous multi-agent factory with customized CI/CD and cloud runs. You talk through what you want; it builds, checks and ships it, and tells you how it went.
This is one implementation of a wider approach: small isolated tasks, independent review and a quality ratchet. Read it on its own on What is Rational Delivery?The whole line in one drawing: Anatomy of the factory.
Trains and cars
A release is a train. Each task is a car.
- Train
- A release. It leaves with its cars, stops at every station and arrives as a new version.
- Car
- One task from your grooming talk. Each car is built in its own copy of the code (a git worktree), so cars never step on each other.
- Station
- A stage every car and every train passes: build, review, checks, release.
- Schedule
- No ship button to babysit. The train runs its stations on its own and reports to your phone.
- Manual tail
- Only security steps wait for your hands: keys, access, database changes. They are listed when the train arrives, so nothing waits silently.
The steps of every car
You start it with a conversation and finish it with the security steps. Everything between runs on its own.
- 01IdeaYouA sentence, written from anywhere. A phone is fine.
- 02GroomingYou + AIA short talk about what you want, in the Claude app, your IDE or a terminal. The AI asks; you answer. It writes the tasks.
- 03BuildFactoryAn agent builds each task in its own copy of the code.
- 04Cross-reviewFactorySeveral different AI models review every change.
- 05TestsFactoryThe full suite runs on every change. Red means nothing ships.
- 06PreviewFactoryEvery pull request gets its own link.
- 07ReleaseFactoryOne train, one version, out to everyone.
- 08Security stepsYouKeys, access, database changes. The factory never asks for them: it lists them and waits for your hands.
Autonomous, except for security
It has never been this easy: a conversation in, a release out.
- Grooming is a talk
- Say what you want in your own words, in the Claude app, any IDE with Claude, or a terminal. The AI asks what it needs to know, then writes the epic, the tasks and the acceptance criteria. You read a summary and give the go.
- Then it runs
- Build, review, tests, fixes, merges and release run on their own, at night too. No ship button, no screen to watch.
- Never your keys
- The factory never asks for a token, a key or a password, and never grants itself access. Claude Code's safety classifier blocks it, on purpose.
- Your hands
- Creating a secret, granting access, applying a database change, a machine-wide setting. Hard to undo, so they stay yours.
You, in control
The most valuable thing is a well-thought-out idea. Building it is the autonomous factory's job.
Simple, clear steps
- IdeasAny idea, in a sentence, from anywhere. A phone is fine.
- GroomingThe fun part: a talk with your AI assistant. It asks the questions, you say what you want, it writes the tasks.
- The goNothing starts without your word, and you choose what goes first.
Into the factory
Money and security stay yours
Full financial and security control, whatever the factory does.
- BudgetThe factory works inside your Claude plan and reports what every car cost.
- The keysSecrets, access and database changes stay in your hands. The factory never asks for them.
- The brakeA feature flag to switch a risky feature off for everyone. No redeploy.
Out of the factory
A product, live
Delivered on its own, straight to production, with the proof attached.
- In productionDelivered on its own, live for your users.
- MetricsEvery car measured: time, findings, tests, cost.
- NotificationsA push to your phone when a train leaves, waits or arrives.
- Tests and deliveryThe full suite green, and a report of everything that shipped.
AI factory: the hard parts
Everything you would otherwise learn, set up and babysit for years. Read the list once, then forget it.
- SetupWires the pipeline for your stack: cloud test runners, lint, type checks, free static analysers for security, duplication, unused code and vulnerable dependencies, the BigQuery journal and its views, the lane locks.
- CodingWrites every car in its own git worktree, to your project's conventions, refactoring as it goes instead of copying what already exists.
- Pull requestsOne per car: the description, the linked issue, the version bump, the changelog for developers and the release notes in plain words.
- Merge conflictsParallel lanes land on a moving main. It rebases, resolves the conflicts, reruns the full suite on the merged tree and tells the other agents, so nobody builds on stale code.
- Cross-reviewSeveral different models, from different providers, read every diff. A finding must quote the code it is about and is checked before it counts; serious ones are fixed in the same car.
- Hard metricsCoverage, duplication, unused code, vulnerable dependencies, import cycles, DORA and LinearB benchmarks. A release that ends any figure worse than it started does not merge.
- MigrationsIf your product has a database: writes additive schema changes, checks them against the live database, never applies one unattended, and names any change nobody has applied yet.
- Automatic testsStarting from none if need be, it writes the tests as it builds: unit, integration and property-based, which throw random data at every rule. They run on every car, in the cloud, in minutes. Before a train closes, it plays the main flows end to end in real browsers, at phone and desktop sizes.
- ReleaseMerges the train as one version, waits for production to serve it, verifies it and posts the report of every car: time, findings, tests and cost.
- Improves itselfA retrospective after every train goes into how the next one runs, and every few trains a repair train ships no features at all, only fixes to its own code and debt.
Built like a good team
The factory follows the practices of a disciplined engineering team, and learns the same way.
- Parallel agents
- Several agents build cars at the same time. They use the factory’s own notification system to announce merges and changes, so nobody builds on stale code.
- Merge conflicts
- When parallel cars touch the same code, the factory resolves the conflict itself.
- Isolated runs
- Tests, lint, type checks and static analysis run in isolation on every change, on your machine or in the cloud, so a result never depends on whose machine it ran on.
- Critical bugs
- A critical bug found while a feature is being built is fixed in the same train, before release, not filed for later.
- Retrospectives
- Every train ends with a retrospective. What it finds goes into how the next train runs, so the factory learns from its own work.
Customized CI/CD and cloud runs
The pipeline fits your project, not the other way round.
- Pipeline
- Set up for your project, not a template: your checks, your rules for what may merge, your release steps.
- Agents
- Multi-agent: one agent builds each car, models from other providers review it. No single model has the last word.
- Cloud runs
- The full test suite and the reviewers run on Google Cloud, so a heavy run never slows your machine. Locally too, when you prefer.
- Delivery
- A preview link for every pull request, then one release per train. A risky feature gets a flag you can switch off.