What Sets the Floor for Coding Agents
Coding agents can look capable because they edit repos and run commands, but delivery depends on three layers at once: model quality, a safe execution framework, and state that survives long tasks. This article unpacks that product, how frameworks shape model behavior, and how to tell whether a failure belongs to the model or the stack.
Coding agents can look as if they “edit the repo, run commands, and finish the job.” It is tempting to treat that as a single question: is the base model strong enough? That attribution is incomplete. Whether delivery actually happens depends on three capabilities all being non-zero at once: whether the model can state the problem correctly, whether the execution framework can apply changes safely to the workspace, and whether state mechanisms keep constraints intact after context is compressed. The three layers multiply. If any one approaches zero, the result approaches zero.
Separate “strength” into layers
The first layer is generation quality—the model’s floor. It comes mainly from pretraining and later alignment; an outer scheduler does not invent it. On the same codebase, a weaker model may miss the intent of tests, confuse interface boundaries, or propose changes that conflict with the existing architecture. Finer sandboxes, approvals, and rollbacks then only constrain a wrong plan; they do not turn it into a right one. Treating the model as a prerequisite is not picking a side. It avoids diagnosing an engineering problem as a prompting problem.
The second layer is safe landing. The model emits intent and tool arguments. The execution framework is what actually touches disk, processes, and the environment. Its job is not to make the model suddenly smarter. It is to cut a class of expensive mistakes: locally green runs that point the wrong way, over-scope the change, or break constraints that should not move.
The third layer is completability of long tasks. After many edits, repeated failures, and context replaced by summaries, the hard constraints written first are the easiest to lose. The state layer must answer which rules must live outside the context window, which changes can be undone quickly, and which side effects a session snapshot cannot cover at all.
The model sets the floor; it cannot cash delivery by itself
When you evaluate a model, look at judgment quality under fixed information, not at how many dangerous actions the outer layer blocked. Typical signals: whether it can locate the responsible module from a failing test, keep interface signatures consistent with callers, and among several edits pick the one with the smallest surface. Those abilities decide where it is even worth talking about a task’s ceiling.
In practice, split the same tasks into a controlled comparison: swap only the model; keep the repo, tool permissions, test entry points, and stop conditions fixed. If a weak model systematically fails at reading tests, inferring data flow, or matching existing style, raise the model or shrink the task before stacking more approval rules. Rules can intercept actions. They cannot supply understanding.
Avoid the opposite misread as well. A model that “happens to succeed” after many retries in a loose environment does not have stable engineering judgment. If the winning path depends on repeatedly overwriting files, widening command scope, or ignoring early constraints, the floor never became repeatable delivery.
The execution framework is what puts the floor on disk
Permission design in the industry can be abstracted as three rule tables: allow, ask, and deny. Rules match on command or path prefixes. Wildcards should express prefix range so one overly broad rule does not swallow a later, stricter one. Priority should be fixed and predictable: ask outranks direct allow; deny outranks both. Operators then see a stable decision, not the wording the model generated this turn.
When nothing matches, fall back to an explicit default—not implicit permission. Read-only or plan mode should forbid file writes and side-effecting commands; execution mode is what opens writes and commands. Default mode is part of the safety boundary and must not be undefined behavior.
After tool arguments are generated and before they run, there should be a pre-execution intercept. It checks whether paths leave the allowed tree, whether the command matches the expected prefix, and whether a patch touches protected files. On deny, return the reason to the model unchanged so it can fix arguments in the same turn instead of executing first and repairing later. The value is to separate “can call a tool” from “is allowed to produce side effects.”
Illustrative rules, product-agnostic and only to show priority—not a real platform config:
deny: shell(rm *)ask: shell(package *)allow: shell(test *)default: read_only
Matching should collect all hits, then decide in deny, ask, allow order. Wildcards should not sit in the middle, or the boundary between test and test:integration becomes fuzzy. The intercept’s exit status and the error the model sees must stay distinct: exit means the action did not happen; the error tells the model what to change next.
The framework must also distinguish reversible from irreversible. Writing workspace files is usually undoable. Network calls, changes to external systems, and deleting shared resources may not be. If the permission table only covers “may this run” and not “can we recover after it runs,” a long task can still lose its rollback path after one mistake.
Long tasks need a state layer, not a longer context
Context compression is almost always lossy. What disappears is often not the last few code snippets but constraints from the start of the session: which directories are read-only, which signatures must not change, which tests must stay green. Those sentences are written early and used late, so they vanish in summaries.
Put constraints outside the chat, as plain-text notes in the workspace—for example a repo-level convention file. It lives on disk and does not disappear with the dialogue summary. The framework should re-inject it at the start of each turn instead of hoping the model “still remembers.” Keep the file short, checkable, and versioned. Write prohibitions and acceptance conditions, not vague style preferences.
Checkpoints are often mistaken for version control. A reasonable session snapshot records an internal copy of workspace files before each side-effecting action so you can jump back a few steps. It usually keeps a bounded number of copies and only files the framework tracks. External changes from raw commands, untracked subtask edits, and state outside the workspace are out of scope. If an official or homegrown system defines this as session-level recovery, that definition is the boundary: it is cheap because it is narrow. For audit, collaboration, and long-term history, use a real VCS. Snapshots do not replace commit history.
Long tasks also need explicit progress state: finished subgoals, unverified hypotheses, paths that already failed. That state should likewise live outside the context window, or one compression pass wipes project memory.
They multiply—and the framework shapes the model
What users experience as “it works” is the model floor times the framework’s conversion rate. A strong model with chaotic permissions yields occasional high-damage operations. A strict framework with a model that cannot read the repo yields safe failure. Optimizing only one can improve metrics without improving delivery.
The reverse effect is subtler. Models adapt to the clients they see most. If the tool layer is too lenient—no validation of unknown fields, extra keys dropped, several field names accepted for the same meaning—then “write a few extra keys and still score” becomes a habit in training or preference optimization. Content is roughly right; structure is unstable; a strictly validating client fails often. People read that as “the new model is worse.” Often a loose framework has locked in rewarded gambling.
The fix is not to parse more loosely. Narrow the tool contract, fail earlier, and make the reward real. Schemas accept only documented fields; unknown keys fail immediately with a machine-readable reason; one meaning has one field name; success is recorded only when tests pass and the change stays inside constraints. Then gradients or preference signals punish sloppy parameters instead of rewarding “the client wiped my mistakes.”
Decide whether to change the model or the framework
Triage on three failure types. Understanding failures—misread tests, wrong module, plan that contradicts constraints—prefer a stronger model or a smaller task. Boundary failures—commands that should not run, protected files changed—tighten permissions, default mode, and pre-execution intercepts. Memory failures—late-session violations of opening rules, compressed context repeating a rejected plan—externalize constraints, record progress, and limit what snapshots are expected to do.
Evaluation should not look only at whether the final patch landed. Record at least: whether the first plan hit the right files, whether out-of-policy attempts were stopped before execution, whether constraints survived compression or restart, and whether irreversible side effects occurred. Those four map to floor, landing, state, and recovery. Scoring only “did the last attempt succeed” credits the framework’s erasures as model skill.
One sentence: the model decides whether the write is right; the execution framework decides whether a wrong write hurts the system and whether a right write can stay. Make rules, intercepts, external constraints, and bounded snapshots predictable, and a coding agent’s floor has a chance to become repeatable delivery. Tighten the tool contract and you also stop the framework from training the model to score only on lenient clients.
