← back to the archiveCover illustration for “Agent leverage follows context consolidation”
ESSAYday 33·4 weeks ago·by Andy Padia

Agent leverage follows context consolidation

SaaStr merged ~10 apps into one codebase and its agents got better with every build; Replit says context is now effectively infinite. Consolidating what agents can see beats adding agents that each see a fragment.

SaaStr published notes from its session with Replit's Amjad Masad, and buried under the demo recap is the most practical agent-architecture lesson of the month. SaaStr consolidated roughly ten applications into one codebase — website, a startup-valuation tool, a pitch-deck grader, an API report card, the lot — and reports that the agent building app number ten benefits from everything it learned building the previous nine. Masad's framing from the platform side: context windows have grown from 16K to over a million tokens in two years, effectively infinite with good compaction, so the constraint has moved. The more you put in one place, the more power you get from global context.

First-party claims, as usual — I can't isolate how much of SaaStr's delivery speed came from consolidation versus simply better models this year. But the mechanism is sound, and it inverts how most enterprises are currently spending their agent budgets.

The fragment problem

The standard enterprise pattern right now: multiple specialized coding agents, multiple repositories, and a platform team proud of both. One agent for the frontend repo, one for the API repo, one for infrastructure — specialization as strategy. And then every substantive change begins the same way: a human reconstructing, in a prompt, the dependencies and history the agent cannot see. The API you're changing is consumed by the mobile app in that other repo. The schema you're duplicating already exists in the shared service. We tried this approach last year; it broke billing; the write-up is in Slack somewhere.

That reconstruction step is the tell. Specialization does not compensate for fragmentation. An agent that sees only a fragment of the system produces changes that are locally correct and globally wrong — the deprecated pattern faithfully extended, the schema duplicated with a subtle difference, the dependency broken in a repo it never read. Adding a fourth specialized agent to a fragmented estate adds a fourth entity that needs the same briefing. The bottleneck was never agent count. It is what any agent can see.

rendering diagram…

What consolidation actually means

The reflex conclusion — "so, monorepo" — is close but not quite it. A monorepo is one implementation, and for a SaaStr-sized estate it is probably the right one; Google and Facebook proved the pattern long before agents made it newly relevant. But the design goal is more general: one retrievable dependency and decision graph. Everything an agent needs to make a globally-aware change — code, schemas, who-consumes-what, and crucially the decision history, the why behind the architecture — reachable from a single starting point, without a human courier.

That last item is the one nobody versions. Code lives in repos; decisions live in Slack threads, meeting memories, and departed employees. When SaaStr's agent "remembers how it built the last app", that memory is doing the work an architecture-decision record would do — and most organizations have neither. A plain DECISIONS.md per system, one line per irreversible choice with its reason, is the cheapest consolidation move available and the one with the highest agent leverage per hour invested.

Masad's infinite-context point matters here precisely because it removes the old excuse. When windows were 16K, fragmentation was partly a technical necessity — nothing could read the whole estate anyway, so boundaries cost little. At a million-plus tokens with good compaction, the model can hold more of your system than most of your engineers can, and every wall you leave standing is now a choice, not a constraint. The estates that were consolidated for human reasons are collecting an agent dividend nobody priced in.

One more honest note from the same session, because it deserves preservation: SaaStr's valuation tool has been used over a million times; its pitch-deck grader, 4,500. Same codebase, same agent leverage, 200x difference in demand. Consolidation makes agents dramatically better at building things — it does nothing to guarantee the things deserve building. The scarce input is still a repeated job worth doing.

Steal this sequencing

At work, when a platform team asks me which agent to add next, my first question is now: what does a new agent see on day one? If the answer involves a human explaining the estate, the next investment is not an agent. Run this instead. First, map the fragments — repos, schemas, config stores, and where decisions actually live. Second, consolidate the highest-traffic seam: merge the two repos whose boundary generates the most cross-briefing, or at minimum build the index that lets retrieval cross it. Third, start the decision log, today, backfilled with the five choices that most often need re-explaining. Fourth — only fourth — revisit agent count. My experience matches SaaStr's arc: teams that consolidate first find their existing agents got noticeably better, and the specialized-agent shopping list quietly shrinks.

Ten agents reading fragments lose to one agent reading everything — consolidate the context, and the leverage arrives before the next hire.

#agents#context#monorepo#architecture#engineering
← older drop
Vertical AI moats live in workflow frequency
newer drop →
Forward-deployed engineering is distribution

related drops

explore all 78 drops →
← back to the archiveday 59