# GPT 6 Luna max vs Opus 5 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-5-medium
Source observed: 2026-11-19T11:08:36.080Z
Last checked: 2026-11-19T11:08:36.08+00:00
Indexed: 2026-11-19T11:15:40.654+00:00

---

# GPT 6 Luna max vs Opus 5 medium

We compare two coding-agent setups on real repository work. Opus 5 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 5 medium used `claude-code` with medium reasoning. This compares setups, not models alone.

## At a glance

- **Quality:** Even; GPT 6 Luna max won 3 head-to-head comparisons, Opus 5 medium won 10, and 11 were tied.
- **Speed:** Opus 5 medium was 2.6× faster: **23.2 min vs 59.7 min per task**.
- **Cost:** GPT 6 Luna max was 18× cheaper: **$0.37 vs $6.78 per task**.

## What we tested

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

Data: **November 19, 2026**.

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

## 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 5 medium | `claude-code` / medium | 2 of 18 | 61.4 | 52.6–70.3 |

The 95% score ranges do not 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 **3**.
- **11** were tied.
- Opus 5 medium won **10**.

Opus 5 medium’s win share was 66%, with a 95% range of 53–79%. Ties are within judge noise.

### Other quality measures

| Metric | GPT 6 Luna max | Opus 5 medium |
|---|---:|---:|
| Code review pass rate | 25% — 24 tasks | 38% — 24 tasks |
| Checklist score | 0.89 — 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; 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 5 that GPT 6 Luna max did not. Both solved 10; neither solved 8. On the 10 tasks both solved, judges preferred Opus’s patch on 4, GPT’s on 2, and called 4 even.

### Only GPT 6 Luna max solved

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

### Only Opus 5 medium solved

- `stet-2450ca2d` — 2 changed lines in 1 file; judges preferred Opus’s patch.
- `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.
- `stet-commit-2826765e` — 1,420 changed lines in 19 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.
- `stet-232b50ba` — 10 changed lines in 1 file.
- `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; judges preferred Opus’s patch.
- `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 Opus’s patch.

### Neither solved

- `stet-commit-e928166f` — 149 changed lines in 2 files; judges preferred Opus’s patch.
- `stet-commit-30506f8e` — 476 changed lines in 17 files.
- `stet-commit-5e075641` — 481 changed lines in 3 files.
- `stet-commit-60a0e6c2` — 552 changed lines in 11 files.
- `stet-commit-a8716b88` — 564 changed lines in 10 files.
- `stet-commit-87814583` — 763 changed lines in 8 files.
- `stet-commit-e41c2e2d` — 977 changed lines in 5 files.
- `stet-commit-d2ab0c25` — 1,236 changed lines in 16 files.

## All 24 compared tasks

| Task | GPT 6 Luna max | Opus 5 medium | Solved by | Better patch |
|---|---|---|---|---|
| `stet-89dfbc27` · 9 lines, 1 file | Passed; $0.03; 9.0 min | Passed; $1.53; 32.6 min | Both | Even |
| `stet-b28f4fe7` · 29 lines, 1 file | Passed; $0.03; 7.2 min | Passed; $0.69; 19.4 min | Both | GPT 6 Luna max |
| `stet-232b50ba` · 10 lines, 1 file | Passed; $0.05; 10.1 min | Passed; $1.21; 7.9 min | Both | Even |
| `stet-3169aefa` · 6 lines, 1 file | Passed; $0.09; 16.9 min | Passed; $1.09; 9.2 min | Both | Even |
| `stet-5276aa3f` · 23 lines, 2 files | Passed; $0.04; 9.4 min | Passed; $1.03; 7.7 min | Both | Even |
| `stet-66762b4c` · 84 lines, 1 file | Equivalent; $0.07; 14.7 min | Passed; $1.74; 36.7 min | Both | Opus 5 medium |
| `stet-commit-bbbbae09` · 941 lines, 7 files | Passed; $0.55; 92.9 min | Passed; $8.24; 18.7 min | Both | Opus 5 medium |
| `stet-commit-5d766dde` · 218 lines, 2 files | Equivalent; $0.26; 38.4 min | Equivalent; $3.36; 11.0 min | Both | Opus 5 medium |
| `stet-43493c52` · 4 lines, 1 file | Passed; $0.19; 36.4 min | Passed; $0.52; 2.3 min | Both | GPT 6 Luna max |
| `stet-commit-f0caded9` · 113 lines, 4 files | Equivalent; $0.33; 59.4 min | Passed; $3.43; 10.8 min | Both | Opus 5 medium |
| `stet-15439c21` · 5 lines, 2 files | Failed; $0.10; 19.3 min | Passed; $0.53; 4.9 min | Opus only | Opus 5 medium |
| `stet-commit-f8ae1177` · 1,312 lines, 9 files | Failed; $0.68; 109.7 min | Passed; $18.97; 27.5 min | Opus only | Opus 5 medium |
| `stet-2450ca2d` · 2 lines, 1 file | Failed; $0.06; 15.8 min | Passed; $0.82; 21.7 min | Opus only | Opus 5 medium |
| `stet-commit-342d0ac0` · 640 lines, 8 files | Equivalent; $0.44; 75.2 min | Failed; $5.56; 16.4 min | GPT only | GPT 6 Luna max |
| `stet-6f84e978` · 23 lines, 1 file | Failed; $0.09; 20.7 min | Passed; $1.39; 34.9 min | Opus only | Opus 5 medium |
| `stet-commit-5e075641` · 481 lines, 3 files | Failed; $0.71; 113.8 min | Failed; $10.93; 31.1 min | Neither | Even |
| `stet-commit-60a0e6c2` · 552 lines, 11 files | Failed; $0.48; 77.7 min | Failed; $7.75; 24.8 min | Neither | Even |
| `stet-commit-2826765e` · 1,420 lines, 19 files | Failed; $0.79; 118.1 min | Equivalent; $17.19; 30.1 min | Opus only | Opus 5 medium |
| `stet-commit-a8716b88` · 564 lines, 10 files | Failed; $0.43; 79.0 min | Failed; $12.40; 43.1 min | Neither | Even |
| `stet-commit-e928166f` · 149 lines, 2 files | Failed; $0.26; 49.7 min | Failed; $5.94; 25.2 min | Neither | Opus 5 medium |
| `stet-commit-30506f8e` · 476 lines, 17 files | Failed; $0.60; 95.9 min | Failed; $15.36; 43.4 min | Neither | Even |
| `stet-commit-87814583` · 763 lines, 8 files | Failed; $1.41; 194.7 min | Failed; $14.95; 33.3 min | Neither | Even |
| `stet-commit-d2ab0c25` · 1,236 lines, 16 files | Failed; $0.58; 87.1 min | Failed; $15.17; 25.8 min | Neither | Even |
| `stet-commit-e41c2e2d` · 977 lines, 5 files | Failed; $0.64; 82.3 min | Failed; $12.80; 38.3 min | Neither | Even |

## Cost and time

- **GPT 6 Luna max:** mean $0.37, median $0.29; cost less on all 24 tasks.
- **Opus 5 medium:** mean $6.78, median $4.50.
- **GPT time:** mean 59.7 min, median 54.6 min.
- **Opus time:** mean 23.2 min, median 25.0 min.
- Opus finished faster on 19/24 tasks; GPT finished faster on 5.

## Where each setup may fit

### Small fixes

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

| Metric | GPT 6 Luna max | Opus 5 medium |
|---|---:|---:|
| Solved | 7/10 | 10/10 |
| Cost / task | $0.07 | $1.05 |
| Agent time / task | 16.0 min | 17.7 min |

### Large, cross-cutting changes

14 tasks, 113–1,420 changed lines in up to 19 files. Opus solved 5/14 versus GPT’s 4/14; GPT cost 19× less per task, while Opus was 3.4× faster.

| Metric | GPT 6 Luna max | Opus 5 medium |
|---|---:|---:|
| Solved | 4/14 | 5/14 |
| Cost / task | $0.58 | $10.86 |
| Agent time / task | 91.0 min | 27.1 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)
- [I ran GPT 6.1 Sol against GPT 6 Sol on 24 tasks from my own repo, and found that it maintained quality while cutting cost in half](https://www.stet.sh/blog/gpt-6-1-sol-vs-gpt-6-sol)

## Questions

**Which is better for coding?** There is no clear quality difference: Opus won 10, GPT won 3, and 11 tied. GPT 6 Luna max was 18× cheaper; Opus 5 medium was 2.6× faster. The comparison covers 24 merged changes from `Stet-AI/stet`.

**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 Opus 4.8 medium](https://www.stet.sh/leaderboard/compare/gpt-6-luna-max-vs-opus-4-8-medium)
- [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)
- [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%2Fgpt-6-luna-max-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%2Fgpt-6-luna-max-vs-opus-5-medium). Opening a form does not execute a tool.