---
title: "Agent harnesses Stack"
url: https://stackassay.com/stacks/agent-harnesses/
updated: 2026-11-20
publisher: Stack Assay
license: https://creativecommons.org/licenses/by/4.0/
---

# Agent harnesses Stack

Sold by Stack Assay: weigh what follows with that in mind. Prices: https://stackassay.com/pricing/

Text and data under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): quote it with a link to the page.

Runs four coding harnesses on your own tasks in a locked-down container, behind a gateway that holds your model key, and reports what each solved task cost.

Status: available. Measured as of 2026-11-20. Track: [Agent harnesses](https://stackassay.com/tracks/agent-harnesses.md). Latest version 0.5.0 (2026-12-01); upgrade with `npm i @stackassay/stack-agent-harnesses@latest`.

|  | The category | This Stack |
| --- | --- | --- |
| What it is | The software around a model that makes it a coding agent, meaning the tool loop, memory, permissions, and a way to drive it from code. | A test bench for harnesses that runs on your own tasks, the `harness` command. |
| What it does | Given a prompt and a folder, it reads files, runs commands and edits code until the task is done, streaming what it does as it goes. | Runs each harness on your tasks, every run in a fresh locked-down container, grades the result with checks the agent never sees, and reports tasks solved, cost per solved task, time and cache hits. It also checks that each harness can be driven safely from code. |
| Why you need it | Public benchmarks disagree about how much the harness matters, and none run on your code. In the lab, on one model, every harness solved every task while cost differed up to five times and prompt caching ranged from none to over 90%. | Your own numbers before you commit. You get cost per solved task, caching and control on your tasks, with each agent sealed off from your machine and your key. |
| What you are buying | A harness (Claude Code, Ori Code, Hermes, mini-swe-agent, OpenCode) and its maker’s claims about it, or weeks building your own sandbox, grader and cost tracking. | That sandbox, grader and meter, built and measured. It has four harnesses unmodified and pinned (Claude Code by default, Ori Code to compare), a gateway that holds your key, checks you can prove before trusting them, and 14 worked tasks to start. It is not a new agent. As an arm in its lab it solved 18 of 18 harder tasks at 0.34¢ each. |
| Why now | Harnesses run any model through one gateway now, and they ship fast. Claude Code updates daily and Hermes weekly. The behaviour you chose last month may not be the one you run today. | Measure now, and again when a release of the Stack pins newer harness versions, in minutes and for cents, so a harness change shows up in your numbers rather than in your bill. |
| Who it is for | Teams building on a coding agent, or choosing one for their developers. | A team picking a harness before it builds on one, or checking what a newer harness version does to cost and behaviour on its own tasks. |

### One assay, start to finish

1. You write tasks the way the lab does, with a prompt, starting files, and a hidden check the agent never sees. `harness validate` proves each check fails the start, passes a reference answer and catches planted wrong ones, offline and free.
2. `harness assay` prints the plan and its estimate, then runs one pilot before anything else. Each harness gets a fresh container per run, with no secrets, a read-only root, and no network except a gateway that holds your key.
3. Each run is graded offline in a separate container and metered from the outside. Calls come from the gateway’s log, and tokens and cost from your provider’s own records, never from the harness’s report.
4. You get one row per harness, with tasks solved, cost per solved task, median time and the share of prompt tokens served from cache, plus `harness probe` for JSON events, honest exit codes, stopping and resuming.

### Defaults, each set by a measured result

| Default | Why | Experiment |
| --- | --- | --- |
| Claude Code by default, Ori Code to compare | On one model, all four harnesses solved all 14 tasks; Claude Code cost 0.37¢ per solved hard task and Ori Code 0.39¢, and both met all four control guarantees. | https://stackassay.com/labs/harnesses/#cost |
| Check caching per harness | Hermes sent prompts of similar size to Claude Code’s, got no cache hits and cost about 3× as much. | https://stackassay.com/labs/harnesses/#cost |
| Isolation from outside the harness | No harness defence was ever exercised in 42 planted-instruction runs; the container and the key-holding gateway contained every harness unmodified. | https://stackassay.com/labs/harnesses/#injection |
| A fresh home for every run | Memory carried across sessions in three different places (global, per path, in the repo), so it is product data to manage, not a default. | https://stackassay.com/labs/harnesses/#memory |

### Measured as an arm in its own lab

Its own `harness assay` command on the lab’s six harder tasks, three runs each, with its default (Claude Code on Claude Haiku 5.5), beside the four harnesses on the same tasks.

| Measure | Value | Experiment |
| --- | --- | --- |
| Solved the hidden check (six harder tasks, 3 runs each) | 18 of 18 | https://stackassay.com/labs/harnesses/#same-model |
| Model spend per solved task | 0.34¢ | https://stackassay.com/labs/harnesses/#cost |
| Prompt tokens served from cache | 94% | https://stackassay.com/labs/harnesses/#cost |
| Median time per run | 18.9 s | https://stackassay.com/labs/harnesses/#same-model |

### Teams already doing this

Public accounts from companies that built this pattern themselves; figures as each source states them. These companies are not Stack Assay customers.

- **Spotify** (Streaming): Spotify tried several coding agents headless before one earned 1,500 merged pull requests. Over 1,500 pull requests merged into production, and a total time saving of 60 to 90% on complex migrations compared with writing the code by hand. Source: [Spotify Engineering, Background Coding Agents: Context Engineering (Honk, Part 2)](https://engineering.atspotify.com/2025/11/context-engineering-background-coding-agents-part-2), 2025-11-24.
- **Rakuten** (E-commerce): Rakuten cut feature time to market from 24 working days to 5 with a coding agent. Average time to market for new features fell from 24 working days to 5, a 79% drop, and a single autonomous run lasted seven hours. Source: [Anthropic customer story, Rakuten accelerates development with Claude Code](https://claude.com/customers/rakuten), 2026. Published by the agent’s vendor.
- **Cisco** (Networking): Cisco raised defect-fix throughput 10 to 15 times with a command-line coding agent. A 10 to 15 times increase in defect-resolution throughput, and more than 1,500 engineering hours saved each month from the build work. Source: [OpenAI customer story, Cisco and OpenAI redefine enterprise engineering with Codex](https://openai.com/index/cisco/), 2026-05-27. Published by the agent’s vendor.

### What it needs

- Docker, on a laptop, a VM or a CI runner
- Your own OpenRouter key (a dedicated one with a credit limit)
- A few tasks with hidden checks, or the 14 worked examples to start

### Set up, after `npm i`

```sh
npx harness init
npx harness image
npx harness doctor
npx harness validate --examples hard
```
