How the suite works
The suite is the model provider. A script says what the model replies. The suite looks only at the requests the agent sends and the tool calls that really run.
A scripted model
Each scenario is a script and the checks that judge it.
A step can call a tool, send text or reasoning, fail with an HTTP error, or stream with a fault. A scenario can start the agent again to continue a session, switch the API, press Ctrl-C, or kill it. One run can feed several checks.
Side requests, such as for a title or a summary, get a neutral reply that keeps every fact.
The suite's tool logs each run, so the suite knows what ran, how often and for how long. As a command it can behave as real ones do: be killed, read its input, print bytes that are not UTF-8, or leave a child behind. As an MCP server it takes a profile per case, such as an older protocol version, paged tools or its own requests to the agent.
The spec
Every case comes from one numbered spec: what the suite checks and what it will check.
- 1 Requests 9 of 9
- 2 Streaming 7 of 7
- 3 Errors and retries 4 of 4
- 4 Prompt cache 4 of 4
- 5 Reasoning 4 of 4
- 6 Tool loop 17 of 17
- 7 Shell 11 of 11
- 8 Files 6 of 6
- 9 MCP 24 of 24
- 10 Media 5 of 5
- 11 Context 7 of 7
- 12 Sessions 4 of 4
- 13 Settings 6 of 6
- 14 Workspace trust 2 of 2
- 15 Command line 7 of 7
- 16 User actions 3 of 3
- 17 Interactive UI 4 of 4
Cases checked, of all cases in the area. Read the spec in SPEC.md.
Real API rules
The fake provider rejects what the real API would reject. A request that breaks a rule fails request.valid, which every case feeds, except a case that provokes such a request on purpose: its own check judges it.
- Each tool call gets a result in the next message, and each result answers a call.
- Anthropic tool call IDs are unique and tool results come first in their message.
- Anthropic thinking and redacted_thinking blocks in a tool loop come back unchanged and in order, with their signatures.
- Responses reasoning items come back with their encrypted content.
- Chat reasoning_content in a tool loop comes back as it came, as DeepSeek, Kimi, GLM and MiniMax require.
- Tool names match the API's pattern and Anthropic's are unique, Anthropic allows at most four cache breakpoints, and text blocks are not empty.
Four levels
What an agent must, should or may do, and what is only worth knowing.
- Required
- Rules every agent must keep, such as: a tool runs once, every result comes back, every request is one the real API accepts. Each check passes or fails.
- Recommended
- What a careful agent should do, such as wait as long as the provider asks. A gap is a missing safeguard, not a failure.
- Optional
- What an agent may support, such as images from tools. Not supported is fine; supported but broken is a fail.
- Info
- What each agent does where there is no single right answer, such as how it clips a long tool result.
- Not supported
- The agent or its recipe lacks what the case needs, such as a setting. Never a failure.
- Not measured
- The run did not reach what the check judges. Never a failure.
Cases
A scenario runs once per wire API the agent supports, per tool source, and per frontend. Each is a case.
Wire APIs
- Chat Completions
- OpenAI's /v1/chat/completions
- Responses
- OpenAI's /v1/responses
- Anthropic Messages
- Anthropic's /v1/messages
Tool sources
- MCP tool
- The suite's tool, served over MCP. Every agent loads it the same way.
- Own tool
- The agent's own shell tool, which runs the suite's tool as a command.
- No tool
- For checks of plain text, such as a stream that stops.
Frontends
The subject of a case decides where it runs. The agent loop runs headless. What only a person at the keyboard does runs in the TUI. User actions, such as Ctrl-C or continuing a session, run on both. A TUI tag marks a different answer.
- Headless
- One prompt per run, as scripts and CI use the agent.
- TUI
- The interactive UI in a 120 × 40 terminal. The suite types, presses keys and reads the screen.
The agents
Each agent runs at a pinned version, in the image that the resource bench builds.
| Claude Code | 2.1.332 | host |
| codex | 0.172.0 | host |
| fx | 0.0.17 | host |
| omp | 19.1.1 | host |
| opencode | 2.4.1 | host |
| pi | 1.6.0 | host |
| smelt | 0.8.1 | host |
The harness resource bench measures the CPU, memory and disk use of the same agents.
Add an agent
An agent is one TOML file. It only connects the agent to the suite.
harnesses/NAME.toml gives the command, the provider
URL per API, the MCP config, the agent's own tools and how to start its TUI.
It must not change the agent's policies, such as retries.
See the README for every field.
Run it yourself
With uv, Python 3.11 or newer, and podman.
uv run python -m harness_suite run --quick --harness NAME uv run python -m harness_suite run --output results/ID uv run python -m harness_suite report results/ID --details uv run python -m harness_suite export results/ID ID.json
For a new agent, start with --quick: each
required check once, headless, in about a minute, then a list of what to
fix first.
Each case keeps its requests, replies, tool runs and output. This page shows the run of 2026-11-26.