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
| # | Model | Score | Overall rank |
|---|---|---|---|
| 1 | Claude Sonnet 4.5 | 53 | #278 |
| 2 | GPT-5 | 47.2 | #195 |
| 3 | Devstral 2 | 40.2 | #1077 |
| 4 | Gemini 2.5 Pro | 36.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.
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 ...).
Interactive version: theaggregate.ai/benchmark?slug=contextbench · How It Works · Data refreshed daily, snapshot 2026-12-04.