DeepSeek V4 Pro vs Grok 4.5 for code review
Grok 4.5 wins, 88–78
Same 12 code review tasks, marked blind by three rival labs. Grok 4.5 took 6 tasks, DeepSeek V4 Pro took 1, 5 tied. Tested 18 Aug 2026.
Where they differed most
Review this function. Context you can rely on: `page` is 1-based — the public API docs promise that page=1 returns the first page; `items` is always an array and may be empty; `perPage` is taken straight from a query string. function pageOf(items, page, perPage) { const start = page * perPage; const rows = items.slice(start, start + perPage); const lastPage = Math.ceil(items.length / perPage); return { rows, total: items.length, lastPage, hasNext: page <= lastPage }; } List the real defects, most damaging first, and for each one say what a user of the API would actually SEE — not what the code does, what they notice. Then give the corrected function. Do not list style preferences as defects.
## Real Defects (most damaging first) ### 1. **Off-by-one in `start` calculation — returns wrong page of data** **What the user sees:** When they request `page=1`, they get the *second* page of results instead of the first. If there are 10 items per page and 25 total items, `page=1` returns items 11–20 instead of items 1–10. The first page of data is completely inaccessible. ### 2. **`hasNext` is inverted — wrong pagination indicator** **What the user sees:** On every page *except* the last one, `hasNext` returns `false`. On the last page, `h…
## Defects (most damaging first) 1. **`page` is 1-based, but the slice start is computed as 0-based** (`start = page * perPage`). **User sees:** `page=1` is not the first page. The first `perPage` items are skipped; they get page 2’s data (or an empty page if there isn’t enough data). The page the docs promise is unreachable at `page=1`. 2. **`perPage` is a string (query string), so `start + perPage` concatenates instead of adding.** Example: `start === 10`, `perPage === "10"` → end index `"1010"`. **User sees:** Each page retu…
Task by task
| Task | DeepSeek V4 Pro | Grok 4.5 |
|---|---|---|
| The pagination that skips page one | 3 | 8 |
| Nothing wrong with it | 8 | 8 |
| Three things wrong in six lines | 9 | 9 |
| Two customers, one last item | 5 | 10 |
| Rank by what breaks | 8 | 8 |
| The review, as JSON | 7 | 8 |
| Slow is not the same as wrong | 8 | 9 |
| Overdue at one in the morning | 8 | 9 |
| Write only the comment | 10 | 10 |
| The complaint that is not a defect | 9 | 9 |
| Right, and unusable | 10 | 8 |
| Refuse the rubber stamp | 9 | 10 |
Full receipts: DeepSeek V4 Pro, Grok 4.5 · judges claude-sonnet-5, gemini-3.1-pro-preview, gpt-5.6-terra
Questions people ask
Which is better for code review: DeepSeek V4 Pro or Grok 4.5?
Grok 4.5 — it scored 88/100 against 78/100 on our 12-task code review suite, winning 6 tasks to 1 with 5 tied. Every answer was marked blind by three judges from three rival AI labs.
How was this tested?
Both models answered the identical published code review tasks. Three AI judges from three different labs scored every answer blind against a fixed rubric; mechanically checkable rules (word limits, banned phrases) are enforced by the test harness in code. The raw outputs and judge verdicts are downloadable.
More code review head-to-heads: GPT-5.6 Sol vs Grok 4.5 · DeepSeek V4 Pro vs GPT-5.6 Sol · GPT-5.5 vs Grok 4.5 · DeepSeek V4 Pro vs GPT-5.5 · Claude Sonnet 5 vs Grok 4.5 · Claude Sonnet 5 vs DeepSeek V4 Pro
Full ranking: Best AI for code review · model pages: DeepSeek V4 Pro, Grok 4.5