Why the AI agent race is turning on code and harnesses
A review by Meta, Stanford, and the University of Illinois Urbana-Champaign argues that code is becoming central to how AI agents reason, act, and coordinate. The key layer is the "harness": the tools, memory, permissions, tests, and execution loops that turn a stateless model into a working system.
A new review from researchers at the University of Illinois Urbana-Champaign, Meta, and Stanford frames AI agents less as chatbots that sometimes write software and more as systems that use code as their operating medium. In that view, code is not just an output. It is how an agent plans, checks work, records progress, and coordinates with other agents.
“The story focuses on AI agents becoming more capable and autonomous through code, tools, memory, permissions, and execution harnesses, though it emphasizes control and reliability rather than clear danger.”Why it scores Terminator
The paper’s main focus is the software layer around the model. The authors call that layer the "harness," and they argue it is becoming the practical foundation for reliable autonomous systems.
Code is becoming the agent’s working surface
The review argues that code has qualities that make it unusually useful for AI agents. It can be executed, which means a model’s proposed action can become something a system actually runs and checks. It is also traceable, because intermediate calculations and steps can be stored in a structured form.
That matters for long-running work. A plain language model is stateless on its own. When it is wrapped in software that gives it tools, memory, testing, permissions, and feedback, it can keep moving through a task over time.
The authors separate long-running agent systems into three broad pieces:
- The model’s own abilities, including reasoning and planning.
- The infrastructure supplied by the surrounding system.
- The code an agent creates during work, such as test scripts, helper tools, reusable skills, and executable workflows.
That third category is important because it is easy to overlook. If an agent writes a small script to inspect a problem, builds a test, or creates a reusable workflow, that code becomes part of how the system thinks through the task. The review argues these self-generated artifacts deserve more attention from researchers.
The harness turns outputs into controlled action
The "harness" described in the review is not one feature. It is the collection of tools and boundaries that lets an AI system act without simply guessing in text. It includes interfaces, sandboxed execution environments, memory, tests, permission limits, execution loops, and feedback channels.
This is the difference between a model that suggests a plan and an agent that can run through a plan, inspect the result, and decide what should happen next. The review describes a recurring cycle: plan, execute, and verify.
In that cycle, plans define what the agent intends to change. Execution happens inside sandboxed environments with defined permissions. Verification then decides whether the result should be accepted, revised, or sent to a human reviewer.
The paper connects this idea to methods such as Program-of-Thoughts and Chain of Code, which move computation into executable programs instead of leaving it in words. It also points to Code as Policies, where natural language instructions are turned into robot control code.
Multi-agent work depends on shared code and logs
The review’s third level looks at groups of agents. In these systems, code collections, tests, and execution logs become a shared workspace. Different roles can divide the work, including managers, planners, coders, reviewers, and testers.
Systems such as ChatDev and MetaGPT are cited as examples of this pattern. The review also says the approach is already appearing in commercial products.
Claude Code can farm out pull request reviews to a team of AI agents that look for bugs, security flaws, and regressions in parallel, while not being able to approve changes themselves. That limitation matters because it keeps final control outside the reviewing agents.
Commercial products are also organizing agent work around the same basic structure. Anthropic's Claude Code connects the local terminal, development environment, and browser into a workflow where the agent edits files, runs commands, and follows permission rules. OpenAI's Codex and GitHub Copilot's coding agents put similar workflows in managed cloud environments and package changes through traceable pull request outputs.
Production systems show why the wrapper matters
The review treats the harness as more than plumbing. It is becoming a competitive layer in AI agent development.
The source article points to the leak of roughly 500,000 lines of Claude Code's source code as an accidental sign of how much is happening around the model. The leaked material included a "dreaming" function for task consolidation and other mechanisms for steering models as coding agents. Anthropic later had more than 8,000 copies and forks removed from GitHub through a copyright takedown.
Deepseek is also described as moving in this direction with Deepseek Code and a dedicated "Harness" team in Beijing. That team is focused on what sits beyond the model, including tool use, planning, and storage. Its core formula is that model plus harness equals AI agent.
The article also notes that production systems are becoming training material for future models. Cursor's composer trains with continuous reinforcement learning on real usage traces. OpenAI's Codex-1, GPT-5-Codex, and GPT-5.1-Codex-Max are trained for long, multi-step coding sessions aligned with the Codex workflow.
That creates a feedback loop. The agent works inside an environment, and the traces from that environment help train the next system. The boundary between model and environment becomes less fixed.
The big risk is false confidence
The review is not simply optimistic. It warns that visible checks can make systems look more reliable than they are. A passing test does not prove the result is safe, complete, or meaningful.
The authors point to several open problems: evaluations beyond raw success rates, checking the substance of results when tests are not enough, harness self-improvement without regressions, shared state across multiple agents, human oversight, and expansion into settings with image or sensor data such as GUI agents and robots.
The concern is especially sharp around testing. Tests can be incomplete. Test programs for graphical interfaces can miss bad intermediate steps. Simulators can hide physical risks.
That is why the authors suggest accepted actions should come with documentation showing which tests ran, which areas were not tested, and which risks remain. In their framing, reliable autonomous coding agents are not created by better repair prompts alone. They depend on regulated state transitions inside a controlled loop around the model.
The takeaway is straightforward: the future of AI agents may depend as much on the harness as on the model itself. Code is becoming the place where reasoning, action, memory, verification, and collaboration meet.
Read next