Agent-First Repos: From DX to AX
Clean code was optimized for humans reading code. Vertical slices were optimized for humans shipping outcomes. Agent-first repos optimize for a third thing: machine-assisted change at scale.
When you stop assuming you're going to hand-type every line into an IDE, a bunch of aesthetic conventions matter less, and a bunch of anti-ambiguity conventions matter more than ever.
Agents don't get tired, but they do get confused, and ambiguity is what confuses them. So the bar becomes: "Can an agent understand the intent, compute the blast radius, verify the change, and know when to stop?" The rest of this post is what I think meets that bar, and why fast verification matters most.
What agents need
I've been thinking about this through the lens of what makes agent-driven workflows succeed or fail, from watching agents navigate real codebases, succeed at some changes, and get confused by others.
Here's what I've noticed matters:
Explicit intent over implicit convention. Humans can infer that a file named UserService.ts probably handles user-related business logic. Agents can too, usually. But when the inference fails, it fails silently. Explicit markers (type annotations, doc comments on modules, clear naming that describes behavior rather than structure) reduce the surface area for misinterpretation.
Predictable structure over clever organization. If every feature follows the same file layout, agents can navigate by pattern. If each feature has its own bespoke structure ("well, the auth module is organized differently because..."), agents have to understand the exception. They're bad at exceptions.
Small blast radius per change. This one matters more than people realize. If changing a function signature cascades through 40 files, an agent either needs to understand all 40 files (expensive, slow, error-prone) or it makes the change in isolation and breaks things. High cohesion and loose coupling were already good design, and they're also what makes a codebase agent-friendly.
Fast feedback loops. This is the unsexy constraint hiding in the whole DX-to-AX conversation. If "verify the change" means a 45-minute build across three repos, your agent loop becomes aspirational. Agents iterate fast, so their cycle time is set by the feedback mechanism. If your CI takes 20 minutes, every agent iteration takes 20 minutes. Suddenly "AI-accelerated development" looks a lot like "waiting for CI, but automatically."
Clear boundaries and contracts. Agents are excellent at working within well-defined boundaries. Type systems, API contracts, schema definitions: these give agents hard constraints to work with. The more of your system's invariants are encoded in machine-checkable form, the more confidently an agent can make changes.
What matters less
Some things we've historically optimized for matter less in an agent-first world:
Line-level aesthetics. Whether you prefer trailing commas, single vs. double quotes, or specific brace styles matters a lot for human readability and team consistency. Agents don't have aesthetic preferences. They can follow any style, as long as it's consistent and enforced (ideally by a formatter, not by code review comments).
Conciseness for its own sake. Developers often prize concise code because it's faster to read. Agents don't get fatigued by verbose code. An explicit 10-line function can be easier for an agent to understand than a clever 3-line one that relies on implicit behavior.
Organizational patterns optimized for browsing. Humans navigate codebases by browsing: scanning file trees, opening files, jumping between definitions. Agents navigate by searching: finding symbols, tracing references, following types. A codebase organized for efficient searching (consistent naming, strong types, explicit exports) serves agents better than one organized for efficient browsing.
Iteration speed
I want to come back to the feedback loop point because it's the one most people underestimate.
The promise of agent-driven development is speed: agents can propose, implement, and validate changes much faster than humans. But the "validate" step is bottlenecked by your infrastructure.
Consider the loop:
- Agent proposes a change
- Agent implements the change
- Agent runs verification (tests, type checking, linting)
- Agent evaluates results
- Agent iterates if needed
Steps 1, 2, 4, and 5 are near-instantaneous. Step 3 depends entirely on your build and test infrastructure. If verification takes 30 seconds, agents can iterate 100 times in an hour. If it takes 30 minutes, they iterate twice.
So investing in fast builds, fast tests, and fast CI now pays twice: once for developers, and again as a direct multiplier on agent effectiveness. That raises the return on build performance work considerably.
Practically, this means:
- Incremental builds matter more. If an agent changes one file, rebuilding the entire project is wasteful. Incremental compilation, test filtering, and targeted verification dramatically improve agent iteration speed.
- Local verification beats remote CI. Agents work locally. If they have to push to a remote CI system and wait for results, you've added network latency and queue time to every iteration. Local type checking, local tests, local linting: all of these keep the agent loop tight.
- Test isolation is a feature. If changing a utility function triggers 2,000 tests (most of which are unrelated), the agent waits for 2,000 tests. If tests are well-isolated and you can run only the affected subset, the agent waits for 20 tests. If the selection is right, that's the same confidence at a hundredth of the wait.
What DX to AX means for developers
I want to be clear about what DX-to-AX means, because it's easy to misread as "design your codebase for AI instead of for humans." What I mean is: optimize the repo for whoever spends the most time in it.
Right now, that's increasingly agents. Not exclusively, not for everything, but for a growing share of routine implementation work: refactoring, migration, test writing, dependency updates, boilerplate generation.
Humans still make the architectural decisions, define the constraints, evaluate tradeoffs, and handle the genuinely novel problems. But the moment-to-moment work of implementing changes within those decisions? Agents are doing more of that every month.
Designing for agent efficiency means the decisions humans make get implemented faster and more reliably.
So what? A checklist
Design your codebase like it will be maintained by a careful, literal-minded junior engineer who runs 100x faster than you and sleeps even less. If you want to evaluate how close yours is, here's what I'd look at:
- How long does your feedback loop take? Measure the time from "change a file" to "know if it's correct." My rough bar: under 30 seconds is good, under 10 is great.
- How predictable is your project structure? Could you describe the file layout as a template? Or does every module have its own organizational philosophy?
- How explicit are your contracts? Are invariants encoded in types, schemas, and tests? Or are they in documentation, comments, and tribal knowledge?
- How isolated are your changes? What's the average blast radius of a single-function change? How many files need to update when you modify an interface?
- How specific are your error messages? When a build fails, does the error point to the exact problem? Or does it require human interpretation?
The repos that do best with agents will be the most explicit, the most predictable, and the fastest to verify. I wrote about the broader shift behind this in Two Industry Shifts Are Colliding.