Keeping AI Coding Agents on a Short Leash
Why disciplined, tightly-supervised AI coding beats autonomy — and the provenance and profiling tools that make it practical.
Why disciplined, tightly-supervised AI coding beats autonomy — and the provenance and profiling tools that make it practical.

There is a growing split in how developers work with AI coding agents. On one side is “vibe coding” — hand the model a loose goal, let it run, and hope the result compiles and works. On the other is a more disciplined stance that is quietly gaining traction among experienced builders: keep the agent on a short leash. Constrain every step, verify frequently, and never let the model wander far from a plan you actually understand. In this post we unpack the short-leash method, why it beats autonomy when correctness matters, and the emerging tooling — provenance trackers, token profilers, and audit layers — that makes disciplined agent work practical at scale.
Frontier models are genuinely impressive, but they fail in a specific and dangerous way: they produce plausible-but-wrong code with total confidence. Give an agent a broad task and “YOLO mode” permissions, and it will happily refactor files you did not ask it to touch, invent APIs that do not exist, or delete working code to “simplify.” The failures are worst exactly where you can least afford them — niche domains and unusual codebases that sit outside the model’s training distribution.
The deeper cost is not the bad diff you can revert. It is that you stop understanding your own codebase. When you disengage and let the model drive, you accumulate code you did not read, cannot explain, and did not choose. The technical debt is invisible until the day you need to debug it — and by then the person who understood the change is a chat log that scrolled off the screen.
The short-leash method, articulated well in a widely-discussed essay by the okturtles blog, is not about distrusting AI. It is about staying in the loop. The core claim is blunt: an AI-assisted pull request is really a pull request from an AI with human assistance — which makes your understanding of every line non-negotiable. You remain the engineer of record. The agent is a fast, tireless pair-programmer that still needs a firm hand on the wheel.
Concretely, that means small verified increments instead of big autonomous leaps. You research the task, write a real plan, and then supervise the agent through it one reviewable step at a time — approving good moves, denying bad ones, and committing often so a single bad decision can never wipe out an hour of work.
Picture a routine task: “add rate limiting to our API.” Off the leash, an agent might reach for a popular middleware, wire it into the wrong layer, invent a config option that does not exist in your version, and — because the tests are thin — report success. It looks done. It compiles. It even passes the two tests that happen to exist. Three weeks later, under real traffic, the limiter silently does nothing, because it was mounted after the route that needed protecting.
On a short leash, the same task unfolds differently. You plan first: which layer, which library, what the failure mode should be. You watch the agent add the dependency and stop it when it picks a version that conflicts with your lockfile. You approve the middleware wiring only after reading where it sits in the request pipeline. You ask for a test that proves a blocked request actually returns a 429. Same model, same speed — but the drift never compounds, because you caught it at the diff, not in production. That is the entire value proposition of the method in one story.
The counterintuitive result reported by short-leash practitioners is that tightly-supervised agents produce better code than the same models running free — sometimes better than what a frontier model can do unassisted. That makes sense once you frame it correctly. The expert developer contributes exactly what the model lacks: domain knowledge, taste, and an accurate mental model of the system. The agent contributes speed and breadth. Keep both in play and you get the best of each. Remove the human and you are left betting your codebase on the model’s weakest trait — its confidence in things it does not actually know.
This is also why the method demands expertise. The short leash only works if you can tell a good diff from a bad one faster than the agent generates them. For a senior engineer in a familiar domain, that is easy. For a beginner in an unfamiliar one, the leash goes slack — which is why “just let the AI do it” is most dangerous precisely for the people least equipped to catch its mistakes.
Discipline does not have to mean doing everything by hand. A new class of open-source tools is emerging specifically to give builders visibility and control over agent work — and several surfaced in the AI builder community this week.
Provenance and audit. Tools like brain0 build a passive decision graph that links every commit back to the prompts that produced it. That turns “why is this code here?” into a query instead of an archaeology project, and adds drift detection plus a DLP audit of what your agents actually read — a governance layer that pairs naturally with the short-leash philosophy.
Context profiling. Long agent sessions bloat, get expensive, and lose coherence as the context window fills with repeated content and oversized tool results. TokenScope profiles session logs to show exactly where your token budget goes, so you can trim waste and keep the agent sharp over long runs.
Reference architectures. For builders designing their own agents, projects like OpenScience — an open-source AI workbench for scientific research — show how to wire an LLM agent to real, inspectable workflows rather than an opaque autopilot. The pattern generalizes far beyond science.
You do not need a new framework to adopt the short leash — you need a few habits and, optionally, a couple of tools to reinforce them. Here is a practical starting checklist for your next agent session:
Short-leash discipline is a dial, not a switch. The right tension depends on blast radius and your own expertise. Throwaway prototypes, one-off scripts, and exploratory spikes can run looser — if the code is disposable, the cost of a bad diff is near zero, and the speed of autonomy is pure upside. The leash should tighten as the stakes rise: production code, security-sensitive paths, shared libraries, and anything touching data or money deserve your full attention on every diff.
Your familiarity with the domain matters just as much. In territory you know cold, you can review fast and safely give the agent more rope. In an unfamiliar framework or a legacy corner of the codebase, keep the leash short precisely because you are least able to spot a confident mistake. The failure mode to avoid is the seductive middle: high-stakes code plus low personal expertise plus loose supervision. That combination is how teams ship bugs they will not understand until they are paging someone at 3 a.m.
Individual discipline is fragile; process makes it durable. Teams adopting the short leash tend to codify it: a short section in the contributing guide about reading every AI-generated diff, a PR template with an AI-disclosure field, and a norm that “I do not fully understand this change” is a valid, respected reason to block a merge. Pair that culture with the tooling — provenance graphs so reviewers can trace a suspicious line back to its prompt, and token profiling so long sessions do not quietly balloon in cost — and the leash stops depending on any one person’s willpower. It becomes how the team ships. The goal is not to slow anyone down; it is to make sure the speed you gain from agents does not come at the price of a codebase nobody can explain.
The short-leash method is not a rejection of AI coding agents — it is the argument that they are most powerful when you refuse to disengage. Speed without oversight produces code nobody understands; oversight without speed leaves the model’s biggest advantage on the table. Hold both. Plan tightly, verify constantly, commit often, and lean on the new wave of provenance and profiling tools to make the discipline sustainable. The builders getting the most out of these agents in 2026 are not the ones who trust them the most — they are the ones who keep the leash short. If you want to go deeper, browse the tools referenced here on HelloBuilder and try one on your next pull request.
Get the weekly digest for AI builders & vibe coders. Curated tools, resources, and stories. Skip the scroll.