# Grok 4.7 high 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/grok-4-7-high-vs-opus-5-medium
Source observed: 2026-11-19T11:08:22.233Z
Last checked: 2026-11-19T11:08:22.233+00:00
Indexed: 2026-11-19T11:18:29.041+00:00

---

# Grok 4.7 high vs Opus 5 medium

Grok 4.7 high leads on speed and cost; we found no clear quality difference. This compares setups, not models alone: Grok 4.7 high ran `cursor` with high reasoning, while Opus 5 medium ran `claude-code` with medium reasoning.

## Headline results

- **Quality:** Even. Grok won 1 head-to-head task, Opus won 5, and 18 were tied.
- **Speed:** Grok was **1.2× faster**: 18.9 versus 23.2 minutes per task.
- **Cost:** Grok was **1.1× cheaper**: $6.28 versus $6.78 per task. The $6.28 figure is from 22 of 24 tasks.

## Test design and data

We ran both setups end to end on 24 merged changes from the private `Stet-AI/stet` repository, starting from the state before each change. Repository tests and judges compared each patch with the merged change. Data is from **November 19, 2026**; these are real-repository results, not public benchmark scores.

## Scores and quality

| Setup | Harness and reasoning | Rank | Stet score | 95% range |
|---|---|---:|---:|---:|
| Grok 4.7 high | `cursor`, high | 6 of 18 | 52.7 | 45.4–59.9 |
| Opus 5 medium | `claude-code`, medium | 2 of 18 | 61.4 | 52.6–70.3 |

Their 95% score ranges overlap. Opus’s head-to-head win share was 59%, with a 95% range of 50–69%; ties are within judge noise.

### Other quality measures

| Metric | Grok 4.7 high | Opus 5 medium |
|---|---:|---:|
| Code review pass rate | 39% — 23 tasks | 38% — 24 tasks |
| Checklist score | 0.84 — 24 tasks | 0.89 — 24 tasks |
| Equivalence rate | 39% — 23 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 outcome

Grok solved 0 tasks that Opus did not. Opus solved 4 that Grok did not. Both solved 11; neither solved 9. On the 11 tasks both solved, judges preferred Grok’s patch on 1, Opus’s on 1, and called 9 even.

### Only Grok 4.7 high solved

None.

### Only Opus 5 medium solved

- 4 changed lines in 1 file — `stet-43493c52`; judges preferred Opus’s patch.
- 5 changed lines in 2 files — `stet-15439c21`; judges preferred Opus’s patch.
- 23 changed lines in 1 file — `stet-6f84e978`; judges preferred Opus’s patch.
- 1,420 changed lines in 19 files — `stet-commit-2826765e`; judges preferred Opus’s patch.

### Both solved

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

### Neither solved

- 149 changed lines in 2 files — `stet-commit-e928166f`.
- 476 changed lines in 17 files — `stet-commit-30506f8e`.
- 481 changed lines in 3 files — `stet-commit-5e075641`.
- 552 changed lines in 11 files — `stet-commit-60a0e6c2`.
- 564 changed lines in 10 files — `stet-commit-a8716b88`.
- 640 changed lines in 8 files — `stet-commit-342d0ac0`.
- 763 changed lines in 8 files — `stet-commit-87814583`.
- 977 changed lines in 5 files — `stet-commit-e41c2e2d`.
- 1,236 changed lines in 16 files — `stet-commit-d2ab0c25`.

## All 24 compared tasks

| Task | Grok 4.7 high | Opus 5 medium | Solved by | Better patch |
|---|---|---|---|---|
| `stet-89dfbc27` · 9 lines, 1 file | Passed · $1.08 · 5.8 min | Passed · $1.53 · 32.6 min | Both | Even |
| `stet-b28f4fe7` · 29 lines, 1 file | Passed · $1.64 · 7.2 min | Passed · $0.69 · 19.4 min | Both | Grok |
| `stet-232b50ba` · 10 lines, 1 file | Passed · $1.88 · 6.5 min | Passed · $1.21 · 7.9 min | Both | Even |
| `stet-3169aefa` · 6 lines, 1 file | Passed · $0.91 · 2.9 min | Passed · $1.09 · 9.2 min | Both | Even |
| `stet-5276aa3f` · 23 lines, 2 files | Passed · $0.70 · 3.9 min | Passed · $1.03 · 7.7 min | Both | Even |
| `stet-66762b4c` · 84 lines, 1 file | Passed · $1.62 · 8.3 min | Passed · $1.74 · 36.7 min | Both | Even |
| `stet-commit-bbbbae09` · 941 lines, 7 files | Passed · 71.2 min | Passed · $8.24 · 18.7 min | Both | Even |
| `stet-commit-5d766dde` · 218 lines, 2 files | Equivalent · $2.96 · 11.9 min | Equivalent · $3.36 · 11.0 min | Both | Even |
| `stet-43493c52` · 4 lines, 1 file | Failed · $2.53 · 12.3 min | Passed · $0.52 · 2.3 min | Opus only | Opus |
| `stet-commit-f0caded9` · 113 lines, 4 files | Equivalent · $2.29 · 12.5 min | Passed · $3.43 · 10.8 min | Both | Opus |
| `stet-15439c21` · 5 lines, 2 files | Failed · $1.05 · 3.6 min | Passed · $0.53 · 4.9 min | Opus only | Opus |
| `stet-commit-f8ae1177` · 1,312 lines, 9 files | Passed · $13.89 · 27.8 min | Passed · $18.97 · 27.5 min | Both | Even |
| `stet-2450ca2d` · 2 lines, 1 file | Passed · $1.29 · 6.0 min | Passed · $0.82 · 21.7 min | Both | Even |
| `stet-commit-342d0ac0` · 640 lines, 8 files | Failed · $12.15 · 26.1 min | Failed · $5.56 · 16.4 min | Neither | Even |
| `stet-6f84e978` · 23 lines, 1 file | Failed · $3.84 · 18.2 min | Passed · $1.39 · 34.9 min | Opus only | Opus |
| `stet-commit-5e075641` · 481 lines, 3 files | Failed · $7.20 · 21.5 min | Failed · $10.93 · 31.1 min | Neither | Even |
| `stet-commit-60a0e6c2` · 552 lines, 11 files | Failed · 26.2 min | Failed · $7.75 · 24.8 min | Neither | Even |
| `stet-commit-2826765e` · 1,420 lines, 19 files | Failed · $11.83 · 26.4 min | Equivalent · $17.19 · 30.1 min | Opus only | Opus |
| `stet-commit-a8716b88` · 564 lines, 10 files | Failed · $15.70 · 30.6 min | Failed · $12.40 · 43.1 min | Neither | Even |
| `stet-commit-e928166f` · 149 lines, 2 files | Failed · $9.26 · 21.6 min | Failed · $5.94 · 25.2 min | Neither | Even |
| `stet-commit-30506f8e` · 476 lines, 17 files | Failed · $9.22 · 19.3 min | Failed · $15.36 · 43.4 min | Neither | Even |
| `stet-commit-87814583` · 763 lines, 8 files | Failed · $7.84 · 18.8 min | Failed · $14.95 · 33.3 min | Neither | Even |
| `stet-commit-d2ab0c25` · 1,236 lines, 16 files | Failed · $13.52 · 33.0 min | Failed · $15.17 · 25.8 min | Neither | Even |
| `stet-commit-e41c2e2d` · 977 lines, 5 files | Failed · $15.75 · 32.6 min | Failed · $12.80 · 38.3 min | Neither | Even |

## Cost and time

- **Cost:** Grok mean $6.28, median $3.40 from 22/24 tasks; Opus mean $6.78, median $4.50. Grok cost less on 12 of 22 tasks; Opus on 10.
- **Agent time:** Grok mean 18.9 minutes, median 18.5; Opus mean 23.2 minutes, median 25.0. Grok finished faster on 16 of 24 tasks; Opus on 8.

## Where each setup fits

### Small fixes

10 tasks, 2–84 changed lines in 1–2 files. Opus solved 10/10 versus Grok’s 7/10 and cost 1.6× less; Grok was 2.4× faster.

| Metric | Grok | Opus |
|---|---:|---:|
| Solved | 7/10 | 10/10 |
| Cost per task | $1.65 | $1.05 |
| Agent time per task | 7.5 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 Grok’s 4/14. Both averaged 27.1 minutes per task; Grok cost $10.13 from 12/14 tasks versus Opus at $10.86.

| Metric | Grok | Opus |
|---|---:|---:|
| Solved | 4/14 | 5/14 |
| Cost per task | $10.13 from 12/14 tasks | $10.86 |
| Agent time per task | 27.1 min | 27.1 min |

## Side by side

| Metric | Grok 4.7 high | Opus 5 medium |
|---|---|---|
| Harness | `cursor` | `claude-code` |
| Reasoning effort | high | medium |
| Rank | 6 of 18 | 2 of 18 |
| Stet score | 52.7, 95% range 45.4–59.9 | 61.4, 95% range 52.6–70.3 |
| Solved | 11/24: 9 passed, 2 judged equivalent | 15/24: 13 passed, 2 judged equivalent |
| Cost per task | $6.28 from 22/24 tasks | $6.78 |
| Agent time per task | 18.9 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 won 5, Grok won 1, and 18 tied. Grok leads on cost at 1.1× cheaper and on agent time at 1.2× faster.

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

## Test your 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 tasks from private `Stet-AI/stet`, replayed from the state immediately 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

- [Grok 4.7 high vs GPT 6 Sol medium](https://www.stet.sh/leaderboard/compare/gpt-6-sol-medium-vs-grok-4-7-high)
- [Grok 4.7 high vs Pareto 26.9 medium](https://www.stet.sh/leaderboard/compare/grok-4-7-high-vs-pareto-26-9-medium)
- [Grok 4.7 high vs GPT 6.1 Sol medium](https://www.stet.sh/leaderboard/compare/gpt-6-1-sol-medium-vs-grok-4-7-high)
- [Grok 4.7 high vs DeepSeek V4.1 Flash max](https://www.stet.sh/leaderboard/compare/deepseek-v4-1-flash-max-vs-grok-4-7-high)
- [Grok 4.7 high vs Muse Wonder Full low](https://www.stet.sh/leaderboard/compare/grok-4-7-high-vs-muse-wonder-full-low)
- [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 Pareto 26.9 medium](https://www.stet.sh/leaderboard/compare/opus-5-medium-vs-pareto-26-9-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%2Fgrok-4-7-high-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%2Fgrok-4-7-high-vs-opus-5-medium). Opening a form does not execute a tool.