AI Agents5 min read

The Hard Part of Big Codebases Was Never the Context Window

Mistral's pitch to large-repo teams lands on the most commoditised axis of agent design, while its real advantage sits in the boring compliance column.

By Curious Technologist Editorial

Every coding agent eventually hits the same wall, and it is not the model's reasoning ability. It is that a four-million-line monorepo has a build graph, a test suite that takes half an hour on a good day, and a dozen people committing to it while the agent is still deciding which file to open. "Handles large codebases" is a claim about plumbing, not intelligence, and plumbing is where almost every harness on the market is currently mediocre.

The index is the product, not the model

We have been here before, and recently enough that the lesson should still be warm. The reason a 2010-era IDE could do anything useful in a huge Java project was not that it loaded the project into memory; it was that it maintained an incremental, language-aware index and invalidated it correctly. ctags, then OpenGrok and Sourcegraph, then the Language Server Protocol — the entire lineage of tooling for large repositories is a lineage of indexes. Nobody solved "navigate a big codebase" by making the editor's buffer bigger.

Agent harnesses have mostly skipped that lesson and reinvented grep. Embedding-based retrieval over chunked source is a worse version of what a language server already gives you for free: exact definitions, exact references, exact type information, with no hallucinated call sites. The harnesses that feel good on large repos are the ones that wire the agent into real program structure — tree-sitter for parsing, LSP for symbol resolution, the build system for the dependency graph — and then spend their context budget on the three files that actually matter rather than the forty that are semantically adjacent.

So when a vendor tells me their agent is built for large codebases, the only question worth asking is: what is the index, how is it invalidated, and does it run on my machine or theirs? The product page is the primary source here and I have not run the thing, so I am not going to pretend to know its answers. But that is the axis on which it should be judged, and it is the axis on which press coverage almost never lands.

The agent that wins the large-repo market will be the one that treats your build system as a first-class tool, not the one that advertises the biggest context window.

What actually breaks at a million lines

Three things, in my experience, and none of them are the model.

The feedback loop. An agent's effective intelligence is bounded by how often it can check its work. In a small repo it runs the tests after every edit and self-corrects. In a large repo, a full build might take ten minutes and a full test run considerably longer, so the agent either waits — burning wall-clock and your patience — or guesses. Teams that have invested in fast incremental builds and well-scoped test targets get dramatically more out of the same model than teams that have not. The agent inherits your CI's sins.

Cost per task, not cost per token. It is trivially easy to burn hundreds of thousands of input tokens on one non-trivial ticket once the agent starts reading, re-reading and re-summarising. Prompt caching takes the edge off, but caching rewards a stable prefix, and a busy monorepo is the definition of an unstable prefix. The honest unit of economics is cost per merged pull request, and almost nobody measures it.

Blast radius. On a small project, a bad agent edit is an annoying diff. On a shared monorepo, it is a bad edit to a file forty teams depend on, landing at 4pm on a Friday. The governance question — which paths can the agent touch, who reviews, what runs in CI before a human sees it — is unglamorous and is the actual adoption blocker in large organisations.

The strongest counter-argument

The long-context camp says all of this is transitional. Context windows keep growing, caching keeps getting cheaper, and in a couple of years you will simply put the repository in the prompt and retrieval engineering will look like the hand-tuned assembly of 2026. There is real force to this: the history of this field is a graveyard of clever scaffolding that got eaten by the next model.

Two reasons I do not buy it for this case. First, retrieving one fact from a long context is a different problem from reasoning over hundreds of scattered facts, and the gap between those two shows up precisely in multi-file refactors — the thing you actually want an agent for. Second, even if the capability arrives, the permission model does not. Plenty of organisations cannot ship their entire source tree to an inference endpoint per request, and no amount of model progress fixes that. Retrieval is not only a cost optimisation; it is also an access-control boundary.

Worth noting: 431 points on Hacker News measures appetite for a non-US alternative, not product quality. The sympathy is genuine and the jurisdictional argument is real, but those are different claims and should be scored separately.

What to do about it this week

For most people: nothing. If your repository fits comfortably in a working session and your current harness is adequate, switching to evaluate a new agent costs you a day of configuration and a fresh set of unknown failure modes, in exchange for marginal gains you cannot measure.

The exception is specific and identifiable. If you work somewhere where source code cannot leave a jurisdiction or a VPC, a European vendor with a track record of shipping open weights alongside a commercial API is worth an afternoon, because it may be the only option your legal team will approve. That is a procurement advantage, not a technical one, and it is more durable than any benchmark.

If you do evaluate, do it properly. Pick twenty real tickets from your own tracker — not toy tasks — and run them through your incumbent and the challenger, tracking cost per merged change and how often a human had to intervene. Before anything else, check what the harness does with your .env files and credentials, and confirm whether the index lives locally or in someone's cloud. And keep the portable parts portable: instructions files, tool definitions and MCP servers move between harnesses; bespoke vendor configuration does not. The lock-in in this market was never the model. It is the hundred small decisions you encoded in a config file and then forgot.

Sources & further reading

The analysis above is our own. The underlying reporting and primary documents are credited here.