Best AI for coding / head-to-head

GPT-5.5 vs GPT-5.6 Lunafor coding

The verdict

GPT-5.6 Luna wins, 9391

Same 18 coding tasks, marked blind by three rival labs. GPT-5.6 Luna took 6 tasks, GPT-5.5 took 5, 7 tied. Tested 16 Aug 2026.

Where they differed most

The task — Retry with backoff

Write an async retry wrapper in TypeScript: exponential backoff with jitter, a maximum attempt count, and it must NOT retry on 4xx responses other than 429. Maximum 30 lines. State what happens on the final failure.

```ts
type RetryOptions = { attempts?: number; baseMs?: number; maxMs?: number };

const sleep = (ms: number) => new Promise(r => setTimeout(r, ms));

const statusOf = (x: any): number | undefined =>
  typeof x?.status === "number" ? x.status :
  typeof x?.response?.status === "number" ? x.response.status :
  undefined;

const isNonRetryable4xx = (s?: number) =>
  s !== 429 && s !== undefined && s >= 400 && s < 500;

export async function retry<T>(
  fn: () => Promise<T>,
  { attempts = 5, baseMs = 200, maxMs = 5000 }: RetryOptions = {}
): Prom…
```ts
export async function retry<T>(
  operation: () => Promise<T>,
  maxAttempts = 5,
  baseDelayMs = 200
): Promise<T> {
  if (maxAttempts < 1) throw new RangeError("maxAttempts must be >= 1");

  for (let attempt = 1; ; attempt++) {
    try {
      return await operation();
    } catch (error) {
      const e = error as { status?: number; response?: { status?: number } };
      const status = e.status ?? e.response?.status;
      const nonRetryable4xx =
        status !== undefined && status >= 400 && status < 500 && status !== 429;…

Task by task

TaskGPT-5.5GPT-5.6 Luna
Duration parser89
Find the bug1010
SQL without window functions1010
Infinite useEffect109
Typed debounce910
Leftmost binary search1010
Security review109
Safe migration98
Fix the code not the test910
Race condition1010
Retry with backoff59
Recursive type109
Bash one-liner99
Explain and cost109
Regex with limits88
Callback to async910
Diagnose from a trace88
Idempotency910

Full receipts: GPT-5.5, GPT-5.6 Luna · judges claude-sonnet-5, gemini-3.1-pro-preview, grok-4.5

Questions people ask

Which is better for coding: GPT-5.5 or GPT-5.6 Luna?

GPT-5.6 Luna — it scored 93/100 against 91/100 on our 18-task coding suite, winning 6 tasks to 5 with 7 tied. Every answer was marked blind by three judges from three rival AI labs.

How was this tested?

Both models answered the identical published coding 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 coding head-to-heads: GPT-5.6 Luna vs GPT-5.6 Sol · GPT-5.6 Luna vs GPT-5.6 Terra · GLM 5.2 vs GPT-5.6 Luna · GPT-5.3-Codex vs GPT-5.6 Luna · GPT-5.6 Luna vs Qwen3.7 Max · Claude Opus 4.8 vs GPT-5.6 Luna

Full ranking: Best AI for coding · model pages: GPT-5.5, GPT-5.6 Luna