ContextBench: leaderboard

Benchmark for context retrieval in coding agents, measuring how well agents retrieve and use multi-file code context before producing fixes.

Metric: Pass@1 (percentage). Source: contextbench.github.io. Source: benchmarklist.com. Saturation forecast: Around July 2027. 4 models tracked. Updated 11 Sep 2026.

Top models

#ModelScoreOverall rank
1Claude Sonnet 4.553#278
2GPT-547.2#195
3Devstral 240.2#1077
4Gemini 2.5 Pro36.4#290

No result here: #2 Claude Fable 5.2, #5 GPT-6.2 Astra, #6 Gemini 4 Neon.

Example tasks

delete() on instances of models without any dependencies doesn't clear PKs.
Description

Deleting any model with no dependencies not updates the PK on the model. It should be set to None after .delete() call.
See Django.db.models.deletion:276-281. Should update the model line 280.

Source

Query syntax error with condition and distinct combination
Description

A Count annotation containing both a Case condition and a distinct=True param produces a query error on Django 2.2 (whatever the db backend). A space is missing at least (... COUNT(DISTINCTCASE WHEN ...).

Source

Interactive version: theaggregate.ai/benchmark?slug=contextbench · How It Works · Data refreshed daily, snapshot 2026-12-04.