Harness Engineering: Beyond Prompt and Context Engineering

Keep a model frozen and change only the runtime around it, and your agent can look like a different product. In our harness × model field guide, swapping the harness around the same model swung cost and wall-clock time by 2x to 4x across mature coding tools. In controlled 2026 benchmarks, editing only the harness lifted GPT-5.4 on Terminal-Bench 2 from 69.7% to 77.0% (AHE), and Google Research's Harness2 lifted GLM-5 by up to 11.5 points on WorkBuddy-Bench and 11.8 percentage points on Harvey's Legal Agent Benchmark without touching a single weight.
The industry now calls that surrounding layer the harness, and the work around it harness engineering. Half of the phrase is rebranded systems engineering. The other half points at a real shift: once a model crosses a basic capability floor, the biggest gains in reliability, cost, and safety come from loops, tools, isolation, and verification rather than another round of prompt wording.
What a harness is, and what it is not
An agent is a model plus a harness. The model predicts tokens. The harness is the entire runtime around those frozen weights: the execution loop, provider plumbing, tools, context compaction, memory, permissions, subagent orchestration, and extension hooks.
Four neighboring terms get mixed up with it constantly, so it helps to separate them cleanly:
- Prompt and context engineering live inside the harness. Prompt engineering tunes instructions. Context engineering decides what enters the window and when old output gets compacted. Harness engineering owns those layers plus everything outside the prompt: sandboxes, tool execution, retry rules, verification hooks, and state.
- Agentic frameworks are libraries you import (LangChain, AutoGen, CrewAI). A harness is a runtime you work inside of (Codex, Claude Code, Pi, OpenCode). That boundary is blurring in 2026 as framework vendors ship harnesses like Deep Agents and harnesses expose embeddable SDKs.
- Evaluation harnesses wrap the other way. SWE-bench wraps an agent to score it against tasks. An agent harness wraps a model so it can act on a workspace.
- Meta-harnesses and orchestrators sit one layer above. Tools such as Databricks Omnigent or ORC coordinate several harnesses behind shared budgets, sandboxes, and message queues without running their own editing loop.
Model post-training (SFT, DPO, RL) sits on an orthogonal axis. Post-training changes the weights. Harness engineering changes the runtime while keeping weights fixed, which means you can ship an improvement in minutes on a closed API model and roll it back with git revert.
The reverse experiment isolates what weight adaptation adds when the scaffolding stays unchanged. In Hugging Face's harness adapters study (November 2026), Lewis Tunstall's team froze Pi and trained a GRPO LoRA adapter on Qwen3.8-27B via a live proxy. With thinking disabled, pass@1 on jointly graded Terminal-Bench 2.1 problems climbed from 40.0% to 56.5%, trimming tool invocations by 56% on solved cases (though short pre-call reasoning occasionally leaked into non-thinking mode).
That Pi adapter carried over to OpenCode and Hermes Agent, whereas a separate 300-task AutomationBench sweep showed no clear out-of-distribution lift. Fine-tuning sharpens an open-weight checkpoint when you own GPUs and verifiers, while modifying the outer runtime lets any team patch failures immediately.
Barbaste et al. published a source-code audit of eleven coding harnesses pinned to July 2026 releases, spanning roughly four million lines of Python, TypeScript, and Rust (arXiv:2609.00006, posted September 2026). Every system they read, from a 100-line research loop to Codex's million-line Rust tree, takes a position on the same seven subsystems shown above, even when that position is deliberate omission.
Production harnesses skip agentic frameworks and code-embedding RAG
Reading production harness code surfaces two results that contradict much of the tutorial literature around AI agents.
First, zero of the eleven audited runtimes import a general-purpose agentic framework. Not LangChain, not LangGraph, not AutoGen, not CrewAI. Even Google's Gemini CLI skips Google's own Genkit and ADK. Every single runtime runs a hand-rolled loop built on native language primitives: asyncio in Python, Promises and async iterators in TypeScript, Tokio in Rust. When an agent mutates real repositories, hidden prompt layers and opaque cache boundaries break faster than framework reuse saves time.
Second, zero of the eleven systems use vector-embedding RAG to search source code. Every one relies on deterministic tools (ripgrep, glob, fd, tree-sitter, or language servers) paired with auto-discovered Markdown context files (AGENTS.md, CLAUDE.md). Code changes every minute, so pre-computed embeddings go stale almost immediately. Deterministic file layout and lexical search cost zero indexing overhead and return exact symbols and paths.
The design space inside those constraints is still wide. Combining Barbaste et al.'s baseline audit with direct inspection of four current repositories (pi, opencode, OpenHands, and codex) shows the trade-offs clearly:
| System | Language and license | Loop and state | Tools and editing | Isolation and safety | Extensibility |
|---|---|---|---|---|---|
| Mini-SWE-Agent | Python, MIT (~100-line core loop) | Linear while loop, unbounded message list, step and cost caps | Single bash tool (sed/awk for edits) | External Docker or container runner | Python protocols |
| Pi | TypeScript, MIT (minimal core) | Functional core with steering queues, session-tree version control | Small core set, multi-edit exact match, pluggable operations seam | None in core by design (delegated to extensions) | Extensions, SKILL.md, standalone @earendil-works/pi-mcp, codemode |
| OpenCode | TypeScript, MIT (client/server) | Async loop behind HTTP server with TUI, desktop, and SDK clients | 17 tools, model-aware edit surface (apply_patch for GPT, search/replace for others) | Tree-sitter syntax-aware command permissions, no OS sandbox | Plugins, SKILL.md, MCP, ACP server, codemode |
| OpenHands | Python SDK + TS app, MIT | Event-sourced EventLog tree in software-agent-sdk, parallel resource-locked batches | 25+ tools, multiple edit dialects, stuck detector | Docker/remote sandboxes, pluggable security analyzer, secret redaction | Skills, MCP, ACP host (runs rival harnesses as backends) |
| Codex CLI | Rust, Apache-2.0 (codex-rs workspace) | Tokio async state machine, streaming Responses API, rollout traces | 25-30 tools, apply-patch DSL, BM25 tool_search, V8 code-mode-runtime | Native 3-OS sandboxes (bwrap, Seatbelt, windows-sandbox-rs), execpolicy rules | SKILL.md, hooks, MCP, plugin-host |
Claude Code sits alongside these as the reference many open harnesses imitate (hook names, SKILL.md conventions, deferred tool search), though its runtime binary is closed source. The public anthropics/claude-code repository ships plugins, docs, and examples without an open-source license, so Barbaste et al.'s source audit relied on a circulated March 2026 TypeScript snapshot rather than an official release tree.
Comparing Mini-SWE-Agent against Codex highlights the real split in this table. Even with the caveat that its SWE-bench Verified figures are self-reported across different models and dates, Mini-SWE-Agent lands in the same accuracy range as systems three orders of magnitude larger using a single bash tool and a tiny loop. Most of Codex's million lines of Rust live in crates that no single-task benchmark rewards: bwrap and Windows sandboxing, execpolicy, external-agent-migration, otel tracing, app-server transports, and cross-session memories. Production mass buys safety, user experience, cost control, and enterprise governance rather than raw single-task accuracy.
Tool bloat breaks prompt caches and reasoning accuracy
A common mistake when building an agent is attaching every API endpoint or MCP server you own and letting the model pick. That backfires fast. The tool surface directly alters context cost, cache hit rates, and reasoning accuracy.
In long sessions, 95% to 99% of input tokens are prompt-cache reads (field guide). Every tool schema you add rides along on turn one and bloats every cold start. In a Claude Code test with Kimi K3 (Owners Not Renters), tool schemas consumed 63% to 81% of input tokens. Cutting the exposed set from 28 tools down to 11 reduced output tokens by 20% and thinking tokens by 42%.
That pressure drove four concrete patterns across 2026 harnesses:
- Progressive disclosure via
SKILL.md: in Barbaste et al.'s audit, skills passed MCP in adoption (9 of 11 systems vs 8 of 11). A skill puts only its name and one-line description in the initial prompt, and loads instructions and helper scripts on demand. An MCP server often dumps dozens of JSON schemas upfront before the task even needs them. - Deferred tool loading: once a harness exceeds roughly 15 tools, upfront schemas stop paying for themselves. Claude Code marks non-core tools out of its 43-tool catalog deferred behind
ToolSearchTool(cutting initial prompt size by roughly 40%). Codex uses adefer_loadingflag behind a BM25 lexical index, and Hermes collapses MCP schemas into three search-and-call bridge tools once they exceed 10% of the context window. - Code execution and CLI composition: shell tools compose existing binaries with zero schema cost. Both Codex (
code-mode-runtime) and OpenCode (codemode) now let models execute short scripts against a tool catalog instead of burning one LLM round-trip per API call. Pi spent much of 2026 rejecting MCP in favor of CLI tools with READMEs, and even after adding its standalone@earendil-works/pi-mcppackage, keeps subagents and plan mode out of the core loop. - Model-matched edit contracts: frontier models handle exact unique-substring replacement well, while smaller or open models benefit from fuzzy match cascades or patch DSLs. OpenCode swaps its file-edit tool per model family, giving GPT models Codex's
apply_patchformat and other models search-and-replace.
If an agent picks the wrong tool or loops on schema validation errors, the fix rarely belongs in a longer system prompt. Narrow the tool list, improve the error messages returned by the tool, or move specialist workflows behind a skill or deterministic script.
How to engineer a harness with guides, sensors, and behavioral evals
Treating a harness like production software comes down to two design habits: make the workspace legible to the agent, and enforce invariants in code before trusting prose.
Birgitta Böckeler's harness guide on martinfowler.com organizes controls along two axes: guides (feedforward, before the agent acts) versus sensors (feedback, after it acts), and computational (deterministic CPU checks running in milliseconds) versus inferential (LLM checks running in seconds). Put as much weight as possible into the deterministic half. Code catches violations on every turn for free, while model reviews catch semantic issues at merge or promotion gates.
Three field reports from 2025 and 2026 show what this looks like in running systems.
OpenAI built an internal product to roughly one million lines of code and 1,500 merged pull requests over five months with three to seven engineers writing zero lines of application code by hand (Harness Engineering, February 2026). Their earliest failure was writing one giant AGENTS.md manual: it crowded out task context, rotted immediately, and could not be checked by CI. They replaced it with a roughly 100-line AGENTS.md table of contents pointing to a structured, CI-linted docs/ directory. They also made the app bootable per git worktree with Chrome DevTools Protocol access and an ephemeral LogQL/PromQL observability stack, and wrote custom architecture linters whose error messages inject remediation steps directly back into the agent's context.
Anthropic hit two recurring failure modes on multi-window web app builds (Effective Harnesses for Long-Running Agents, November 2025): the agent tried to one-shot the entire app and ran out of context mid-feature, or a later session saw partial progress and declared victory early. Their fix split the first session from later ones. An initializer session creates init.sh, a progress log, an initial git commit, and a JSON list of over 200 end-to-end features all marked failing (JSON survived unwanted edits better than Markdown). Each later coding session reads git history and the feature file, picks one feature, verifies it end-to-end through browser automation, and commits a clean state.
Google's developer engineering team pointed out why macro benchmarks stall day-to-day harness iteration (The Anatomy of Harness Engineering, September 2026). Watching Terminal-Bench move by two points tells you nothing about whether a prompt tweak broke test verification or made the agent hallucinate CLI flags. Their recommendation is fast local behavioral evals (under five seconds in pytest) that assert observable actions, such as verifying the agent called live search instead of guessing or ran the validator before finishing. Macro suites confirm end-to-end capability, while behavioral evals act as unit tests that guard every edit.
Putting those pieces together yields a concrete iteration loop:
- Record complete trajectories: prompts, tool calls, tool outputs, tokens, cost, and wall-clock time.
- Cluster recurring failures instead of reacting to one bad run.
- Classify each failure by layer: model capability gap, missing or bloated context, awkward tool contract, broken environment, or loop/orchestration bug.
- Change one harness component at a time under version control.
- Run fast behavioral checks plus repeated end-to-end replays against a baseline whose run-to-run noise you already measured. Keep the edit only if the gain clears the noise band without regressing cost or latency.
- Shadow on live traffic with side effects off before promoting.
We run a version of this exact loop on our incident-investigation agents at Komodor (How We Make AI Agents Improve Themselves). On a speed run over 55 Cloud-OpsBench cases (25 train, 25 validation, 5 held-out test), only two of seven proposed rounds beat measured noise and survived review. Those two kept edits cut test-set mean time from 103 seconds to 64 seconds and cost from $0.286 to $0.154 per run. Five test cases are too small to judge accuracy alone, so the accuracy check came from the 50 train and validation cases, where 5 cases gained correct runs and 2 lost some.
Harnesses that engineer themselves: Harness2 and the automated loop
Manual harness iteration has an obvious bottleneck: every new domain or model release sends engineers back into raw trace logs. A wave of 2026 papers automates that outer loop, turning the harness itself into an artifact another agent edits while keeping model weights frozen.
Google Cloud AI Research's Harness2 (October 2026, Apache-2.0 at google-research/harness2) pushes this further than offline benchmark tuners by targeting open-world task streams where no ground-truth verifier exists at runtime.
Harness2 exposes eight file-level components around a frozen executor (OpenCode or Codex): system prompt, guardrails, memory, skills, tool guidance, scripts, subagents, and a middleware plugin. Every edit is a file diff, driven by two coupled loops.
Level 1 handles task-level recursion on the current request. Harness2 runs the base harness H0 to capture a reference trajectory, then asks an editor to propose two scoped candidates: an invariant candidate targeting general workflow or tool bugs, and a domain candidate targeting workspace procedures and rules. Both candidates run on the same task under matched conditions, and a composer merges only edits backed by observed behavioral contrasts. Scaling the exploration budget k from 1 to 5 runs this either in parallel or sequentially, with a blind selector picking the final deliverable.
Level 2 handles harnessing-level recursion across the task stream. Once a task finishes, a reflector reviews the entire record (reference, candidates, probes, composition choices) and saves the adopted harness plus an EXPERIENCE.md note into a persistent improvement library. Each new task still starts fresh from H0 instead of blindly inheriting the previous task's execution harness, which avoids piling up task-specific clutter while letting the improvement harness reuse and adapt proven components.
In the authors' own evaluations (arXiv preprint, not yet independently audited), the main k=1 and k=5 tables used Claude Opus 4.8 as the harness editor and blind selector (and JobBench itself is rubric-graded by Opus 4.8). Under that setup, a single contrastive step (k=1) improved both Gemini 3.5 Flash and GLM-5 across all four model-harness pairs: up to +11.5 points on WorkBuddy-Bench and +11.8 percentage points on Harvey's Legal Agent Benchmark (LAB Partial) for GLM-5 under OpenCode, and +4.5 points on JobBench for Gemini 3.5 Flash under OpenCode (31.5 to 36.0). Scaling parallel recursion to k=5 added up to +3.9 points on WorkBuddy-Bench, +4.2 on JobBench, and +6.7 percentage points on LAB Partial.
Tool-error rates fell across every benchmark, dropping from 14.4% to 9.1% on JobBench. To test whether those gains depended on a stronger editor, the authors also ran a same-model test at k=2 under OpenCode where one model served as both executor and editor: Opus 5 gained 3.0 to 5.5 points across the three benchmarks (3.3 on WorkBuddy-Bench, 5.5 on JobBench, 3.0 on LAB), and GLM-5 gained 13.7 points on LAB.
Component ablations in both Harness2 and Agentic Harness Engineering (AHE) show that skills, scripts, tools, and memory drive the gains while prompt edits barely move the needle.
In Harness2 (Gemini 3.5 Flash, OpenCode, k=5, WorkBuddy-Bench average 80.8 vs 72.4 base), stripping out skills dropped the average by 5.3 points and stripping out scripts dropped it by 3.7 points, while stripping out the entire prompt-related group dropped it by 1.5 points. In AHE (GPT-5.4 high on Terminal-Bench 2, 69.7% bash-only seed vs 77.0% full evolved harness), swapping in evolved long-term memory alone reached 75.3% (+5.6 pp), tools alone reached 73.0% (+3.3 pp), and middleware alone reached 71.9% (+2.2 pp). Swapping in the evolved system prompt alone regressed to 67.4% (-2.3 pp).
Putting Harness2 beside the other major optimization families clarifies when each fits:
| Approach | What it changes | Needs ground-truth labels? | When it optimizes | Headline published evidence | Main trade-off |
|---|---|---|---|---|---|
| GEPA | Prompts across modules | Yes (eval metric + text traces) | Offline | Beats 24k-rollout GRPO by +6% avg (up to +20%) on Qwen3 8B using up to 35x fewer rollouts | Leaves tools, middleware, and control flow fixed |
| AutoHarness | Action-filter / verifier code | Yes (environment legality/reward) | Offline synthesis | Eliminates illegal moves across 145 TextArena games (78% of Flash chess losses were illegal moves) | Best when legality rules can be coded deterministically |
| Meta-Harness | Full harness code | Yes (search-set scores + traces) | Offline | +7.7 pts on online text classification with 4x fewer tokens, +4.7 pts across 5 models on 200 IMO-level math problems | Offline search cost, fixed harness after deployment |
| AHE | 7 file-level harness components | Yes (Terminal-Bench verifiers) | Offline (10 rounds, ~32 h) | 69.7% -> 77.0% on Terminal-Bench 2, transfers to SWE-bench Verified with 12% fewer tokens and +5.1 to +10.1 pp across 3 alternate model families | Needs verifiers, operating-point coupling to timeout and budget |
| Harness2 | Execution harness + improvement library | No (behavioral contrasts) | Online task stream | Up to +11.5 pts WorkBuddy, +4.5 JobBench, +11.8 pp LAB Partial at k=1 (Opus 4.8 editor), scaling further at k=5 | High per-task compute and latency, blind selector can mispick |
| RL / GRPO | Model weights | Yes (verifiable rewards) | Offline training | Permanent weight-level gain with zero runtime harness overhead | Tens of thousands of rollouts, requires open weights and retraining per base model |
GEPA's comparison against GRPO explains why this whole category works: a scalar RL reward throws away why a rollout failed, while a serialized natural-language trace (tool calls, stack traces, compiler errors) gives an LLM rich diagnostic signal for credit assignment in dozens of rollouts instead of tens of thousands.
Beyond coding agents: what transfers to production ops
Coding agents dominate the papers because git diffs and unit tests hand researchers cheap binary verifiers. The architecture itself has very little that is unique to editing Python files.
Take an infrastructure troubleshooting agent investigating a production alert. Its workflow looks like this: discover affected services and recent deploys, pull logs and metrics, test competing hypotheses against live telemetry, correlate signals across layers, verify the root cause against evidence, propose a remediation, pause for human approval on any mutating action, and validate recovery after the change lands.
Splitting that system cleanly shows which parts of a harness transfer straight across domains and which parts you must build for your domain:
| Reusable harness substrate | Domain-specific layer |
|---|---|
| Iterative execution loop, turn budgets, and stuck-loop detection | Read-only discovery tools (cluster state, logs, traces, deploy history) separated from mutating tools |
| Threshold context compaction and tool-output truncation | Evidence schemas requiring every claim to cite a command output, timestamp, or metric query |
Progressive-disclosure SKILL.md loader and deferred tool search | Runbooks and incident-type skills (OOM kills, DNS stalls, bad rollouts, DB lock contention) |
| Policy engine and approval gates pausing execution before risky actions | Exact blast-radius boundaries (which namespaces, commands, or writes require a human sign-off) |
| Trace recording, deterministic replay, and shadow execution | Side-effect-free shadow wrappers so a test candidate never restarts a pod or pages an on-call channel |
| Behavioral eval runner and noise-band promotion gate | Domain rubrics graded item by item against past incidents and engineer edits |
In our Komodor loop (How We Make AI Agents Improve Themselves), recorded tool outputs let us replay 55 investigation cases (50 train and validation plus 5 held-out test) offline without touching a live cluster. The same harness discipline applies: keep the agent config in git, separate read-only probes from mutating actions in code rather than prompt prose, and verify changes against measured variance.
Hype, limits, and where harness engineering breaks
Any time a new engineering label trends, half the posts oversell it. Five hard limits show up directly in the 2026 evidence.
Much of it is existing systems engineering
Sandboxes, state machines, circuit breakers, structured logs, and CI gates are decades old. The new constraint is designing them around a stochastic, context-bounded, cache-sensitive reasoner whose failure modes shift every time a vendor updates a model.
Components interfere instead of stacking
In AHE's ablation, the three positive single-component additions summed to +11.1 percentage points, yet combining them yielded +7.3 points. On the 30 Hard tasks of Terminal-Bench 2, memory-only hit 63.3% while the full evolved harness dropped to 53.3%. Memory, middleware, and prompt instructions all pushed toward extra verification, burning turns inside the fixed task timeout. More guardrails can make a hard task fail by running out the clock.
Automated editors are blind to regressions
AHE tracked every round's self-declared predictions against actual next-round outcomes: fix precision was 33.7% and fix recall 51.4% (about 5x random), while regression precision sat at 11.8% and regression recall at 11.1% (barely 2x random). The optimizer usually knew why an edit should help, but missed roughly nine in ten regressions it introduced. Harness2's failure analysis exposed the matching risk for verifier-free loops: on WorkBuddy-Bench Code, its blind selector chose a candidate scoring 55 over one scoring 95, and a wrong premise shared across candidates cost 2 to 11 points.
Operating-point coupling and model churn
When AHE transferred its GPT-5.4-high harness across reasoning tiers inside the same model family, the gain dropped from +7.3 pp on high to +2.3 pp on xhigh because deeper reasoning pushed trials past the timeout tuned for high. And in our field guide, once you compare mature harnesses on normal context sizes, accuracy gaps often shrink to 2 to 5 points (inside run-to-run noise), while cost and latency vary by 2x to 4x. Yesterday's clever prompt workaround often becomes dead weight on next quarter's model.
Recursive test-time harnessing carries a steep compute tax
Harness2 at k=5 runs multiple reference trajectories, proposals, probes, and compositions per task. That trade can pay off for a high-value legal brief or complex report where an extra few minutes and extra API calls are cheap compared to a human hour. It is a non-starter for an interactive coding loop where a developer expects feedback in seconds.
A reproducible experiment worth running next
Most public claims about harness impact either compare different vendor products (confounding prompts, tools, and caching) or report a single lab's self-evaluation. I have not run a controlled multi-harness ablation for this post yet, so rather than invent numbers, here is the clean experiment design worth executing next.
Hold fixed: one pinned model and reasoning tier, one fresh container environment, the same underlying capabilities, the same task split (a development set plus a held-out set read once), and identical token and wall-clock budgets. Run repeated trials (n >= 3 per task) across three configurations:
| Configuration | What it includes | What it tests |
|---|---|---|
| A: Minimal harness | Basic while loop, system prompt, and raw shell/file tools | Capability floor of the frozen model |
| B: Engineered harness | Threshold compaction, progressive-disclosure skills, tool-error hints, loop guard, and deterministic verification hook | Value of hand-engineered runtime structure |
| C: Adaptive harness | Configuration B plus an automated trajectory-to-edit loop (offline AHE/Meta-Harness style or online Harness2 style) evaluated on held-out tasks | Whether automated edits beat hand engineering after accounting for compute and regressions |
Measure more than pass rate: track cost per solved task, total tokens (including optimizer tokens for C), wall-clock latency, tool-error rate, stuck-loop aborts, behavioral pass rate, and held-out generalization with variance reported per task. If Configuration B or C only beats Configuration A on training tasks, or doubles cost per solved task for a 2-point gain inside noise, that negative result is just as useful as a win.
Five rules for keeping a harness small
Build the smallest runtime that hits your reliability, safety, and cost constraints on real tasks.
- Start with a boring loop and a small tool set. Skip general-purpose agentic frameworks and code vector databases. Add a tool, middleware, or subagent only after recorded trajectories show a recurring failure mode it directly fixes.
- Put constraints in code, not longer prompts. Custom linters with remediation hints, strict sandboxes, JSON state files, and deterministic verification scripts beat prose instructions across both human-engineered and self-evolving ablations.
- Guard every edit with fast behavioral evals and measured noise. Run a sub-5-second suite of observable action checks on every change, measure baseline variance before optimizing, and keep a held-out set your optimizer never sees.
- Keep tool schemas lean and cache prefixes stable. Use progressive-disclosure skills (
SKILL.md) or deferred tool search once you cross roughly 15 tools, and keep session configuration fixed across turns so you do not bust 95%-plus prompt-cache hit rates (cache-safe rotation rules). - Periodically delete scaffolding when models upgrade. Re-test your harness against a minimal baseline after every major model release, and remove any workaround that no longer clears the noise band.
Sources
As of November 29, 2026:
- Barbaste et al. (pinned July 2026, posted September 2026): Harness Engineering: Anatomy, Architecture, and Evolution of Coding Agents (
arXiv:2609.00006) - Xu et al., Google Cloud AI Research (October 2026): Harness2: Recursive Agent Harnessing for an Open World (
arXiv:2610.14224) and google-research/harness2 - Lin et al. (2026): Agentic Harness Engineering: Observability-Driven Automatic Evolution of Coding-Agent Harnesses (
arXiv:2604.25850) - Lee et al., Stanford IRIS Lab (2026): Meta-Harness: End-to-End Optimization of Model Harnesses (
arXiv:2603.28052) - AutoHarness (2026): AutoHarness: Improving LLM Agents by Automatically Synthesizing a Code Harness (
arXiv:2603.03329) - Agrawal et al. (February 2026): GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learning (
arXiv:2507.19457) - OpenAI, Ryan Lopopolo (February 11, 2026): Harness engineering: leveraging Codex in an agent-first world
- Anthropic, Justin Young (November 26, 2025): Effective harnesses for long-running agents
- Google Developers Blog, Taylor Mullen and Christian Gunderman (September 9, 2026): The Anatomy of Harness Engineering: How to Evaluate, Iterate, and Guard AI Coding Agents
- Martin Fowler, Birgitta Böckeler (April 2026): Harness engineering for coding agent users
- Hugging Face, Lewis Tunstall (November 20, 2026): Introducing harness adapters: adapt your favorite model to your harness to improve performance and cost
- Owners Not Renters (2026): Putting Kimi K3 to the Claude Code test
- Repositories inspected directly (November 29, 2026): earendil-works/pi, anomalyco/opencode, openai/codex, OpenHands/OpenHands, OpenHands/software-agent-sdk, langchain-ai/deepagents, anthropics/claude-code (Mini-SWE-Agent details summarized from Barbaste et al.)
- Related Piece by Piece posts: Harness × Model: A Field Guide to Mixing Coding Agents in Late 2026, How We Make AI Agents Improve Themselves, Agent Collaboration Across Coding Agents

