Signal Brief

The Pulse: Interesting AI coding stats from Cursor

Cursor 发布基于两年聚合使用数据的报告:中位数用户每周生成约700行代码,前10%用户生成约9000行,前1%用户生成30-40K行;输入 token 消耗是输出 token 的10倍,占总 token 成本的70%;若无上下文缓存,成本将高10倍;Opus 4.7 比 Cursor 的 Co...

The Pragmatic Engineer Gergely Orosz 发布 2026-07-09 收录 2026-07-16 观察

一句话判断

报告提供了 AI 编码代理成本结构的量化数据,值得点开原文查看详细图表和缓存策略。

核心信息

Cursor 发布基于两年聚合使用数据的报告:中位数用户每周生成约700行代码,前10%用户生成约9000行,前1%用户生成30-40K行;输入 token 消耗是输出 token 的10倍,占总 token 成本的70%;若无上下文缓存,成本将高10倍;Opus 4.7 比 Cursor 的 Composer 2.5 贵近10倍,但更贵模型有更高接受率。

原始内容

*Hi, this is Gergely with a bonus, free issue of the Pragmatic Engineer Newsletter. In every issue, I cover Big Tech and startups through the lens of senior engineers and engineering leaders. Today, we cover one out of four topics* [*a past The Pulse issue*](https://newsletter.pragmaticengineer.com/p/the-pulse-a-trend-of-trying-to-cut?ref=blog.pragmaticengineer.com)*. Full subscribers received the article below five weeks ago. If you’ve been forwarded this email, you can* [*subscribe here*](https://newsletter.pragmaticengineer.com/about?ref=blog.pragmaticengineer.com)*.* Cursor has just released a new report based on two years of its aggregated usage data, and there are some interesting findings: ### Power users generate 10x as many lines of code vs the median ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image.png) **Source:** [**Cursor**](https://cursor.com/insights?ref=blog.pragmaticengineer.com) The median dev using Cursor (the p50) generates about 700 lines of code per week with it, while for the 90th percentile, it’s closer to 9,000 lines. ### Top 1% of users create incredible volume of code The p99 data is pretty stunning: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-2.png) The top 1% of Cursor users (p99) vs the top 10% (p90) The top 1% of users generate around 30-40K lines of code **per week**! That’s the equivalent of what ~45 “median” devs generate in the same period. It’s worth asking how these top 1% of users are different. Are they writing a lot more greenfield code, do they have a bias for not using libraries, are they tokenmaxxing to get to the top of leaderboards? Do they generate 45x as many bugs, and importantly: are they adding a lot of business value with the software they ship? ### Cursor consumes 10x more input tokens than it generates in output tokens This is surprising: 90% of Cursor’s token usage is input tokens! This means that most of the tokens used are for reading the existing codebase and documentation. Outputting of code is a minority usage: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-3.png) Input tokens (Cursor reading the codebase) is the bulk of token usage In some ways, this usage makes sense: as devs, we always spent far more time on reading the code, compared to lines of code we typed out. The “10:1 read-to-write” ratio is a classic. Here’s Robert. C. Martin (aka “uncle Bob”) sharing this observation in 2008, in his book, Clean Code: > “**Indeed, the ratio of time spent reading versus writing is well over 10 to 1.** We are constantly reading old code as part of the effort to write new code… [Therefore] making it easy to read, makes it easier to write.” I find it amusing that we’re now seeing this 10:1 read / write ratio for token usage with AI agents! ### Input tokens become the main AI token cost Input tokens are priced at a fraction of output tokens: for example, Opus 4.7 charges 5x more for output tokens than for input tokens ($5 per 1 million input tokens and $25 per 1 million output tokens). Still, thanks to input tokens dominating token usage, Cursor is seeing input tokens account for closer to 70% of the cost of AI coding agents: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-4.png) Input tokens dominate Cursor costs ### Without caching context, token cost would be 10x higher Cursor does smart caching of context, to avoid re-generating old context with more new input tokens. When taking cache usage into account, Cursor only spends 0.6% of tokens on output tokens. The remaining 99% is split between cache read (90%), cache write (2.5%), and input tokens (7%): ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-5.png) Output tokens are only 0.6% of token usage when considering cache reads & writes **I wonder if context reuse and caching will be a key AI efficiency component in the future?** AI tokens are expensive to generate, so any form of reuse will make a lot of sense, especially in workflows like coding where a lot of existing context is reused. Of course, Cursor sharing this detail also makes sense, as they remind everyone that building an efficient AI agent harness is far from trivial. Indeed, if you roll your own agent harness, you also need to put an efficient caching layer in place to match the efficiency of tools like Cursor. ### Opus is the most expensive model & could hurt Anthropic At the time of publishing, Opus 4.7 was still considered the most capable coding model. However, it’s also very expensive, and Cursor’s own data shows it’s close to 10x more expensive than its own Composer 2.5 model: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-6.png) Opus 4.7 is twice as expensive as GPT-5.5 & nearly 10x more than Composer 2.5 It’s significant that Cursor compares the cost of a single agent request; it’s not a direct token-to-token comparison. And it’s worth noting this benchmark is being shared by Cursor, which has an incentive for its Composer model to appear the lowest-cost. Still, assuming you can get similar-enough results with a 10x cheaper model, it is a saving that’s hard to ignore, especially for mid-sized and above companies. I would not be surprised if more tech companies find ways for devs to use less capable – but cheaper – models for less critical work. ### More expensive models result in higher acceptance rates An interesting metric Cursor shares is cost-per-line-added, per model: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-7.png) This metric is a more realistic cost because it correlates to output: “smart” models that are expensive, but which produce code that is frequently accepted, are penalized by the cost-per-agent-request metric, but they’re not here. Indeed, Opus 4.7 has the same cost-per-line-accepted as GPT 5.5 at half the cost per agent request. In this comparison, Cursor’s Composer model is “only” 5x as efficient. Missing from both lists are Google’s Gemini models, a strange omission by Cursor. I reached out to Cursor and they told me that Gemini was left out simply because they see very little usage of this model on their platform, similar to the sparsely used Grok model. ### Almost half of AI changes accepted without manual review by devs I’ve left the most interesting part of this report to last: in just a month, among devs using Cursor, it has gone from 10% who let AI agents create commits without a manual step, to around 40% of devs who no longer personally check the code: ![alt](https://storage.ghost.io/c/39/f8/39f85cc7-8637-40fc-a57c-f45754453717/content/images/2026/07/image-8.png) The jump correlates with Opus 4.7 and GPT-5.5 being released, and around the time when many devs seem to have [concluded that writing code by hand is dying](https://newsletter.pragmaticengineer.com/p/the-pulse-160-why-its-so-dramatic?ref=blog.pragmaticengineer.com) after experiencing this generation of models’ capability at generating code. Check out [the full report from Cursor](https://cursor.com/insights?ref=blog.pragmaticengineer.com) for more details. Thanks to the team for releasing this data! --- Read the full issue of [The Pulse this excerpt is from](https://newsletter.pragmaticengineer.com/p/the-pulse-a-trend-of-trying-to-cut?ref=blog.pragmaticengineer.com), or check out [the latest The Pulse](https://newsletter.pragmaticengineer.com/p/the-pulse-what-can-we-learn-from?ref=blog.pragmaticengineer.com) from today. Today's issue covers: * Bun’s Rust rewrite with Fable: what can we learn? * Anthropic’s Fable, OpenAI’s GPT-5.6 Sol, Cursor’s Grok 4.5, Meta’s Muse * North Korean hackers keep trying to infiltrate full-remote companies * Industry Pulse: Meta’s key logging exposed sensitive data, massive cuts at Xbox, Meta could not buy enough AI capacity from Google, Qualcomm acquires Modular, and memory price hikes hit Apple products.

相关动态

02

Kimi K3非对称竞争分析

Kimi K3在Arena前端/WebDev人类盲测中以1679 Elo排名第一,领先Fable 5(1631)和GPT-5.6 Sol(1618),但在综合智能指数中仅排第四(57.1分),落后Fable 5(59.9)和GPT-5.6 Sol(58.9)。K3定价15美元/百万输出tokens,远低于Fable 5的50美元,并计划7...

twitter关注列表2026-07-18#AI#模型#技术突破
观察
03

AI 代码生成大势所趋

Greg Isenberg 发文指出,相比一年前的手写代码实践,如今大多数工程代码已由 AI 生成,标志着编程范式的根本转变。他援引了 Google 75% 新代码由 AI 生成、Anthropic 90%+ 代码由 Claude 编写、GitClear 代码重复率上升 81% 复用率下降 70% 等具体数据,并引用 Dario Amod...

twitter关注列表2026-07-18#技术突破#行业动态#分析
观察
05

BestBlogs 早报 · 07-18

月之暗面发布Kimi K3,2.8万亿参数,896选16的Stable LatentMoE,上下文100万token,接近Fable-5但仍落后最强闭源模型,完整权重7月27日前开源;VentureBeat调查显示54%企业已发生AI代理安全事件;xAI开源Grok Build(84万行Rust代码)并残留上传用户代码痕迹;Cursor评...

twitter关注列表2026-07-17#AI#模型发布#开源
观察