# Opus 4.8 medium vs Opus 5 medium

Stet publishes a public search API over its indexed pages; the guide is at https://www.stet.sh/agents/agent-access.

Source: https://www.stet.sh/leaderboard/compare/opus-4-8-medium-vs-opus-5-medium
Source observed: 2026-11-19T11:08:23.963Z
Last checked: 2026-11-19T11:08:23.963+00:00
Indexed: 2026-11-19T11:17:13.008+00:00

---

# Opus 4.8 medium vs Opus 5 medium

We compare two coding-agent setups on 24 merged changes from our private `Stet-AI/stet` repository. Opus 5 medium leads on cost and is slightly faster; we found no clear quality difference.

## Headline results

- **Quality:** Even. Opus 4.8 medium won 1 head-to-head, Opus 5 medium won 7, 14 were tied, and 2 were undecided.
- **Speed:** Opus 5 medium was slightly faster: **23.2 min vs 23.3 min per task**.
- **Cost:** Opus 5 medium was **1.1× cheaper: $6.78 vs $7.68 per task**.

## What we compared

- One real, private repository: `Stet-AI/stet`; these are not public benchmark scores.
- 24 merged changes, each run end to end from the repository state before the change.
- The repository’s tests and judges graded each patch against the merged change.
- We measured quality, cost, and time on real agent work; the sample is smaller than public benchmarks.

Data: **November 19, 2026**.

## Stet score and quality

| Setup | Harness | Reasoning | Rank | Stet score | 95% range |
| --- | --- | --- | --- | --- | --- |
| Opus 4.8 medium | `claude-code` | medium | 13 of 18 | 46.8 | 38.0–55.7 |
| Opus 5 medium | `claude-code` | medium | 2 of 18 | 61.4 | 52.6–70.3 |

The 95% score ranges overlap. Stet score is a setup’s average chance of beating another setup on a task, from 0 to 100; 50 is even with the field.

### Other quality measures

| Metric | Opus 4.8 medium | Opus 5 medium |
| --- | ---: | ---: |
| Code review pass rate | 33% (24 tasks) | 38% (24 tasks) |
| Checklist score | 0.78 (24 tasks) | 0.89 (24 tasks) |
| Equivalence rate | 46% (24 tasks) | 54% (24 tasks) |

These measures are not part of the headline Stet score and have no confidence interval; a small gap may be noise.

## Task-by-task results

Opus 4.8 medium solved no tasks that Opus 5 medium did not. Opus 5 medium solved 2 that Opus 4.8 medium did not; both solved 13; neither solved 7. Among the 13 tasks both solved, judges preferred Opus 5 medium’s patch on 5, Opus 4.8 medium’s on 1, and called 7 even.

### Only Opus 4.8 medium solved: 0

None.

### Only Opus 5 medium solved: 2

- `stet-2450ca2d` — 2 changed lines in 1 file; judges preferred Opus 5 medium’s patch.
- `stet-commit-2826765e` — 1,420 changed lines in 19 files; judges preferred Opus 5 medium’s patch.

### Both solved: 13

- `stet-43493c52` — 4 lines, 1 file; judges preferred Opus 4.8 medium’s patch.
- `stet-15439c21` — 5 lines, 2 files.
- `stet-3169aefa` — 6 lines, 1 file.
- `stet-89dfbc27` — 9 lines, 1 file; judges preferred Opus 5 medium’s patch.
- `stet-232b50ba` — 10 lines, 1 file; judges preferred Opus 5 medium’s patch.
- `stet-5276aa3f` — 23 lines, 2 files.
- `stet-6f84e978` — 23 lines, 1 file.
- `stet-b28f4fe7` — 29 lines, 1 file.
- `stet-66762b4c` — 84 lines, 1 file.
- `stet-commit-f0caded9` — 113 lines, 4 files; judges preferred Opus 5 medium’s patch.
- `stet-commit-5d766dde` — 218 lines, 2 files.
- `stet-commit-bbbbae09` — 941 lines, 7 files; judges preferred Opus 5 medium’s patch.
- `stet-commit-f8ae1177` — 1,312 lines, 9 files; judges preferred Opus 5 medium’s patch.

### Neither solved: 7

`stet-commit-e928166f` (149 lines, 2 files); `stet-commit-30506f8e` (476 lines, 17 files); `stet-commit-5e075641` (481 lines, 3 files); `stet-commit-a8716b88` (564 lines, 10 files); `stet-commit-342d0ac0` (640 lines, 8 files); `stet-commit-87814583` (763 lines, 8 files); `stet-commit-e41c2e2d` (977 lines, 5 files).

A task is solved when its tests passed or a judge found the fix equivalent to the merged change. Stet score also weighs code quality, so it can order setups differently. Two of 24 tasks are excluded because one setup has no scored result.

## All 22 compared tasks

| Task | Opus 4.8 medium | Opus 5 medium | Solved by | Better patch |
| --- | --- | --- | --- | --- |
| `stet-89dfbc27` · 9 lines, 1 file | Passed tests · $0.83 · 11.6 min | Passed tests · $1.53 · 32.6 min | Both | Opus 5 medium |
| `stet-b28f4fe7` · 29 lines, 1 file | Passed tests · $1.09 · 18.0 min | Passed tests · $0.69 · 19.4 min | Both | Even |
| `stet-232b50ba` · 10 lines, 1 file | Passed tests · $1.43 · 9.1 min | Passed tests · $1.21 · 7.9 min | Both | Opus 5 medium |
| `stet-3169aefa` · 6 lines, 1 file | Passed tests · $1.06 · 2.6 min | Passed tests · $1.09 · 9.2 min | Both | Even |
| `stet-5276aa3f` · 23 lines, 2 files | Passed tests · $1.15 · 6.7 min | Passed tests · $1.03 · 7.7 min | Both | Even |
| `stet-66762b4c` · 84 lines, 1 file | Passed tests · $1.94 · 26.5 min | Passed tests · $1.74 · 36.7 min | Both | Even |
| `stet-commit-bbbbae09` · 941 lines, 7 files | Passed tests · $12.48 · 29.1 min | Passed tests · $8.24 · 18.7 min | Both | Opus 5 medium |
| `stet-commit-5d766dde` · 218 lines, 2 files | Equivalent · $3.10 · 9.9 min | Equivalent · $3.36 · 11.0 min | Both | Even |
| `stet-43493c52` · 4 lines, 1 file | Passed tests · $0.85 · 4.3 min | Passed tests · $0.52 · 2.3 min | Both | Opus 4.8 medium |
| `stet-commit-f0caded9` · 113 lines, 4 files | Equivalent · $4.29 · 39.9 min | Passed tests · $3.43 · 10.8 min | Both | Opus 5 medium |
| `stet-15439c21` · 5 lines, 2 files | Passed tests · $1.57 · 16.3 min | Passed tests · $0.53 · 4.9 min | Both | Even |
| `stet-commit-f8ae1177` · 1,312 lines, 9 files | Passed tests · $28.54 · 45.5 min | Passed tests · $18.97 · 27.5 min | Both | Opus 5 medium |
| `stet-2450ca2d` · 2 lines, 1 file | Failed · $0.92 · 14.4 min | Passed tests · $0.82 · 21.7 min | Opus 5 medium only | Opus 5 medium |
| `stet-commit-342d0ac0` · 640 lines, 8 files | Failed · $10.51 · 60.2 min | Failed · $5.56 · 16.4 min | Neither | Even |
| `stet-6f84e978` · 23 lines, 1 file | Passed tests · $1.35 · 6.1 min | Passed tests · $1.39 · 34.9 min | Both | Even |
| `stet-commit-5e075641` · 481 lines, 3 files | Failed · $13.27 · 28.8 min | Failed · $10.93 · 31.1 min | Neither | Even |
| `stet-commit-2826765e` · 1,420 lines, 19 files | Failed · $18.37 · 63.2 min | Equivalent · $17.19 · 30.1 min | Opus 5 medium only | Opus 5 medium |
| `stet-commit-a8716b88` · 564 lines, 10 files | Failed · $26.24 · 38.3 min | Failed · $12.40 · 43.1 min | Neither | Even |
| `stet-commit-e928166f` · 149 lines, 2 files | Failed · $3.27 · 24.9 min | Failed · $5.94 · 25.2 min | Neither | Even |
| `stet-commit-30506f8e` · 476 lines, 17 files | Failed · $19.23 · 38.0 min | Failed · $15.36 · 43.4 min | Neither | Even |
| `stet-commit-87814583` · 763 lines, 8 files | Failed · $7.94 · 16.5 min | Failed · $14.95 · 33.3 min | Neither | Even |
| `stet-commit-e41c2e2d` · 977 lines, 5 files | Failed · $4.71 · 13.9 min | Failed · $12.80 · 38.3 min | Neither | Even |

## Cost and time

Among the 22 compared tasks, Opus 5 medium cost less on 15 and Opus 4.8 medium on 7.

| Setup | Mean cost | Median cost | Mean time | Median time |
| --- | ---: | ---: | ---: | ---: |
| Opus 4.8 medium | $7.46 | $3.18 | 23.8 min | 17.3 min |
| Opus 5 medium | $6.35 | $3.40 | 23.0 min | 23.5 min |

Opus 4.8 medium finished faster on 14 tasks; Opus 5 medium on 8.

## Where each setup may fit

These groups contain fewer tasks than the overall standings.

### Small fixes

10 tasks, 2–84 changed lines in 1–2 files. Opus 5 medium solved 10/10 versus 9/10 at 1.2× lower cost per task; Opus 4.8 medium was 1.5× faster.

|  | Opus 4.8 medium | Opus 5 medium |
| --- | ---: | ---: |
| Solved | 9/10 | 10/10 |
| Cost/task | $1.22 | $1.05 |
| Agent time/task | 11.6 min | 17.7 min |

### Large, cross-cutting changes

14 tasks, 113–1,420 changed lines in up to 19 files. Opus 5 medium solved 5/12 versus 4/12 at 1.2× lower cost per task and was 1.2× faster.

|  | Opus 4.8 medium | Opus 5 medium |
| --- | ---: | ---: |
| Solved | 4/12 | 5/12 |
| Cost/task | $12.66 | $10.76 |
| Agent time/task | 34.0 min | 27.4 min |

## Side by side

| Metric | Opus 4.8 medium | Opus 5 medium |
| --- | --- | --- |
| Harness | `claude-code` | `claude-code` |
| Reasoning effort | medium | medium |
| Rank | 13 of 18 | 2 of 18 |
| Stet score | 46.8 (95% range 38.0–55.7) | 61.4 (95% range 52.6–70.3) |
| Solved | 13/24: 11 passed, 2 equivalent | 15/24: 13 passed, 2 equivalent |
| Cost/task | $7.68 | $6.78 |
| Agent time/task | 23.3 min | 23.2 min |

## Research links

- [Cost per successful task ranked the coding agent that lost every head to head 1st](https://www.stet.sh/blog/cost-per-successful-task)
- [A benchmark mined from my own repo agreed with FrontierCode](https://www.stet.sh/blog/benchmark-agreed-with-frontier-code)
- [On 25 Stet Tasks, Opus 4.8 Wrote Smaller Patches. Opus 5 Searched Wider.](https://www.stet.sh/blog/opus-4-8-vs-opus-5-same-score-different-routes)

## Questions

**Which is better for coding?** We found no clear quality difference: Opus 5 medium won 7, Opus 4.8 medium won 1, 14 tied, and 2 were undecided. Opus 5 medium leads on cost and agent time: 1.1× cheaper and slightly faster.

**How did we test them?** Both coding agents worked on the same 24 merged changes in the private repository, starting from the real repository state before each change. Tests and judges compared each patch with the merged change; no public benchmark scores were used.

## Test your own repository

We replay merged changes, score quality above pass/fail, and deliver comparison reports through your agent. [Get started](https://www.stet.sh/private)

## About this data

The 24 tasks came from the private repository and the setups were part of leaderboard run `bmk_d4ba310fdf50db4ccb2092e3`. Data: November 19, 2026.

- [See all 18 setups on the leaderboard](https://www.stet.sh/leaderboard)
- [How Stet measures](https://www.stet.sh/methodology)

## More comparisons

- [Opus 4.8 medium vs GLM 5.3 Flash high](https://www.stet.sh/leaderboard/compare/glm-5-3-flash-high-vs-opus-4-8-medium)
- [Opus 4.8 medium vs GPT 5.6 Luna max](https://www.stet.sh/leaderboard/compare/gpt-5-6-luna-max-vs-opus-4-8-medium)
- [Opus 4.8 medium vs Muse Spark 1.3 high](https://www.stet.sh/leaderboard/compare/muse-spark-1-3-high-vs-opus-4-8-medium)
- [Opus 4.8 medium vs GPT 6 Luna max](https://www.stet.sh/leaderboard/compare/gpt-6-luna-max-vs-opus-4-8-medium)
- [Opus 4.8 medium vs Haiku 5.5 max](https://www.stet.sh/leaderboard/compare/haiku-5-5-max-vs-opus-4-8-medium)
- [Opus 5 medium vs SWE-2 Max high](https://www.stet.sh/leaderboard/compare/opus-5-medium-vs-swe-2-max-high)
- [Opus 5 medium vs Muse Wonder Full low](https://www.stet.sh/leaderboard/compare/muse-wonder-full-low-vs-opus-5-medium)
- [Opus 5 medium vs GPT 6.1 Sol medium](https://www.stet.sh/leaderboard/compare/gpt-6-1-sol-medium-vs-opus-5-medium)
- [Opus 5 medium vs GPT 6 Sol medium](https://www.stet.sh/leaderboard/compare/gpt-6-sol-medium-vs-opus-5-medium)
- [Opus 5 medium vs Grok 4.7 high](https://www.stet.sh/leaderboard/compare/grok-4-7-high-vs-opus-5-medium)
- [All 153 comparisons](https://www.stet.sh/leaderboard/compare)

---

[Read this page’s summary](https://www.stet.sh/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fwww.stet.sh%2Fleaderboard%2Fcompare%2Fopus-4-8-medium-vs-opus-5-medium&trace=t_5da45423e484)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Stet’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://www.stet.sh/agents/agent/faq?q={question}&trace=t_5da45423e484`

[Tool guide and examples](https://www.stet.sh/agents/agent-access) · [OpenAPI](https://www.stet.sh/agents/api/public/v1/openapi.json) · [Page TLDR form](https://www.stet.sh/agents/agent-tools/page-tldr?url=https%3A%2F%2Fwww.stet.sh%2Fleaderboard%2Fcompare%2Fopus-4-8-medium-vs-opus-5-medium). Opening a form does not execute a tool.