# What is harness engineering?

Canonical: https://revyl.com/blog/what-is-harness-engineering/
Published: 2026-10-15
Last updated: 2026-12-02

> Harness engineering is the work of building everything around a coding agent's model: guides, sensors and where it runs. Definitions, parts and limits.

Harness engineering is the work of building everything around a coding agent's model (the instructions, tools, checks and environment) so that the agent produces changes you can trust without watching each step. Birgitta Böckeler divides a harness into guides, which steer the agent before it acts, and sensors, which observe what it did so that it can correct itself. Revyl is verification infrastructure for cloud agents: it is where a harness sends the agent to run the product it just changed.

[OpenAI's account](https://openai.com/index/harness-engineering/) of building with Codex has one of each. The guide is a short AGENTS.md, about 100 lines, that works as a map and points the agent to deeper documentation in the repository. One sensor is a set of custom lints whose error messages carry the fix, so a failed check reaches the agent as an instruction.

## What is harness engineering in AI?

In AI, [harness engineering](https://revyl.com/glossary/harness-engineering/) is the design of what surrounds a model inside an agent: its instructions, its tools, the checks on its output and the place it runs. Thoughtworks' [Piyush Sonawane](https://www.thoughtworks.com/en-us/insights/blog/machine-learning-and-ai/ai-agent-harness) calls it "the practice of designing and improving the systems around an AI agent so that it can work more reliably, with better guidance, feedback, verification, and control." [OpenAI's account](https://openai.com/index/harness-engineering/) describes its team's job as "to design environments, specify intent, and build feedback loops that allow Codex agents to do reliable work."

Much of the work happens one mistake at a time. [Mitchell Hashimoto](https://mitchellh.com/writing/my-ai-adoption-journey) describes it as a habit: "anytime you find an agent makes a mistake, you take the time to engineer a solution such that the agent never makes that mistake again." In a coding agent, a fix can touch one or more of the four areas covered below: the guides the agent reads before it acts, such as AGENTS.md and skills; the tools it can call, such as MCP servers and scripts; the sensors that check its output, such as linters, tests and a run of the application; and the environment it runs in.

The word has other technical senses, such as a [cable harness](https://en.wikipedia.org/wiki/Cable_harness) of wires or a [test harness](https://en.wikipedia.org/wiki/Test_harness) of stubs and drivers. This page is about the harness around an AI model.

## What is in a harness?

A harness has no fixed list of parts. [Sonawane](https://www.thoughtworks.com/en-us/insights/blog/machine-learning-and-ai/ai-agent-harness) puts it this way: "There is no single component called a harness. It's better to think of it as a collection of things working together."

LangChain's [Vivek Trivedy](https://www.langchain.com/blog/the-anatomy-of-an-agent-harness) defines the harness widely: "A harness is every piece of code, configuration, and execution logic that isn't the model itself." Trivedy's post lists what that includes: "System Prompts", "Tools, Skills, MCPs + and their descriptions", "Bundled Infrastructure (filesystem, sandbox, browser)", "Orchestration Logic (subagent spawning, handoffs, model routing)" and "Hooks/Middleware for deterministic execution (compaction, continuation, lint checks)".

[HumanLayer's post](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents) covers the parts a team configures in a coding agent it already uses, and the table quotes it on each.

| Part | HumanLayer's description |
|---|---|
| `CLAUDE.md` and `AGENTS.md` | "These are markdown files at the top-level of your repository that get deterministically injected into the agent's system prompt by the harness." |
| MCP servers | "MCP servers are primarily for plugging tools into your coding agent to extend its capabilities beyond file I/O and bash commands." |
| Skills | "the agent only gets access to specific instructions, knowledge, or tools when it decides (or you decide for it) that it needs them" |
| Sub-agents | "What does work is using sub-agents for context control." |
| Hooks | "user-defined commands or scripts that are automatically executed when certain events occur and at various points of the agent's lifecycle" |
| Back-pressure | "verification mechanisms that allow the agent to check its own work" |

[Böckeler](https://martinfowler.com/articles/harness-engineering.html) separates the harness a coding agent ships with from the one its users build: "In coding agents, part of the harness is already built in (e.g. via the system prompt, or the chosen code retrieval mechanism, or even a sophisticated orchestration system). But coding agents also provide us, their users, with many features to build an outer harness specifically for our use case and system." Böckeler gives the outer harness two goals: "it increases the probability that the agent gets it right in the first place, and it provides a feedback loop that self-corrects as many issues as possible before they even reach human eyes."

## What are guides and sensors in a harness?

Guides and sensors are [Birgitta Böckeler's](https://martinfowler.com/articles/harness-engineering.html) names for the two kinds of control in a harness. In her article on martinfowler.com, guides, or feedforward controls, "anticipate the agent's behaviour and aim to steer it before it acts", and sensors, or feedback controls, "observe after the agent acts and help it self-correct." Böckeler argues that a harness needs both: "Separately, you get either an agent that keeps repeating the same mistakes (feedback-only) or an agent that encodes rules but never finds out whether they worked (feed-forward-only)."

Böckeler also sorts guides and sensors into computational controls, which are "deterministic and fast, run by the CPU", such as a test, a linter or a type checker, and inferential ones, which use a model for semantic analysis or AI code review and are "Slower and more expensive; results are more non-deterministic." The table gives four rows from Böckeler's list of examples, in her wording.

| Example | Direction | Type | Example implementation |
|---|---|---|---|
| Coding conventions | feedforward | Inferential | AGENTS.md, Skills |
| Code mods | feedforward | Computational | A tool with access to OpenRewrite recipes |
| Structural tests | feedback | Computational | A pre-commit (or coding agent) hook running ArchUnit tests that check for violations of module boundaries |
| Instructions how to review | feedback | Inferential | Skills |

The harness changes as the agent's mistakes show up, and Böckeler calls this the steering loop: "The human's job in this is to steer the agent by iterating on the harness. Whenever an issue happens multiple times, the feedforward and feedback controls should be improved to make the issue less probable to occur in the future, or even prevent it." That is close to the habit [Hashimoto](https://mitchellh.com/writing/my-ai-adoption-journey) describes above.

[Böckeler and Chris Ford](https://www.thoughtworks.com/en-us/insights/blog/generative-ai/harness-engineering-agent-feedback-exploring-ai-coding-sensors) ran an experiment with three kinds of sensor: static analysis ("ESLint and Semgrep"), structural checks ("Dependency Cruiser to enforce module boundaries") and test quality ("Coverage reports and mutation testing"). Böckeler and Ford report: "We found that when the coding agent was equipped with sensors that give it feedback on code quality, it was able to improve quality over time e.g. increasing test coverage."

### What do guides and sensors look like in practice?

In the table below, the sorting into guides and sensors is ours, and the quoted words in each cell are the source's.

| Account | A guide it describes | A sensor it describes |
|---|---|---|
| [OpenAI](https://openai.com/index/harness-engineering/) | "A short AGENTS.md (roughly 100 lines) is injected into context and serves primarily as a map, with pointers to deeper sources of truth elsewhere." | "Because the lints are custom, we write the error messages to inject remediation instructions into agent context." |
| [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents) | "Our CLAUDE.md is under 60 lines." | "When Claude stops, it runs our biome formatter and TypeScript type checks. If there are errors, they are raised to Claude. If not, the script exits silently." |
| [The Claude Code team, as described by Addy Osmani](https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/) | "To codify how to start the simulator or run your app, create a skill called verify." | "Running the app end to end matters more than tests. You wouldn't ship an iOS change without trying it in a simulator, and the same goes for Claude." The feedback is the behavior the agent observes when the app runs. |

Böckeler calls sensors "Particularly powerful when they produce signals that are optimised for LLM consumption, e.g. custom linter messages that include instructions for the self-correction". OpenAI's lint messages in the table above are a signal of that kind.

## Which sensor tells you the running application works?

It is a sensor that runs the application and looks at the result. Linters, type checkers and structural tests read the code instead. [Böckeler](https://martinfowler.com/articles/harness-engineering.html) sorts harnesses into three categories by what they regulate: maintainability, architecture fitness and behavior. Of the third, Böckeler writes: "This is the elephant in the room - how do we guide and sense if the application functionally behaves the way we need it to?"

Böckeler describes what most people who give their agents high autonomy do: "Check if the AI-generated test suite is green, has reasonably high coverage, some might even monitor its quality with mutation testing. Then combine that with manual testing." Böckeler's verdict: "This approach puts a lot of faith into the AI-generated tests, that's not good enough yet."

Other published accounts describe checks and tools for observing the agent's work:

- [Osmani](https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/), writing for the Claude Code team: "Claude can test the whole app the way a human or QA engineer would."
- [OpenAI](https://openai.com/index/harness-engineering/): "We also wired the Chrome DevTools Protocol into the agent runtime and created skills for working with DOM snapshots, screenshots, and navigation."
- [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents) lists "UI interaction and testing integrations (playwright, agent-browser, etc)" among its codebase's verification mechanisms.
- [Trivedy](https://www.langchain.com/blog/the-anatomy-of-an-agent-harness): "Tools like browsers, logs, screenshots, and test runners give agents a way to observe and analyze their work."
- [Hashimoto's](https://mitchellh.com/writing/my-ai-adoption-journey) example of a harness tool is "scripts to take screenshots, run filtered tests, etc etc."
- [Prithvi Rajasekaran of Anthropic](https://www.anthropic.com/engineering/harness-design-long-running-apps), in a post on harness design: "the evaluator used the Playwright MCP to click through the running application the way a user would, testing UI features, API endpoints, and database states."

How a coding agent proves that its change works on the running application is the next question, taken up in [what agent verification is](https://revyl.com/blog/what-is-agent-verification/).

### Why check the running application inside the agent's loop?

The check belongs inside the loop because an agent that can run its change and see the result can fix a wrong one before a person is asked to review it. [Böckeler and Ford](https://www.thoughtworks.com/en-us/insights/blog/generative-ai/harness-engineering-agent-feedback-exploring-ai-coding-sensors) say of sensors: "They provide a loop for the agent to self-correct before a human even looks at the code." HumanLayer states it as a correlation: "your likelihood of successfully solving a problem with a coding agent is strongly correlated with the agent's ability to verify its own work."

Böckeler's article on martinfowler.com has a section headed "Timing: Keep quality left", and the reason it gives is cost: "You want to have checks as far left in the path to production as possible, since the earlier you find issues, the cheaper they are to fix." For a team that already has CI, Böckeler said on a [Thoughtworks podcast episode](https://www.thoughtworks.com/insights/podcasts/technology-podcasts/what-harness-engineering), the shift left is to run its checks as sensors during the coding session too: "Why is this happening after the pull request is created? Shouldn't this be happening even before commit, or at least some of those things?"

Osmani ties it to how much work a person can hand over: "Verification loops are the building block that lets you delegate more work to Claude. Without them, you can really only run one or two Claudes at a time, because you have to check everything yourself. With them, you can run dozens or hundreds in parallel." A [claude.dev post on how the Claude Code team does code review](https://claude.dev/blog/solving-code-review-at-anthropic/) describes the order of events: "Most changes have been reviewed and fixed by Claude at least once before a human is asked to look."

OpenAI's account starts with the people doing the checking: "As code throughput increased, our bottleneck became human QA capacity." The team made its app "bootable per git worktree, so Codex could launch and drive one instance per change", and OpenAI reports what followed: "This enabled Codex to reproduce bugs, validate fixes, and reason about UI behavior directly."

HumanLayer keeps passing checks out of the agent's context. When its agent ran the full test suite after every change, HumanLayer writes, "4,000 lines of passing tests would flood the context window", and it now surfaces only errors, with builds handled the same way: "success is silent, and only failures produce verbose output."

Revyl's customer story about [Parrot](https://revyl.com/customers/parrot/), a team that runs a mobile software factory, names the hard part as "knowing whether the change actually works once it's running on a device", and says of that check: "This verification is what lets the coding agents take on much longer tasks and do them in a more token-efficient manner."

### Where does a harness send the agent to run the application?

It sends the agent to a place where the application can be built, run and tested. Trivedy counts that choice as part of the harness: "Deciding where the agent runs, what tools are available, what it can access, and how it verifies its work are all harness-level design decisions." [AI Engineer's write-up of a talk by Dex Horthy](https://ai.engineer/talks/-NFMsM2y0Vk-12-rules-software-factory-that-doesnt-ship) states the requirement for a mobile app: "For an iOS app, the agent needs an environment where it can build, run, and test the app."

Where the sandbox runs decides which sensors a harness can use. In its [Codex sandbox post](https://openai.com/index/inside-the-codex-sandbox/), OpenAI considers an iOS project on a Mac with Codex confined to Docker: "Codex would not be able to run the iOS build toolchain composed of native Mac executables, nor could it launch the iPhone simulator to run the code." [Shopify](https://shopify.engineering/remote-dev) "set up a fleet of remote Macs with our development environment and iOS simulators" for its agent River, and found that the environment needed a guide to go with it. River kept assuming that an iOS build could not run on Linux, so it wrote code without checking the results until Shopify added a skill that teaches agents how to test a change and prove it works.

Revyl is a place a harness can send the agent. The sensor there is a validation: `revyl device validation` checks one expected outcome in a running session, and Revyl's [command reference](https://docs.revyl.com/reference/cli) notes that a false or missing verdict exits non-zero, which gives a hook or a script in the harness a signal to act on. To check a new build of a mobile app, the agent has Revyl build it in the cloud with `revyl build` ([mobile quickstart](https://docs.revyl.com/devices/quickstart)) and drives the app with [device controls](https://docs.revyl.com/devices) before the validation; afterwards, the session's report holds the step results and the screenshots and logs it captured, and a reviewer can play the video when one was recorded.

[Proof of changes](https://docs.revyl.com/agents/proof) is the sensor on the pull request: by default, once a team turns it on, every pull request with a build gets a proof status with a verdict per build target, in a single Revyl comment that updates as new commits land, and a web, iOS or Android proof that exercised the change also shows a verification confidence score from 1/5 to 5/5, a list of what it covered, screenshots and a link to the session recording that opens without a login. For a harness owner with Proof of changes on, a proof that exercised the change puts visual evidence and a real run of the software on its pull request, so the reviewer and the agent have the same grounds for trusting that change. Our article on AI software factories sets out [how Revyl puts verification in the loop, in five steps](https://revyl.com/blog/ai-software-factory/#how-does-revyl-put-verification-in-the-loop).

### Which environments can the agent develop in?

On Revyl, a harness can send its agent to four kinds of environment: web browsers, iOS simulators, Android emulators and macOS computers. An agent can develop in these environments, and a harness can run a sensor there in the middle of a change: in the [dev loop](https://docs.revyl.com/dev-loop), `revyl dev` runs a local mobile app on a cloud iOS simulator or Android emulator while the agent edits, with hot reload for most JavaScript and TypeScript changes in Expo and React Native apps and, for other stacks, a rebuild and reinstall when a change needs a new binary; for a web app the agent [starts a session on a preview URL](https://docs.revyl.com/quickstart). For each environment in more detail, see [where agents develop and run the product](https://revyl.com/blog/ai-software-factory/#where-do-agents-develop-and-run-the-product).

A [Revyl computer](https://docs.revyl.com/computers) gives a harness a macOS workspace where an agent builds, runs and tests apps, with Xcode and the iOS Simulator, Chrome, and Safari installed. The agent runs commands in it with `revyl computer exec` and works with its files from the CLI, so what a harness checks there can be a command-line tool, a build or a test run as well as an app. Revyl computers, macOS workspaces where agents build and test apps, come with Pro: add a card to unlock them, and the 1,200 free device minutes a month still cover their sessions.

### What is the smallest sensor a harness can call?

The smallest one we can show is a script that starts one session, gives it one instruction, checks one validation and exits. You can start building your software factory on Revyl for free: the Free plan includes up to 1,200 free device minutes a month on iOS, Android and web, with no card ([Revyl pricing](https://revyl.com/pricing/)).

You need the [Revyl CLI](https://docs.revyl.com/install), [signed in](https://docs.revyl.com/authentication), and `jq`. Save this as `first-check.sh` and run it with `bash first-check.sh`:

```bash
#!/usr/bin/env bash
set -euo pipefail
SESSION_ID=$(revyl device start --platform ios --no-open --json \
  | jq -er '.session_id | select(type == "string" and length > 0)')

finish() {
  local rc=$?
  if revyl device stop --session-id "$SESSION_ID" --json | jq -e '.stopped == true' >/dev/null; then
    revyl device report --session-id "$SESSION_ID" --json > report.json || { [ "$rc" -ne 0 ] || rc=1; }
  else
    echo "Session $SESSION_ID has not confirmed it stopped. Retry: revyl device stop --session-id $SESSION_ID --json" >&2
    [ "$rc" -ne 0 ] || rc=1
  fi
  exit "$rc"
}
trap finish EXIT

revyl device instruction "Open the Settings app" --session-id "$SESSION_ID"
revyl device validation "The Settings app is open" --session-id "$SESSION_ID"
```

As a sensor, the script gives a harness an exit status to branch on. Once the start has returned a session ID, it sets an exit trap that stops that session and saves `report.json` only after the stop reports `"stopped": true`; an unconfirmed stop or a failed report command also makes it exit non-zero, and an earlier failure keeps its own status. It checks the simulator's own Settings app, so it needs no build. We ran this sensor on December 2, 2026 from a Linux cloud machine signed in with an API key, using revyl-cli v0.2.128 on an iPhone 18 Pro Max simulator with iOS 27.0: the instruction and the validation both passed, the stop was confirmed, and the saved report shows a completed 55-second session and its video. [The line-by-line walkthrough of `first-check.sh`](https://revyl.com/blog/ai-software-factory/#how-do-you-run-a-first-check-on-revyl) covers the session ID, the exit trap and `--no-open`.

On December 1, 2026, with revyl-cli v0.2.116 from a Linux cloud machine signed in with an API key, we also ran this kind of sensor on a cart change in [Bug Bazaar](https://github.com/RevylAI/bug-bazaar), a sample React Native shop app running in `revyl dev` on a cloud iOS simulator: its validation returned false on the first check and, after the script copied the corrected file into place and the app reloaded, true on the second. [The worked example of the loop on a real change](https://revyl.com/blog/ai-software-factory/#what-does-the-loop-look-like-on-a-real-change) has that run's commands and a clip from the simulator's recording.

The sources quoted on this page run checks from a skill or from a hook. Osmani's post for the Claude Code team advises writing the steps into a skill called verify, and adds: "Claude knows to use the verify skill before committing changes." HumanLayer's hook runs a formatter and TypeScript type checks when the agent stops, and on failure its exit status sends the agent back to work: "exit code 2 tells the harness to re-engage the agent so it fixes them before finishing".

[Verify](https://docs.revyl.com/verify) is an open-source SDK for checks written as natural-language instructions and validations, which you can call "from a script, a test runner, a coding-agent loop, or CI." Its initializer also sets up the coding agent: it adds a short Verify section to `AGENTS.md`, or to `CLAUDE.md` when the repository has one and no `AGENTS.md`.

## Harness engineering vs context engineering: what is the difference?

Context engineering decides what the model sees. Harness engineering builds the system that delivers it and checks what comes back. The writers quoted here treat the two as overlapping.

[Anthropic](https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents) defines context engineering this way: "Context engineering refers to the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference, including all the other information that may land there outside of the prompts." [Böckeler](https://martinfowler.com/articles/exploring-gen-ai/context-engineering-coding-agents.html) quotes a shorter one from her colleague Bharani Subramaniam: "Context engineering is curating what the model sees so that you get a better result."

On how the two relate, Böckeler writes in ["Harness engineering for coding agent users"](https://martinfowler.com/articles/harness-engineering.html): "Context engineering provides us with the means to make guides and sensors available to the agent. Engineering a user harness for a coding agent is a specific form of context engineering." [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents): "We view harness engineering as a subset of context engineering."

| Term | What it works on | A definition from the sources |
|---|---|---|
| Prompt engineering | The instructions written for the model | Anthropic: "Prompt engineering refers to methods for writing and organizing LLM instructions for optimal outcomes" |
| Context engineering | What the model sees during a run | Subramaniam, quoted by Böckeler: "Context engineering is curating what the model sees so that you get a better result." |
| Harness engineering | The system around the model, including the checks on its output | [Sonawane](https://www.thoughtworks.com/en-us/insights/blog/machine-learning-and-ai/ai-agent-harness): "Harness engineering is the practice of designing and improving the systems around an AI agent so that it can work more reliably, with better guidance, feedback, verification, and control." |

The middle column is our summary. The difference shows in what executes: a hook, a linter or a session on a simulator runs outside the model, and the harness can feed its result back as context.

## Is a harness the same as a software factory?

No. A harness surrounds the model inside one agent, and a software factory is the loop around many agent runs, from intake to delivery. [Will Larson](https://lethain.com/software-factory-experiment/) describes the factory in terms of the harness: "The software factory pattern is looping on a broad goal, and then relying on the harness to drive progress towards that goal." [Firecrawl's](https://www.firecrawl.dev/blog/ai-software-factory) definition draws the line at the agent: "An AI software factory is the system around a coding agent rather than the agent itself."

[Böckeler](https://martinfowler.com/articles/harness-engineering.html) finds sensors in Stripe's write-up about its Minions: pre-push hooks that run linters, and blueprints that integrate feedback sensors into the agent workflows. For the factory side, see [what an AI software factory is](https://revyl.com/blog/ai-software-factory/), [what a dark factory is](https://revyl.com/blog/what-is-a-dark-software-factory/), [how Stripe, Ramp and Shopify built theirs](https://revyl.com/blog/stripe-minions-ramp-inspect-shopify-river/), [how to build a software factory](https://revyl.com/blog/how-to-build-a-software-factory/) and [software factory platforms compared by layer](https://revyl.com/compare/software-factory-platforms-compared/).

## Which agent harness should you use?

Start with the harness your coding agent ships with, and add to it where the agent has gone wrong in your own codebase. Part of a harness is built into the agent already, as [Böckeler](https://martinfowler.com/articles/harness-engineering.html) notes above. [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents) lists what worked for its team, including "Starting simple and adding configuration only when the agent actually failed". [Osmani's](https://addyosmani.com/blog/agent-harness-engineering/) view: "The right harness for your codebase is shaped by your failure history. You can't download it."

[Surge's](https://surgehq.ai/blog/benchmarking-coding-agent-harnesses) advice from its benchmark, covered in the next section, is about elaborate multi-agent setups: "Benchmark it on your own tasks." [Steve Yegge](https://yegge.ai/essays/the-shape-of-things-to-come/) is blunter about reusable harnesses: "I have given up on building reusable harnesses. Indeed I believe harnesses will all soon be bespoke, and the people trying to sell you one will all soon be bebroke." For the harnesses themselves, see [agent harnesses compared by what they can run and check](https://revyl.com/blog/best-agent-harness/).

## What are the limits of harness engineering?

A harness can add time and token costs, and two published measurements of what it returns came out differently. [Surge](https://surgehq.ai/blog/benchmarking-coding-agent-harnesses) reported in November 2026: "We benchmarked 4 coding-agent harness setups on 100 real software engineering tasks." In Surge's results, plain Claude Code at xhigh thinking effort scored 11.3 points higher than it did at medium effort, against 2 to 3 points for the most effective harness additions, and one setup cost eight times as much as the plain agent "without a statistically clear improvement in our experiment." Surge states the scope: "These results reflect particular configurations of one model on one distribution of engineering tasks."

[Naresh Jain](https://www.martinfowler.com/articles/are-harnesses-worth-the-cost.html), writing on martinfowler.com on October 13, 2026, compared agents building one API service with and without a harness and found that the answer depended on the model: "A frontier model, GPT-6 Sol, passed every external evaluation either way. But a cost-optimized model, GPT-6 Luna, succeeded in only 3 of 10 unharnessed runs and all 10 with the harness." [Trivedy](https://www.langchain.com/blog/the-anatomy-of-an-agent-harness) expects the boundary to move: "As models get more capable, some of what lives in the harness today will get absorbed into the model."

- [Böckeler](https://martinfowler.com/articles/harness-engineering.html), on what a sensor has to check against: "Correctness is outside any sensor's remit if the human didn't clearly specify what they wanted in the first place."
- [Rajasekaran](https://www.anthropic.com/engineering/harness-design-long-running-apps), on how the evaluator in his harness for long-running application development judged work in early runs, before he tuned its prompt: "Out of the box, Claude is a poor QA agent. In early runs, I watched it identify legitimate issues, then talk itself into deciding they weren't a big deal and approve the work anyway."
- [Dan Luu](https://danluu.com/ai-coding/), on asking an agent for a video of a bug: "The video made it look like Codex had reproduced the bug, but it was an artificial browser environment that was designed to create a fake repro, not the real environment." [Osmani's](https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/) rule for the check itself: "If a change can modify the check that judges it, the check is broken."
- [Horthy](https://github.com/humanlayer/advanced-context-engineering-for-coding-agents/blob/main/wsff.md), on what fast feedback leaves out: "Tests give you feedback in seconds, but the cost function of bad architecture is measured in weeks, months, maybe even years".
- [OpenAI](https://openai.com/index/harness-engineering/), on its own results: the agent behavior it describes "should not be assumed to generalize without similar investment".
- [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents), on the time tuning takes: "It is entirely possible to spend more time optimizing your coding agent setup than actually shipping code with it".

Böckeler's conclusion sets the aim lower than full autonomy: "A good harness should not necessarily aim to fully eliminate human input, but to direct it to where our input is most important."

## What else do people ask about harness engineering?

### Who owns the harness?

Probably both a platform team and each application team, on Böckeler's account. Asked on a [Thoughtworks podcast episode](https://www.thoughtworks.com/insights/podcasts/technology-podcasts/what-harness-engineering) whether platform teams or app teams should own the harness, Böckeler answered: "it's probably a combination of both, that you have something from some platform, some central skills that everybody can use. Then there's like stuff that you have in your own code base." [AI Engineer's write-up of Horthy's talk](https://ai.engineer/talks/-NFMsM2y0Vk-12-rules-software-factory-that-doesnt-ship) makes a similar split: "teams can share the infrastructure that runs the checks. The knowledge of which behaviors matter and how to test them still lives with the teams."

### Who coined the term harness engineering?

The earliest dated use we found is Mitchell Hashimoto's post ["My AI Adoption Journey"](https://mitchellh.com/writing/my-ai-adoption-journey) of February 5, 2026, where he wrote that he had "grown to calling this 'harness engineering,'" and [OpenAI](https://openai.com/index/harness-engineering/) put the term in an article title six days later. [HumanLayer](https://www.humanlayer.dev/blog/skill-issue-harness-engineering-for-coding-agents) credits LangChain's Viv Trivedy with coining it, so the sources we read don't settle who used it first.

### Can a harness check mobile apps, desktop apps and command-line tools?

Yes, when the agent has somewhere to run them. [The Claude Code team's](https://claude.dev/blog/how-the-claude-code-team-thinks-about-verification/) advice, in Osmani's words, names a route for each kind of change: "Ask it to use the Claude Chrome extension for web changes, an iOS or Android MCP for mobile, computer use for desktop, or to run the service locally for backend work." A Revyl session runs a mobile app on an iOS simulator or an Android emulator, and a Revyl computer is a macOS workspace where an agent builds, runs and tests apps. The software checked on that computer can be more than a desktop app: Revyl's [Proof on macOS](https://docs.revyl.com/agents/proof-mac) guide lists a web app's local dev stack in Safari, a desktop or Electron app, a command-line tool and an iOS Simulator build, and a proof run on it reports back on the pull request with screenshots and command transcripts. For the desktop route, see [computer use agents: where they run and how to verify them](https://revyl.com/compare/computer-use-agents/).

### What else does Revyl do?

Revyl is verification infrastructure for cloud agents. A harness is one of several callers: agents and people use Revyl sessions from the dashboard, the CLI, MCP or a proof run. The agent a harness sends to Revyl can develop there as well as check: a web app runs in a browser session, `revyl dev` keeps a mobile app running on a cloud iOS simulator or Android emulator while the agent edits, and a Revyl computer is a macOS workspace where an agent builds, runs and tests apps. For web, iOS and Android apps, what those sessions observe feeds Revyl Atlas, a system of record for the system of action: a harness's agents act, and Atlas holds the record of what the product did when it ran. People on the team open it in the dashboard to check coverage or follow a product flow, and a harness can have its agent query it with `revyl atlas` before it changes a screen.

## Beyond harness engineering: what else Revyl runs

The sensor on this page runs on one of Revyl's iOS simulators; Revyl's CLI and MCP also start sessions in web browsers and on Android emulators, and the CLI starts macOS computers, workspaces where an agent builds, runs and tests apps. Whatever sensor a harness runs in a browser, simulator or emulator session, that session leaves a report with the recorded steps and the artifacts it captured, video included when one was recorded, and for web, iOS and Android apps Atlas keeps the screens, states and transitions Revyl has observed, each tied to its evidence. By default, once the team that owns a harness turns [Proof of changes](https://docs.revyl.com/agents/proof) on, every pull request with a build gets a proof status on the pull request itself, in one comment that updates as new commits land.

A team can start building its software factory on Revyl for free: the Free plan includes up to 1,200 free device minutes a month on iOS, Android and web, with no card. Revyl computers, macOS workspaces where agents build and test apps, come with Pro: add a card to unlock them, and the 1,200 free device minutes a month still cover their sessions. For a harness that runs several agents at once, [Revyl's pricing page](https://revyl.com/pricing/) lists 2 devices at once on the Free plan and 10 on Pro, and it lists the Free plan's seats as unlimited developers and agents, with no seat fees. Start with the `first-check.sh` script above. If your harness is part of a platform that runs agents for its own customers, a [partner integration](https://docs.revyl.com/partners) "lets your platform give each of your customers a Revyl workspace and run Revyl for them." If your harness is for your own team's agents, [book a call with us](https://cal.com/landseer-enga/book-a-demo).

Related reading: [what an AI software factory is](https://revyl.com/blog/ai-software-factory/), [why the unit of work is becoming a verified change in product behavior](https://revyl.com/blog/the-runtime-platform-for-cloud-agents/), [cloud agents compared](https://revyl.com/compare/cloud-agents/), [cloud coding agents and what each one can verify](https://revyl.com/blog/cloud-coding-agents/), [agent sandboxes explained](https://revyl.com/compare/agent-sandboxes-explained/) and [PR verification for coding agents compared](https://revyl.com/compare/pr-verification-for-coding-agents-compared/).

## Start on Revyl

Revyl is verification infrastructure for cloud agents.

- Web browsers, iOS simulators, Android emulators and macOS computers.
- Atlas: the behavior observed in web, iOS and Android sessions.
- Free plan: Up to 1,200 free device minutes every month, no card, 2 devices at once, and unlimited developers and agents, no seat fees.
- Pro: pay as you go, no monthly fee, with 10 devices at once.
- Revyl computers, macOS workspaces where agents build and test apps, come with Pro. Add a card to unlock them, and your 1,200 free minutes still cover their sessions.
- Proof of changes, once enabled: by default, a status on each PR with a build.
- A proof that exercised the change shows its score and screenshots, and on web, iOS and Android its recording.
- Agents include Claude Code, Codex, GitHub Copilot coding agent, Devin and Amp. See Agents and MCP for setup instructions.
- They connect through the Revyl CLI, MCP server, skills or plugin.

Sources: [Pricing](https://revyl.com/pricing/) · [Proof of changes](https://docs.revyl.com/agents/proof) · [Agents and MCP](https://docs.revyl.com/agents/mcp)

One command installs the Revyl CLI:

```sh
curl -fsSL https://revyl.com/setup | sh
```

[Start free](https://app.revyl.ai/signup) · [Pricing](https://revyl.com/pricing/)

Building agents into your own product? [Integrate Revyl into your agent platform](https://docs.revyl.com/partners).
