Can AI coding agents see how a whole system fits together, or just the file right in front of them?
How well do AI agents understand system design versus individual code sections?
This explores whether AI coding agents grasp how a whole software system fits together (its architecture and the way parts interact) as well as they handle a single function or file in front of them.
This explores whether AI agents understand the big picture of a software system as well as they understand the piece of code directly in front of them. The collection has no study that measures this head-on, so there is no clean score to report. What it does have is a set of findings that point the same way from different angles: agents are strong on local code, and their grip on the whole system depends heavily on how that system is presented to them.
The clearest evidence comes from work on finding the right place in a codebase to make a change. When a repository was reorganized around what the code does at runtime, rather than how the files happen to be laid out, weaker planning models located the right code as precisely as much stronger ones, while using fewer tokens Can better code maps help weaker planners match stronger models?. That tells you something you might not expect: a lot of what looks like a model failing to understand system design is really a navigation problem. The system-level knowledge isn't in the model's head; it has to be read off the repository, and a better map substitutes for a smarter model.
The same pattern shows up when agents are allowed to rewrite themselves. The Darwin Gödel Machine improved its coding benchmark scores by about 2.5× through trial and error, and the capabilities it discovered were things like better code editing tools and better context management Can AI systems improve themselves through trial and error?. In other words, the gains came from improving how the agent sees and handles a large codebase, not from sharper reasoning about any one snippet. A related argument is that code works so well for agents because it can be run, inspected, and holds state Can code serve as the operational substrate for agent reasoning?. That favors local understanding: a single function can be executed and checked, while a design decision about how components should relate has no quick test that says right or wrong.
There is also a claim that this is a limit of structure rather than intelligence. One line of research argues that tasks needing different kinds of expertise, parallel work, and independent checking exceed what any single agent loop can organize, no matter how capable the model or how much context it gets Do single agents always hit organizational limits?. If that holds, system-scale work is something you get by arranging several agents, not by waiting for one agent to understand everything at once.
A caution on how far to take this: these notes are about localization, self-improvement, and agent organization, so the link to "understanding system design" is an inference, not a direct measurement. The collection doesn't yet hold a study comparing agents on architecture-level judgment against line-level correctness.
Sources 4 notes
A behavior-indexed repository linking code to runtime actions raised plan quality, cut planner tokens by 8-13%, and let weaker models achieve the same code-localization precision as substantially stronger ones across multiple benchmarks.
DGM replaces formal proofs with empirical benchmarking and maintains an evolutionary archive of agent variants, achieving 2.5× improvement on SWE-bench and 2.2× on Polyglot by discovering capabilities like better code editing and context management.
Research shows code uniquely enables agent reasoning, action, and verification by being simultaneously executable, inspectable, and stateful. This unified code-centered loop improves reasoning and verification together compared to natural-language or prose-based approaches.
Research shows that real-world tasks requiring heterogeneous expertise, parallel execution, and independent verification exceed what any single agent loop can organize. Graph-based system abstractions are needed to distribute intelligence across specialized agents.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Code as Agent Harness
- The Darwin Gödel Machine: AI that improves itself by rewriting its own code
- Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agents
- Hyperagents
- Huxley-Gödel Machine: Human-Level Coding Agent Development by an Approximation of the Optimal Self-Improving Machine
- Agentic Code Reasoning
- Introducing Sakana AI's Recursive Self-Improvement (RSI) Lab
- The Red Queen Gödel Machine: Co-Evolving Agents and Their Evaluators