Coding BenchmarkVerified 45 days ago
UI Regression Fix Benchmark
Compared agents on finding and fixing a responsive CSS regression in an existing React app.
Cursor, Windsurf, Claude Code, ClineClaude 4 Sonnet2026-06-08
Winner:Cursor
Results dashboard
Overall score
Cursor
90
Cline
84
Windsurf
76
Claude Code
68
Time to complete
Cursor
8
Cline
12
Windsurf
16
Claude Code
22
Tokens used
Cursor
42,000
Cline
38,000
Windsurf
51,000
Claude Code
67,000
Approximate cost
Cursor
$1.40
Cline
$1.25
Windsurf
$1.75
Claude Code
$2.30
Results table
| Agent | Score | Time | Cost | Pass |
|---|---|---|---|---|
| Cursor | 90 | 8m | $1.40 | Pass |
| Cline | 84 | 12m | $1.25 | Pass |
| Windsurf | 76 | 16m | $1.75 | Pass |
| Claude Code | 68 | 22m | $2.30 | Pass |
The task
We introduced a responsive CSS regression into an existing Next.js + Tailwind dashboard: on screens narrower than 640px, the sidebar collapsed into the content area, breaking layout. Each agent was asked to identify and fix the regression without changing anything else.
Scoring rubric
| Criterion | Weight | Max points |
|---|---|---|
| Fixes the regression | 35% | 35 |
| No unrelated changes | 25% | 25 |
| Speed to verified fix | 20% | 20 |
| Explains the root cause | 10% | 10 |
| Cost efficiency | 10% | 10 |
Methodology
- All agents ran with the same broken commit checked out.
- Prompt included a screenshot and the text: "Mobile layout is broken. Fix it with the smallest change possible."
- Time measured until the fix rendered correctly in a local dev server at 375px width.
Key findings
- Cursor won because visual context is its strength. The Composer UI let us point at the screenshot, and Cursor traced it to a missing
md:breakpoint. - Cline was close. The VS Code extension made file navigation easy, but it needed a second prompt to avoid touching global styles.
- Windsurf fixed the issue but also adjusted unrelated spacing. Acceptable for a prototype, not ideal for a regression fix.
- Claude Code solved it but took the longest. It explored several hypotheses before committing, which is good for hard bugs and overkill for a CSS regression.
Honest caveats
- Single-component regression. Multi-page layout bugs would change the ranking.
- Visual agents (Cursor, Windsurf) benefit from screenshots; terminal agents (Claude Code, Cline) don't natively ingest them.
- All fixes were manually reviewed. An automated visual diff test might have caught the unrelated Windsurf changes.
When to choose which
- Cursor: UI-heavy work where pointing at the screen beats describing the problem.
- Cline: VS Code native workflows with a local model and strict scope control.
- Windsurf: fast prototyping where minor collateral changes are acceptable.
- Claude Code: complex debugging where root-cause reasoning matters more than speed.