Why Claude Code Outperforms Cursor in Agentic Workflows
Theo - t3.gggo watch the original →
the gist
The author argues that Claude Code's superior performance over Cursor (Codebase) stems from its programmatic workflow architecture and a significantly cleaner system prompt, contrasting it with Cursor's bloated, prescriptive, and counterproductive system instructions.
The Architectural Shift: Workflows vs. Sub-agents
The author identifies a fundamental difference in how Cursor and Claude Code handle complex tasks. Cursor relies on an 'agentic' model where sub-agents are spawned dynamically, often leading to chaotic context management and token inefficiency. In contrast, Claude Code utilizes a programmatic workflow approach. By defining stages, prompts, and sub-tasks within a single JavaScript file, the model operates with clear boundaries. This structure forces the agent to 'finish' tasks rather than looping indefinitely, resulting in significantly lower token usage and higher output quality.
The 'Slop' in System Prompts
A major revelation from the author's investigation is the state of Cursor's system prompt. While users often blame model limitations for poor design or repetitive UI, the author discovered that Cursor's system prompt was heavily prescriptive, forcing models to adhere to arbitrary rules like '8-pixel border radius' or 'no visible instructional text.' This 'front-end constitution' effectively forced models to produce generic, 'utilitarian' UI regardless of the user's actual needs. The author notes that these constraints were so severe they actively degraded the model's ability to perform basic tasks, such as creating empty states or helpful onboarding flows.
The Case for Hand-Crafted Prompts
The author argues that developers should stop using AI to generate their system prompts, skills, and global instructions. The investigation showed that Cursor’s prompt was bloated with legacy instructions and 'goblin' references, consuming massive token counts while actively hindering the model's reasoning. By contrast, the Claude Code system prompt is described as concise, focusing on high-level behavioral guidelines (e.g., 'prefer editing existing files,' 'don't implement until the user agrees') rather than rigid, low-level stylistic constraints. The author is currently rewriting their own system prompt by hand to ensure maximum control and efficiency.
The Impact on Design and UX
When comparing the output of models like GPT-5.6 (Sol) across both harnesses, the author observed that the same model produced vastly different design quality depending on the environment. The 'slop' in Cursor's system prompt was the primary culprit, forcing the model into a narrow design box. Claude Code, lacking these arbitrary constraints, allowed the model to leverage its native capabilities, resulting in more sophisticated and context-aware UI generation.