The Tao of Coding with Agent Harnesses news update
Vivek Chopra published an architectural guide detailing how agent harnesses, sandboxes, and clean context windows govern autonomous tools like Claude Code.
By Dillip Chowdary • Nov 29, 2026 • Source: vivekchopra.com

At a glance
- Author
- Vivek Chopra
- Core topic
- Coding agent harnesses and runtime design
- Primary tools
- Claude Code, Codex, GitHub CLI, GitHub Spec Kit
- Architectural rule
- Never combine private data, untrusted inputs, exfiltration
- Operational risk
- Prompt approval fatigue occurs by tenth manual prompt
- Concurrency limit
- Specifications fail to converge across 100 agents
In this post
Software engineer Vivek Chopra published a comprehensive engineering treatise detailing how production agent harnesses govern autonomous coding models, as documented in vivekchopra.com's report. The analysis describes how developer workflows are transitioning from manual code authoring to system-level harness architecture across tools like Claude Code and Codex. Chopra outlines the runtime constraints, specification frameworks, context hygiene, and operational guardrails required to prevent model failures during multi-agent software development.
This technical breakdown examines the operational structure of autonomous coding loops, permission models, and multi-session task execution. It serves software engineers, engineering managers, and systems architects deploying agentic tooling across production repositories. Readers will learn the precise boundaries required between runtime execution, prompt specifications, and automated verification loops.
01Runtime loops and context window boundaries
A modern coding harness functions as the operational runtime holding the execution loop, context windows, tools, and sandbox permissions between developer and model. Chopra defines the harness broadly to encompass the execution engine, project specifications, structured task lists, automated checks, and persistent run records. When specifications remain unambiguous, planning yields smaller modular tasks with sharp checks that prevent noisy merge conflicts across repositories.
Note: Autonomous agents executing unattended must run strictly within an isolated sandbox to prevent unintended environment modifications.
Developer discipline centers on context window management, which dictates the space and time available to an autonomous model. Novice practitioners frequently saturate token limits with obsolete history, causing models to hallucinate or discard critical instructions. Experienced engineers keep context windows minimal by purging completed tasks and failed implementation attempts that mislead downstream inference turns.
02Permission allowlists and the lethal trifecta
Unattended issue triage exposes repositories to prompt injection attacks when agents process untrusted external data without boundary controls. In one documented incident, an agent triaging issues overnight encountered an issue instructing it to ignore prior instructions and expose deployment keys. The harness failed because it granted the agent unrestricted access to untrusted external text while retaining deployment credentials.
Security requires establishing rigid permissions before automated execution begins, utilizing allowlists, sandboxes, or automated classifiers rather than repetitive human approval dialogues. Chopra warns that operators inevitably approve prompts without reading after encountering ten consecutive manual confirmation requests. Harnesses must prioritize widely adopted CLI tools like gh rather than bespoke custom interfaces that models struggle to parse.
A secure harness architecture strictly eliminates what security researcher Simon Willison identifies as the lethal trifecta. Engineers must never allow a single agent to concurrently combine access to private data, exposure to untrusted inputs, and channels to exfiltrate data externally. When an agent operation fails, developers must audit transcripts, task definitions, and harness logic before attributing faults to the model.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Programming virtues and their false twins
Larry Wall originally established laziness, impatience, and hubris as three foundational programmer virtues, yet modern agent workflows introduce deceptive false twins for each trait. Genuine laziness automates repetitive rules into AGENTS.md, reusable skills, and validation hooks, whereas false laziness bypasses testing and human review. Researcher Kent Beck cautions against consuming seed corn by degrading internal system structure solely to pass an immediate test.
| Virtue | True engineering practice | Deceptive false twin |
|---|---|---|
| Laziness | Write rules once in AGENTS.md, skills, and hooks | Skip code reviews and automated verification checks |
| Impatience | Automate feedback loops with tests and worktrees | Request entire applications within a single prompt |
| Hubris | Sign commits and verify all delivered code | Accept the agent done status without independent proof |
Impatience drives engineers to eliminate loops that stall on human interaction by providing automated builds, test suites, or visual screenshots. Anthropic experiments revealed that false impatience, such as demanding full applications in single prompts, exhausts context windows and leaves broken repositories. Hubris demands complete ownership of shipped outcomes, whereas false hubris blindly trusts an agent declaration of task completion.
04Architectural specifications and foundational constitutions
Specifications must define explicit file targets, API interfaces, boundary edge cases, out-of-scope boundaries, and definitive verification checks before model execution starts. Above individual feature specifications sits an organizational constitution defining permanent testing policies, coding conventions, and protected files the model must never alter. Attempting to alter structural specifications mid-implementation forces immediate execution halts and clean session resets.
- Conduct interview interrogate requirements and complex edge cases through guided prompting before drafting SPEC.md.
- Define constitution record static test policies, directory boundaries, and restricted system files that remain constant.
- Draft specification establish acceptance criteria, interface contracts, and explicit verification checks using numbered requirement identifiers.
- Isolate build session launch a clean runtime environment targeting the finalized specification without prior prompt pollution.
- Execute implementation construct modular components step by step while validating changes against established acceptance criteria.
- Converge and verify validate test suites and run integration proofs to achieve clean merge consensus across the repository.
Scaling agent concurrency sharply increases specification overhead rather than reducing total project delivery timelines. While a single agent may resolve a task in an afternoon, coordinating five concurrent agents requires two days of specification drafting to avoid architectural divergence. Unbounded multi-agent deployments fail to converge without rigid, deterministic specifications governing shared code boundaries.
05Structured requirements and disposable research spikes
Large development initiatives demand standardized requirement lifecycles structured as user stories accompanied by explicit acceptance IDs such as R1 or R2. Established tooling paths include GitHub Spec Kit, which sequences through constitution, specify, plan, tasks, implement, and converge phases, alongside Kiro using requirements, design, and task files. When addressing production defects, engineers must isolate current behavior, expected behavior, and immutable invariant behavior.
Engineers should bypass elaborate planning workflows for trivial modifications whose diff is explainable in a single sentence. Exploratory spikes follow an inverted protocol where engineers intentionally discard initial code and extract lessons to construct formal specifications. Structured task plans divide work into isolated sub-tasks small enough to complete within a single inference session while linking directly to requirements.
Frequently asked questions
What is an agent harness in modern software engineering?
An agent harness is the complete runtime framework including execution loops, tools, context windows, permissions, task lists, specifications, and test records that govern an AI model.
What is the lethal trifecta security risk in autonomous agents?
Coined by Simon Willison, the lethal trifecta occurs when an agent concurrently has access to private data, reads untrusted user input, and retains permission to transmit data to external networks.
How should software teams structure specifications for AI coding agents?
Teams should draft an enduring constitution for repo-wide rules, interview the model to surface edge cases, and define acceptance criteria with numbered requirements before launching an isolated execution session.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement