# Claude Code Beat Cursor 4-2. Here's Why I'm Still Using Both <!-- ref: @content/youtube/yifan-bth/claude-code-beat-cursor-4-2-heres-why-im-still-using-both tags: [claude code, cursor, coding agents, benchmarks, rules files, end-to-end testing, agentic workflows] version: 2 updated_at: 2026-11-24T07:19:58.658Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=DCp8WNoog4o)** # Claude Code Beat Cursor 4-2. Here's Why I'm Still Using Both *Synthesized from Yifan on Beyond the Hype, 2025-06-26.* Yifan runs a solo channel, Beyond the Hype, and this video is a repeatable benchmark of Cursor against Claude Code on one live production app. ## Core Thesis Yifan argues that hype is a poor guide to choosing an AI coding agent, so he built a standard test set: the same repo, commit, rules file, prompt and $20 subscription tier for each tool. Claude Code won more of the tests, but his main finding is that the quality of the project's rules file mattered more than which agent he used. ## Key Insights - **Test setup.** The app is a roughly 4,000-line Next.js and React project using Supabase, Playwright for end-to-end tests and Cloudflare for deployment. Cursor ran in agent mode with Gemini 2.5 Pro, not max mode; Claude Code ran on its own $20 tier. - **Exploration.** Claude Code read most of the codebase and proposed end-to-end tests for auth, analysis flows, caching and GitHub API edge cases, with better-formatted output. Cursor read mainly the test file and drew much of its answer from the rules file. - **Test creation.** Both agents wrote a refresh-button test that checked only the button's animation state, not the updated data, and both needed a follow-up prompt. Cursor also deleted a passing test and had to be asked to recreate it. He scored this a tie. - **Feature implementation.** Both agents completed a feature needing a Supabase schema change, tests and UI in one run, about 700 lines of change. Cursor with Gemini had the edge on code quality and readability; Claude's output was more thorough but less clean. - **Bug finding.** Claude Code returned about ten prioritised issues with fixes and risk levels. Cursor reviewed only some core files and reported one row-level-security issue. - **Deployment migration.** Both agents failed to follow a Cloudflare OpenNext migration guide at the interactive CLI prompts. In one run each, the agent claimed the migration was done when it was not. - **Tool use.** Claude Code drove the browser through most of the app, including the logged-out state. Cursor covered less of the UI and did not test logged-out behaviour. - **Tally.** He scored Claude Code ahead 4 to 2, but concluded the rules file, not the agent, decided most of the outcome. ## Actionable Takeaways 1. Invest in the rules file first; both agents needed significant additions before they behaved consistently. 2. Write end-to-end tests so agents can iterate on failures without a human in the loop. 3. Check agent output before committing, especially after migrations or interactive CLI steps, because agents reported success on failed runs. 4. Pick by task type, by his own preference: Claude Code for exploration and bug finding, Cursor with Gemini for feature implementation where code quality matters. ## Notable Quotes > "What made the difference was how much effort you put in to the rules files." — Yifan > "I would prefer Claude for doing things like exploration and more intricate issue fixing" — Yifan --- *Related: `@content/youtube/yifan-bth/how-to-build-robust-applications-with-cursor-ai-playwright` · `@content/youtube/yifan-bth/5x-your-cursor-ai-coding-quality-with-these-pro-tips` · `@content/youtube/yifan-bth/cursor-windsurf-settings-to-5x-ais-output-quality-works-with-vs-code-too` · `@content/youtube/yifan-bth/claude-code-5-ways-it-beats-ai-code-editors` · `@content/youtube/yifan-bth/my-day-to-day-ai-dev-workflow-git-cursor-windsurf-cline-playwright-supabase-replit`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*