# GPT 6 Luna max vs Opus 4.8 medium: real-repo coding test

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/gpt-6-luna-max-vs-opus-4-8-medium
Source observed: 2026-11-19T11:08:36.248Z
Last checked: 2026-11-19T11:08:36.248+00:00
Indexed: 2026-11-19T11:16:05.345+00:00

---

# GPT 6 Luna max vs Opus 4.8 medium

We compare two coding-agent setups on real repository work. Opus 4.8 medium leads on speed, GPT 6 Luna max leads on cost, and the headline quality result is even. GPT 6 Luna max used `codex` with max reasoning; Opus 4.8 medium used `claude-code` with medium reasoning. This compares setups, not models alone.

## At a glance

- **Quality:** Even; GPT 6 Luna max won 6, Opus 4.8 medium won 5, 11 were tied, and 2 were undecided.
- **Speed:** Opus 4.8 medium was 2.6× faster: **23.3 min vs 59.7 min per task**.
- **Cost:** GPT 6 Luna max was 21× cheaper: **$0.37 vs $7.68 per task**.

## What we tested

We ran both agents end to end on 24 merged changes from private `Stet-AI/stet`, beginning from the repository state before each change. The repository’s tests and judges compared each patch with the merged change. These are real-repository results, not public benchmark scores.

Data: **November 19, 2026**.

[Compare GPT 6 Luna and Opus 4.8 across all effort pairings](https://www.stet.sh/leaderboard/compare/gpt-6-luna-vs-opus-4-8)

## Stet score and rank

| Setup | Harness / reasoning | Rank | Stet score | 95% range |
|---|---|---:|---:|---:|
| GPT 6 Luna max | `codex` / max | 15 of 18 | 45.3 | 39.3–51.4 |
| Opus 4.8 medium | `claude-code` / medium | 13 of 18 | 46.8 | 38.0–55.7 |

The 95% score ranges overlap. A 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.

## Quality

### Head-to-head matchups

- GPT 6 Luna max won **6**.
- **11** were tied.
- **2** were undecided.
- Opus 4.8 medium won **5**.

Opus 4.8 medium’s win share was 52%, with a 95% range of 37–65%. Ties are within judge noise.

### Other quality measures

| Metric | GPT 6 Luna max | Opus 4.8 medium |
|---|---:|---:|
| Code review pass rate | 25% — 24 tasks | 33% — 24 tasks |
| Checklist score | 0.89 — 24 tasks | 0.78 — 24 tasks |
| Equivalence rate | 46% — 24 tasks | 46% — 24 tasks |

These measures are not part of the headline Stet score and have no confidence interval; small gaps may be noise. A higher recorded value is not a proven lead.

## Task by task

GPT 6 Luna max solved 1 task that Opus did not, while Opus solved 3 that GPT did not. Both solved 10; neither solved 8. On the 10 tasks both solved, judges preferred GPT’s patch on 5, Opus’s on 2, and called 3 even.

### Only GPT 6 Luna max solved

- `stet-commit-342d0ac0` — 640 changed lines in 8 files; judges preferred GPT’s patch.

### Only Opus 4.8 medium solved

- `stet-15439c21` — 5 changed lines in 2 files; judges preferred Opus’s patch.
- `stet-6f84e978` — 23 changed lines in 1 file; judges preferred Opus’s patch.
- `stet-commit-f8ae1177` — 1,312 changed lines in 9 files; judges preferred Opus’s patch.

### Both solved

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

### Neither solved

- `stet-2450ca2d` — 2 changed lines in 1 file.
- `stet-commit-e928166f` — 149 changed lines in 2 files.
- `stet-commit-30506f8e` — 476 changed lines in 17 files.
- `stet-commit-5e075641` — 481 changed lines in 3 files.
- `stet-commit-a8716b88` — 564 changed lines in 10 files.
- `stet-commit-60a0e6c2` — 552 changed lines in 11 files.
- `stet-commit-87814583` — 763 changed lines in 8 files.
- `stet-commit-e41c2e2d` — 977 changed lines in 5 files.
- `stet-commit-2826765e` — 1,420 changed lines in 19 files.

Two of the 24 tasks are excluded from the detailed 22-task table because one setup has no scored result on them.

## All 22 compared tasks

| Task | GPT 6 Luna max | Opus 4.8 medium | Solved by | Better patch |
|---|---|---|---|---|
| `stet-89dfbc27` · 9 lines, 1 file | Passed; $0.03; 9.0 min | Passed; $0.83; 11.6 min | Both | GPT 6 Luna max |
| `stet-b28f4fe7` · 29 lines, 1 file | Passed; $0.03; 7.2 min | Passed; $1.09; 18.0 min | Both | GPT 6 Luna max |
| `stet-232b50ba` · 10 lines, 1 file | Passed; $0.05; 10.1 min | Passed; $1.43; 9.1 min | Both | GPT 6 Luna max |
| `stet-3169aefa` · 6 lines, 1 file | Passed; $0.09; 16.9 min | Passed; $1.06; 2.6 min | Both | Even |
| `stet-5276aa3f` · 23 lines, 2 files | Passed; $0.04; 9.4 min | Passed; $1.15; 6.7 min | Both | Even |
| `stet-66762b4c` · 84 lines, 1 file | Equivalent; $0.07; 14.7 min | Passed; $1.94; 26.5 min | Both | Opus 4.8 medium |
| `stet-commit-bbbbae09` · 941 lines, 7 files | Passed; $0.55; 92.9 min | Passed; $12.48; 29.1 min | Both | GPT 6 Luna max |
| `stet-commit-5d766dde` · 218 lines, 2 files | Equivalent; $0.26; 38.4 min | Equivalent; $3.10; 9.9 min | Both | Opus 4.8 medium |
| `stet-43493c52` · 4 lines, 1 file | Passed; $0.19; 36.4 min | Passed; $0.85; 4.3 min | Both | GPT 6 Luna max |
| `stet-commit-f0caded9` · 113 lines, 4 files | Equivalent; $0.33; 59.4 min | Equivalent; $4.29; 39.9 min | Both | Even |
| `stet-15439c21` · 5 lines, 2 files | Failed; $0.10; 19.3 min | Passed; $1.57; 16.3 min | Opus only | Opus 4.8 medium |
| `stet-commit-f8ae1177` · 1,312 lines, 9 files | Failed; $0.68; 109.7 min | Passed; $28.54; 45.5 min | Opus only | Opus 4.8 medium |
| `stet-2450ca2d` · 2 lines, 1 file | Failed; $0.06; 15.8 min | Failed; $0.92; 14.4 min | Neither | Even |
| `stet-commit-342d0ac0` · 640 lines, 8 files | Equivalent; $0.44; 75.2 min | Failed; $10.51; 60.2 min | GPT only | GPT 6 Luna max |
| `stet-6f84e978` · 23 lines, 1 file | Failed; $0.09; 20.7 min | Passed; $1.35; 6.1 min | Opus only | Opus 4.8 medium |
| `stet-commit-5e075641` · 481 lines, 3 files | Failed; $0.71; 113.8 min | Failed; $13.27; 28.8 min | Neither | Even |
| `stet-commit-2826765e` · 1,420 lines, 19 files | Failed; $0.79; 118.1 min | Failed; $18.37; 63.2 min | Neither | Even |
| `stet-commit-a8716b88` · 564 lines, 10 files | Failed; $0.43; 79.0 min | Failed; $26.24; 38.3 min | Neither | Even |
| `stet-commit-e928166f` · 149 lines, 2 files | Failed; $0.26; 49.7 min | Failed; $3.27; 24.9 min | Neither | Even |
| `stet-commit-30506f8e` · 476 lines, 17 files | Failed; $0.60; 95.9 min | Failed; $19.23; 38.0 min | Neither | Even |
| `stet-commit-87814583` · 763 lines, 8 files | Failed; $1.41; 194.7 min | Failed; $7.94; 16.5 min | Neither | Even |
| `stet-commit-e41c2e2d` · 977 lines, 5 files | Failed; $0.64; 82.3 min | Failed; $4.71; 13.9 min | Neither | Even |

## Cost and time

- **GPT 6 Luna max:** mean $0.36, median $0.26; cost less on all 22 tasks.
- **Opus 4.8 medium:** mean $7.46, median $3.18.
- **GPT time:** mean 57.7 min, median 44.1 min.
- **Opus time:** mean 23.8 min, median 17.3 min.
- Opus finished faster on 19/22 tasks; GPT finished faster on 3.

## Where each setup may fit

### Small fixes

10 tasks, 2–84 changed lines in 1–2 files. Opus solved 9/10 versus GPT’s 7/10; GPT cost 16× less per task, while Opus was 1.4× faster.

| Metric | GPT 6 Luna max | Opus 4.8 medium |
|---|---:|---:|
| Solved | 7/10 | 9/10 |
| Cost / task | $0.07 | $1.22 |
| Agent time / task | 16.0 min | 11.6 min |

### Large, cross-cutting changes

14 tasks, 113–1,420 changed lines in up to 19 files. Both solved 4/12; GPT cost 21× less per task, while Opus was 2.7× faster.

| Metric | GPT 6 Luna max | Opus 4.8 medium |
|---|---:|---:|
| Solved | 4/12 | 4/12 |
| Cost / task | $0.59 | $12.66 |
| Agent time / task | 92.4 min | 34.0 min |

## Research on these models

- [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)
- [GLM 5.2 vs Composer 2.5 on 50 real Go and Rust PRs: last on quality, and not the cheapest](https://www.stet.sh/blog/glm-5-2-passes-tests-fails-review)

## Questions

**Which is better for coding?** There is no clear quality difference: GPT 6 Luna max won 6, Opus 4.8 medium won 5, 11 tied, and 2 were undecided. GPT was 21× cheaper; Opus was 2.6× faster.

**How did we test them?** Both agents worked on the same 24 merged changes in the private repository, from the real repository state before each change. Repository tests and judges graded every patch against the merged change; no public benchmark scores were used.

## Test your own repository

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

## About this data

- 24 merged changes from private `Stet-AI/stet`, replayed from the repository state just before each change.
- Data from November 19, 2026.
- Both setups came from leaderboard run `bmk_d4ba310fdf50db4ccb2092e3` of 18 setups.
- [See all 18 setups on the leaderboard](https://www.stet.sh/leaderboard)
- [How Stet measures](https://www.stet.sh/methodology)

## More comparisons

- [GPT 6 Luna max vs GPT 5.6 Luna max](https://www.stet.sh/leaderboard/compare/gpt-5-6-luna-max-vs-gpt-6-luna-max)
- [GPT 6 Luna max vs Haiku 5.5 low](https://www.stet.sh/leaderboard/compare/gpt-6-luna-max-vs-haiku-5-5-low)
- [GPT 6 Luna max vs GPT 5.6 Luna low](https://www.stet.sh/leaderboard/compare/gpt-5-6-luna-low-vs-gpt-6-luna-max)
- [GPT 6 Luna max vs GLM 5.3 Flash high](https://www.stet.sh/leaderboard/compare/glm-5-3-flash-high-vs-gpt-6-luna-max)
- [GPT 6 Luna max vs GPT 6 Luna low](https://www.stet.sh/leaderboard/compare/gpt-6-luna-low-vs-gpt-6-luna-max)
- [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 Haiku 5.5 max](https://www.stet.sh/leaderboard/compare/haiku-5-5-max-vs-opus-4-8-medium)
- [Opus 4.8 medium vs Haiku 5.5 low](https://www.stet.sh/leaderboard/compare/haiku-5-5-low-vs-opus-4-8-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%2Fgpt-6-luna-max-vs-opus-4-8-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%2Fgpt-6-luna-max-vs-opus-4-8-medium). Opening a form does not execute a tool.