GPT-5.6 Luna vs Grok 4.5 for code review
GPT-5.6 Luna wins, 95–88
Same 12 code review tasks, marked blind by three rival labs. GPT-5.6 Luna took 8 tasks, Grok 4.5 took 1, 3 tied. Tested 27 Aug 2026.
Where they differed most
Review this function. Context you can rely on, because it is validated upstream: `customers` and `outcodes` are always arrays; every customer object has a `postcode` property that is either a string or null; postcodes are stored either with or without the space ('SW1A 1AA' or 'SW1A1AA'); the required behaviour is to return the customers whose outward code matches one of `outcodes`, case-insensitively. function filterByOutcode(customers, outcodes) { const wanted = new Set(outcodes.map(o => o.trim().toUpperCase())); return customers.filter(c => { const pc = (c.postcode || '').trim().toUpperCase(); if (pc.length < 5) return false; const outward = pc.includes(' ') ? pc.split(' ')[0] : pc.slice(0, -3); return wanted.has(outward); }); } Give your review. If there are defects, list them by severity with the input that triggers each one. If there are none, say so plainly and briefly — do not manufacture a defect to look thorough, and do not dress a style preference up as a bug.
No defects under the stated contract. The function: - Handles `null` postcodes. - Normalizes case and surrounding whitespace. - Correctly extracts outward codes from both spaced (`SW1A 1AA`) and unspaced (`SW1A1AA`) postcodes. - Compares against normalized `outcodes` case-insensitively.
**No defects found.** The outward-code extraction matches the two stated storage formats, the empty/null postcode path is handled, and the case-insensitive comparison against the normalized `outcodes` set is correct.
Task by task
| Task | GPT-5.6 Luna | Grok 4.5 |
|---|---|---|
| The pagination that skips page one | 9 | 8 |
| Nothing wrong with it | 10 | 8 |
| Three things wrong in six lines | 10 | 9 |
| Two customers, one last item | 9 | 10 |
| Rank by what breaks | 9 | 8 |
| The review, as JSON | 9 | 8 |
| Slow is not the same as wrong | 10 | 9 |
| Overdue at one in the morning | 10 | 9 |
| Write only the comment | 10 | 10 |
| The complaint that is not a defect | 9 | 9 |
| Right, and unusable | 9 | 8 |
| Refuse the rubber stamp | 10 | 10 |
Full receipts: GPT-5.6 Luna, Grok 4.5 · judges claude-sonnet-5, gemini-3.1-pro-preview, grok-4.5
Questions people ask
Which is better for code review: GPT-5.6 Luna or Grok 4.5?
GPT-5.6 Luna — it scored 95/100 against 88/100 on our 12-task code review suite, winning 8 tasks to 1 with 3 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 Luna vs GPT-5.6 Sol · GPT-5.6 Sol vs Grok 4.5 · GPT-5.6 Luna vs GPT-5.6 Terra · GPT-5.3-Codex vs GPT-5.6 Luna · GPT-5.5 vs GPT-5.6 Luna · Claude Sonnet 5 vs GPT-5.6 Luna
Full ranking: Best AI for code review · model pages: GPT-5.6 Luna, Grok 4.5