Blog
#06Omniflow4 min2026-05-18

Inside Stratos: the AI agent hierarchy that writes our code

We don't use AI for autocomplete. We use it to run a software factory with discipline.

September 2026 note: this article describes the factory's second generation, as of May 2026. It has gone through two more since then; the figures are as of that date.

What most teams do with AI

AI adoption in engineering teams follows a fairly uniform pattern. The developer opens their editor, turns on autocomplete, accepts suggestions, and keeps working as always. At best, they ask a chatbot to debug an issue or explain an unfamiliar API. Productivity improves. The process doesn't change.

We made a different decision. Instead of using AI as an accessory within the traditional workflow, we put it at the center of the system and built the discipline around it. The result is Stratos, a software factory that today runs 28 active repositories, adds up to over 700,000 lines of written code, and covers a portfolio of six companies: legal tech, edtech, AI trading, health, productivity, and communications.

The difference isn't the language model we use. It's how we organize the work around it.

Three levels with clear boundaries

Stratos organizes its agents into three levels, and each one has a precise role.

The **coordinator** is the only point of contact with the human operator. It receives a business intent, translates it into concrete problems, and delegates. It doesn't write code. Its value lies in keeping the big picture while the rest of the system works on the details.

The **orchestrators** take each problem and break it down into pieces that can be executed and verified independently.

The **specialized agents** execute those pieces: the coder, the reviewer, the tester, the researcher, the security agent. Each has a bounded scope. None of them has a global view of the portfolio, and that's intentional.

The separation matters for a concrete reason: whoever decides at the portfolio level shouldn't carry implementation details. A coordinator that knows too much about a module's internals makes worse overall decisions. The hierarchy is also an abstraction barrier.

Parallel work without collisions

The most serious problem when scaling work with agents isn't the quality of the code they generate. It's coordination. If two agents touch the same thing at once, there are conflicts. If one assumes a state another has already changed, there are bugs that don't show up in tests but do show up in production.

The factory solves this by design: parallel work is split into scopes that don't overlap and is integrated in an orderly way. In practice, several agents can build different parts of the same sprint at once, finish in hours what used to take days, and leave a history where every change has an identifiable purpose and can be reverted precisely.

Why AI without controls is dangerous

The part almost nobody mentions in articles about AI productivity: agents make mistakes too. Specific, systematic mistakes that are sometimes hard to catch because they pass the tests.

We've lived it. An agent reorganized a Python module and, in the process, lost some decorators. The code loaded and the unit tests passed. But in production, during market hours, the methods failed. Weekend tests couldn't reproduce it because that logic only runs while the market is open.

Incidents like that produced the rule that has served us best: quality isn't left to goodwill. Every error we find becomes an automatic check that prevents it from happening again, and those checks block; they don't warn. On top of that, significant changes are thought through and validated before they're executed, because that's where most problems are caught, not during execution.

Memory between sessions

AI agents remember nothing from one session to the next. For a factory with 28 repositories in continuous evolution, that would be unacceptable.

That's why at Stratos, technical decisions, open risks, and the state of each project don't live in anyone's head or in comments someone forgets to update. They're recorded and available to every new session. Why an architecture was chosen three months ago, which alternative was discarded, which risk is still open: all of it is in view when work resumes on that service. A risk doesn't disappear because nobody remembers it; it stays visible until it's mitigated.

The result: 700,000 lines with a small team

The numbers are concrete. Over 700,000 lines of written code. 28 active repositories. Six companies built with the same factory. A portfolio spanning domains as different as Mexican law, university management, and algorithmic trading.

With the traditional model, that wouldn't be possible with a small team: developers writing line by line, reviews that take days, manual deploys done with fear.

With a well-designed agent hierarchy, controls that don't negotiate, and a system memory that doesn't get lost, the bottleneck stops being the capacity to produce code. It becomes clarity of intent: knowing exactly what we want to build, why, and under which constraints.

That's the advantage Stratos gives us. It isn't just speed. It's speed with discipline. And in a venture builder, that combination is what makes it possible to build six companies in parallel without any of them suffering from the attention the others receive.

This article is about Omniflow.

See Omniflow →