AI Agents4 min read

Trust in Coding Agents Is a Harness Problem, Not a Model One

Unattended coding agents don't earn trust through smarter models; they earn it through boring infrastructure like checkpoints, diffs, and rollback.

By Curious Technologist Editorial

The question a Reddit thread on r/LocalLLaMA raised this week deserves more credit than it's getting: what actually makes someone comfortable walking away from a coding agent for an hour. The instinctive answer is "a better model," and that answer is wrong, or at least incomplete in a way that costs people real debugging time. Trust in unattended automation has never come from the intelligence of the thing doing the work. It comes from the scaffolding that limits how much damage a bad decision can do before a human sees it.

The Autopilot Precedent

This is not a new problem dressed in new clothes. Aviation solved a version of it decades ago, and the solution was never "make the autopilot smarter than the pilot." It was checklists, redundant sensors, and hard limits on what the system was allowed to do without a human confirming. Autopilot doesn't get trusted because it never makes an error; it gets trusted because the plane has instrumentation that makes errors visible immediately and mechanisms that stop a small error from becoming a crash. Coding agents are at the pre-instrumentation stage of that curve. Most setups today have a model, a set of tool permissions, and a hope. Judging by the framing in that thread, the people who've actually stopped babysitting their agents have quietly built the missing instrumentation themselves: git worktrees per task, mandatory test runs before any commit, diff review gates, and rollback as a first-class operation rather than an emergency measure.

The moment you start trusting the harness instead of the model is the moment unattended automation stops being a gamble.

Why Tests Are Necessary but Not Sufficient

The thread's most useful observation is one that gets glossed over in most agent marketing: an agent can pass every test you wrote and still touch something you never intended. This is not a hypothetical edge case, it's a structural property of how these systems plan. A model chasing a green test suite has no innate concept of blast radius. It will happily refactor a shared utility function to satisfy one failing assertion, breaking three call sites your tests don't cover, because nothing in its reward signal penalizes collateral changes. Tests verify the target behavior. They say nothing about scope discipline. The fix isn't more tests, which have diminishing returns and real maintenance cost, it's constraining the space the agent can act in: file-level permissions, explicit allow-lists for which directories it can touch, and diffs scoped narrowly enough that a five-minute human skim catches anything weird.

In practice: if you're running a coding agent against a monorepo with shared internals, don't grant it repo-wide write access and hope the tests catch drift. Scope its permissions to the directories the task actually concerns, and make it fail loudly rather than improvise when it needs to touch something outside that scope.

The Counter-Argument, and Where It Holds

The strongest objection to all this harness talk is that it just relocates the trust problem rather than solving it. A permission system, a checkpoint scheme, a rollback script, these are themselves code, written under time pressure, and they can have bugs same as anything else. A rollback mechanism that silently fails to restore state is arguably worse than no safety net, because it creates false confidence. This is a real failure mode, not a strawman, and the honest response is that harness code needs the same scrutiny as production code, not a lighter standard because it's "just tooling." But the objection doesn't actually favor trusting the model more; it favors treating harness engineering as a discipline with its own rigor, which is exactly the direction the more careful people in that thread were already pointing.

What This Changes for Someone Running an Agent Today

For most people running a coding agent for personal projects or small tasks, the honest answer is that this changes very little right now. If you're generating a script, fixing a one-off bug, or scaffolding a small feature with a human reviewing every change before it merges, the harness question is largely moot, because you are the harness. Where it matters is the specific case the thread is actually about: leaving an agent running against a real codebase, unattended, for an hour or more. If that's your use case, the practical move is to stop evaluating agents by how often they get a task right on the first try and start evaluating your own setup by how it behaves in failure: does a failed tool call get retried sensibly or does it spiral, is every change committed as an isolated, revertable unit, can you diff exactly what happened while you were away in under two minutes. None of that requires a frontier model. It requires the unglamorous work of building checkpoints and permission boundaries before you grant the autonomy, not after something breaks.

The catch: building that scaffolding is real, ongoing engineering effort, not a one-time setup cost. Permission boundaries need updating as your codebase's shared surfaces shift, and rollback scripts need testing on the same cadence as the code they protect. Anyone selling unattended agent autonomy as a plug-and-play feature is skipping the part that actually makes it safe.

Sources & further reading

The analysis above is our own. The underlying reporting and primary documents are credited here.