What Makes Coding Agents Work: Model Capability or Engineering Framework?
When evaluating why coding agents perform well, it's easy to reduce the question to a binary choice between underlying model intelligence and engineering framework design. This article breaks the question into three layers—raw code generation ability, safe execution through permission systems and hooks, and long-task consistency across context compression and checkpoints—and argues that model and framework multiply rather than add. It also explores a counterintuitive finding: lenient frameworks can actually shape model behavior for the worse during training.
When discussing why coding agents work well, the most common mistake is framing the question as an either/or: credit either goes to the reasoning power of the underlying large language model, or to the elegance of the surrounding engineering implementation. The question itself doesn’t hold up—“strong” actually covers three different things, each with a different attribution. Let’s take them one by one.
Layer 1: Can It Write Code? The Model Sets the Floor
The first thing is raw code generation capability: whether the agent can understand the structure of an unfamiliar repository, grasp the intent of test cases, and propose changes in the right direction. This layer is determined entirely by the base model—the knowledge accumulated during pretraining and the reinforcement learning in post-training. The framework wrapped around it has nothing to do with it.
Here’s a straightforward test: keep the framework and prompts identical, and only swap in a weaker model. You’ll find the weak model can’t even make sense of the repository’s tests, and its proposed changes either miss the point entirely or head in the wrong direction. Under those conditions, discussing framework details like sandbox isolation, permission approval, or context compression is meaningless—no matter how elegant the framework, it cannot teach a model to understand what it cannot understand.
So this must be acknowledged: the model is a prerequisite, and there is no shortcut at this layer. But “the model is a prerequisite” does not mean “the model is everything.”
Layer 2: Can It Land Safely? The Framework’s Job
The second thing is whether what the model writes can safely reach disk without causing irreversible damage. This is the harness’s job. In a mature coding agent framework, the permission system is essentially a structured rule table, usually with three categories:
- Allow list: matching operations are auto-approved—suitable for high-frequency, low-risk actions;
- Ask list: matching operations pause execution and wait for human confirmation;
- Deny list: matching operations are blocked outright.
Rules typically use prefix matching with wildcards—for example, allowing a specific test command and all of its subcommands, with the wildcard only allowed at the end of the rule to keep matching deterministic. Priority is fixed: ask overrides allow, and deny overrides both. If no rule matches, execution falls back to a default mode—for instance, in a read-only planning mode, the model can browse and analyze code but cannot modify files or execute commands.
Beyond this rule table, one more line of defense is needed: a user-defined validation hook (pre-execution hook) inserted after tool arguments have been generated but before execution actually begins. This hook can perform checks that no preset framework rule covers—for example, verifying that the target file isn’t in a protected directory. If validation fails, the hook exits with a specific exit code and feeds its stderr message back to the model verbatim, letting the model discover the problem and revise its plan instead of simply erroring out.
The value of these mechanisms should be understood clearly: they don’t make the model one bit smarter—their purpose is to prevent “runs fine but wrong direction” mistakes. One dangerous batch rename or one mistakenly deleted config file costs far less to intercept than to repair afterward.
Layer 3: Can It Finish Long Tasks? The State Layer
The third thing is the easiest to overlook: in a task that runs for hours with dozens of tool calls, can the agent still behave consistently?
The core tension is that context compression is lossy. When conversation history exceeds the model’s context window, the system automatically summarizes and truncates—and what gets “compressed away” first is often exactly the constraints written at the very beginning: “which files must never be touched,” “which interface signature must not change.” These constraints are inherently “written early, needed later,” which directly conflicts with compression strategy.
The industry’s standard solution is to move constraints outside the context: persist them to disk in project-level or team-level rule files (such as agent instruction files). These files aren’t part of the conversation history, so compression can’t touch them; the framework re-reads them on every tool call or every conversation turn, effectively turning constraint “loading” from a one-time event into a repeatable one.
Another commonly misunderstood mechanism is checkpoints/rollback. Many agents offer within-session rollback, but the implementation is far lighter than you might imagine: it usually just snapshots managed files before each turn begins, keeping only a limited number of recent snapshots (on the order of a hundred). The key limitations:
- Files modified directly via ordinary shell commands are not tracked;
- Most sub-agent changes aren’t tracked either;
- It covers only file state, not external side effects—network requests already sent and database writes already executed cannot be undone by rollback.
So checkpoints are designed for session-level quick recovery. They are far cheaper than version control, but they are by no means a replacement for it. Cheap, precisely because it only guarantees files—not the world.
Conclusion: Not Addition, but Multiplication
Putting the three layers together, the answer is: the model sets the floor, and the framework determines whether that floor can be cashed in as a complete delivery. The two are multiplied—if either factor is zero, the result is zero. With this in mind, evaluating any coding agent solution should examine two dimensions separately: how the capability curve changes as you swap models, and how complete the framework’s design is across permissions, context, and recovery.
A Reverse Effect Worth Watching
Finally, there is one direction worth expanding on, because it systematically misleads people’s judgment of “model strength.”
Frameworks shape model behavior in reverse. An experienced developer noticed a counterintuitive phenomenon in practice: after wiring the same model into a strictly validating editing tool, the newer the model, the worse its tool-call formatting—generated JSON arguments contained several nonexistent fields out of nowhere. The content itself was correct; it just had extra keys that shouldn’t have been there.
The plausible explanation: these models were trained with reinforcement learning in lenient client environments. Lenient clients don’t strictly validate arguments—they silently filter unknown keys and accept near-miss parameter names—so “writing a few extra fields still earns the reward,” and no gradient signal ever corrects the redundancy during training. The model isn’t “unable” to produce strict formatting; it has learned that “being strict doesn’t matter.”
The takeaway: the “model performance” you observe is always the joint output of model and framework. A strictly validating framework forces more disciplined behavior and surfaces problems early; a lenient framework feels smoother in the short term but entrenches the model’s bad habits over the long run. For enterprise evaluation, rather than agonizing over strength along a single dimension, treat “model × framework” as one integrated system to assess and design.
