Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

81% Positive

Analyzed from 1953 words in the discussion.

Trending Topics

#cursor#code#claude#codex#tokens#using#model#tools#api#system

Discussion (68 Comments)Read Original on HackerNews

toshabout 1 hour ago
I can only recommend to regularly measure how many tokens a harness+model combination uses for a certain task

There are huge token efficiency/bloat differences between agents while working on the same tasks, using the same model, in the same environment

Yesterday I ran 10 agentic tasks using GPT 5.6 Sol in an ubuntu 26.04 vm a couple of times with different harnesses and got vastly different token usage.

  +-------------+-----------+-----------+-----------+-----------+--------+
  | Harness     | API total | Input     | Cached    | Uncached  | Output |
  +-------------+-----------+-----------+-----------+-----------+--------+
  | smol        |   172,807 |   142,334 |     8,704 |   133,630 | 30,473 |
  | Pi          |   427,211 |   392,767 |   137,216 |   255,551 | 34,444 |
  | OpenCode    | 1,564,429 | 1,523,957 | 1,204,736 |   319,221 | 40,472 |
  | Codex       | 3,005,744 | 2,953,154 | 2,649,344 |   303,810 | 52,590 |
  | Hermes      | 3,856,611 | 3,808,231 | 3,167,232 |   640,999 | 48,380 |
  | Claude Code | 5,073,137 | 5,029,969 | 4,587,008 |   442,961 | 43,168 |
  +-------------+-----------+-----------+-----------+-----------+--------+
https://x.com/__tosh/status/2083593799872237680

I'm not surprised that Claude Code is not optimized for an OpenAI model but I was still quite shocked re how much of a difference the harness makes.

Disclaimer: I'm working on 'smol' which is a minimalist harness but it's really nothing special, just a minimal system prompt, no skills files, only tool is shell

Do not underestimate how much popular harnesses are spamming the context window. The context window is very important.

yojoabout 1 hour ago
Claude Code injects a ton of tools into the system prompt, including their “memory system” that’s like 10k+ tokens. Depending on your task shape, this can easily double your task cost (e.g. a low context-using job that takes many turns, like a monitoring loop).

You should use --disallowed-tools to prune any tools not needed for the task. Note that this is also a perpetual game of whack-a-mole since they’re always adding new tools.

KronisLV25 minutes ago
> Claude Code injects a ton of tools into the system prompt

It's so unfortunate they don't let you use the subscription with other harnesses anymore - since even if I used OpenCode they'd still get a bunch of useful data from the API calls, meanwhile I could stretch their tier limits way further.

toshabout 1 hour ago
ty re --disallowed-tools

for coding agents 'shell' is often all you need (just make sure the environment has the necessary tools)

visargaabout 1 hour ago
The system prompt part is surely cached across all users.
yojoabout 1 hour ago
You still pay cache token costs on API calls. Cache cost/token are 90% lower, but you pay it every single turn.

I’m not sure if they let you skip the cache write cost on the first turn. That would imply cross-user caching infrastructure or special casing the default system prompt to give you a discount. Maybe? Away from the computer but you could try a “hello” in a fresh session and see what was billed.

dcrazyabout 1 hour ago
For Anthropic models, yes. But OP was using Claude Code with GPT.
toshabout 1 hour ago
the system prompt still takes up useful space in the context window and steers the model into unnecessary actions and over-thinking patterns
azuanrbabout 1 hour ago
What tools are you using to run the comparison? Or are you just running the prompts and checking them with something like ccusage?

I’m asking because I’ve been looking for agent harness comparison tools too. I’m interested in more than just the inputs and outputs—I also want the system prompts, traces, and tool calls. It’s useful to understand why Codex, for example, uses more tokens while Pi doesn’t.

Fewer tokens aren’t necessarily better if the agent skipped important checks. On the other hand, using more tokens could just mean it’s overthinking the process. Either way, seeing the full execution trace for the same task is really valuable.

tosh42 minutes ago
I built an ad-hoc custom comparison framework to inspect system prompts, caching behaviour, tool call outputs, exact api requests and responses and so on

I agree fewer tokens is not necessarily better but a bit counter-intuitively often the harness using fewer tokens is not only done faster but has better results

(that said: of course check the results, look at the full traces, agree!)

azuanrb34 minutes ago
Thanks! I ended up built my own too. Just thought there are other better options out there that I might've missed.
Groxx43 minutes ago
Running some local models and wondering what insanity was consuming 100k+ tokens to respond to "hello world" was rather eye-opening, yeah. Full of pointless fluff.
brettgriffinabout 1 hour ago
Anything else I can read about smol?

also, are you using a tool to collect those metrics? what is it?

toshabout 1 hour ago
smol is basically this 9 line python agent re-implemented in Go

https://news.ycombinator.com/item?id=49006862

I'll have more about it in the next hours/days, you can follow me on twitter in the meantime (https://x.com/__tosh)

esafakabout 1 hour ago
Same task? How did the results compare?
toshabout 1 hour ago
the tasks were all simple agentic tasks

like creating a checksum of a file, merging csvs and so on, fixing a makefile pipeline

with known 'good' outcomes

all harnesses could reach the outcomes, only cost, time, number of tool uses and so on were different

(Claude Code failed once in 1 task but I think that was just an unfortunate outlier, the tasks aren't that difficult)

xvxvx13 minutes ago
Elon will be paying his staff in tokens in the future. Grocery stores will have on-demand pricing shown in tokens, and prices will change from the time you pick up the product and you pay at the checkout. It’s Ok, Elon said money won’t exist soon anyway…
aromanabout 2 hours ago
I was an early and passionate adopter and paying customer of Cursor (since 2023!), but it’s probably been 6 months since I opened it.

These days I “write” code with claude code and codex, and read/review it on GitHub. If I need to read it locally, I use a plain text editor.

Can someone help me understand what value cursor offers in 2026?

tzone5 minutes ago
I have tried multiple times to switch from Cursor to VSCode + command line tools or VSCode plugin for Claude, but it just doesn't work as well as Cursor itself.

Especially if you are doing "remote" development through SSH. If you are doing stuff where you still have to write some parts of the code manually or you have to fix few things here and there that the AI outputs, you still need a real editor.

joinjuneabout 1 hour ago
It removes money from your pocket into theirs faster than Claude will take money out of your pocket and into theirs. I was a Windsurf then Cursor user and even provided product feedback to the Cursor team on various aspects of their product but the costs for using it killed the value.
redox99about 2 hours ago
Cursor has two benefits

1) It's still an IDE. Because of pricing I mostly use Codex, but I always have a VSCode/Cursor IDE open, thus have to juggle between the two. Working directly in the IDE is more comfortable. For full on vibecoding that might be worse, but when you want to do a deep review of the changes, an IDE is way better than reading a diff on github.

2) It supports every model. It's often very helpful to try different models when you don't like the result of the first.

pwythonabout 2 hours ago
Can't VS Code extensions solve your use case?
redox99about 2 hours ago
I tried the codex extension many months ago but I didn't like it. I use mostly the Codex App, or sometimes the Codex TUI inside the IDE terminal.
kalaksiabout 2 hours ago
Recently they also seem to have made big changes that makes Cursor worse for editing code by hand. I'm not sure what they are trying to do, but it doesn't feel like vscode fork anymore. I'm starting to consider alternatives.

To answer your question though, to me your workflow seems cumbersome. Cursor is more integrated and more frictionless.

leonvossabout 2 hours ago
I don't think it offers any. I got tired of switching between Codex and Claude plus I wanted to start using glm and kimi so I switch to pi. Then I got tired of VSCode eating up battery and RAM so I moved to Neovim which has barely any efficiency downside anymore since most code is not written by hand and if you know how to use it well it was only maybe 10% less efficient than VSCode to begin with. I am not sure why a heavy desktop application would be better than nvim + pi in terminal which are both super extensible via vibecoding and very light on resources.
urbsgpwabout 1 hour ago
Huh, never thought about that 2nd point - I'm also transitioning to pi, but didn't think to change to neovim as well. I guess your logic holds for claude code users as well though.
brettgriffinabout 1 hour ago
Look at Cursor CLI: https://cursor.com/cli
roncesvallesabout 1 hour ago
Cursor Tab is nice when you're hand-editing stuff. Not sure it's worth $20 though. I'd totally buy and forget a $5 Cursor subscription just for Cursor Tab.

The $20 price point is just too competitive now and I'd rather use the Claude/Codex plugin over Cursor's agentic coding sidebar.

Kiroabout 1 hour ago
The way they spin up multiple Composer 2.5 before sending it over to the model of your choice is nice.
teaearlgraycold15 minutes ago
I'm also confused about Cursor. I use Zed. It seems like whatever Cursor has is pure commodity and yet it's worth billions?
LeBitabout 2 hours ago
How do you diff ?

Unless by "text editor" you mean Neovim or Emacs ?

bakiesabout 1 hour ago
Sounds like on GitHub. That's how I do it too.
throw1234567891about 1 hour ago
git diff
dancemethisabout 1 hour ago
Code and reasoning generated by Opus/Fable via Cursor seems to be quite better than Claude Code's for the same prompt.
dgellow42 minutes ago
Does that mean you’re paying api prices + cursor markup (?), or can you somehow piggyback on your Claude subscription? Fable via the API is really too expensive
esafakabout 1 hour ago
jonjohnsen15 minutes ago
(I work at Cursor)

You can still see what you’re billed on the Spending page. We did accidentally break dollar costs in the Usage CSV export yesterday while cleaning up an old feature flag. That was not intentional and the CSV export is fixed now.

That feature flag also showed a dollar usage graph to some self-serve users. The confusing part was included plan usage shown as $, which is not what you’re billed (on-demand usage is). Some people read it as actual spend, so we decided to remove that graph.

cebert3 minutes ago
Do you really think that users on a subscription plan aren’t intelligent enough to know that you are showing dollars at API rates if they weren’t on a subscription plan? This is a terrible change.
cebert6 minutes ago
I think most standard users are intelligent enough to know if they’re on a subscription plan, the dollar amounts shown are if they were paying at API rates. This change is ridiculous.
slashdaveabout 2 hours ago
Cursor achieved fast adoption by making it simple to move from Visual Studio code.

Double-edged sword. It is also simple to move back to VS code and agent extensions.

murlax24 minutes ago
This is basically what I did. In 2023 I moved from VS Code to Cursor. And in 2025 when Opus 4.7 (or was it 4.6?) did that big leap in December, I switched to Claude Code and VSCode for any edits. I come from Sublime Text so those shortcuts are hardwired in me (which was also the defaults in VSCode). When Cursor hijacked literally every CMD key combo, I got fed up and switched back to VSCode. Maybe I should just go back to Sublime Text now lol, since I really just need a blazing fast code reader.
jjiceabout 1 hour ago
Saw this at work yesterday. Absolute insanity to do something as user hostile as removing the cost of the service. There's no way to attempt to brand this as anything but negative for the user, and positive for the company.

Gotta justify a $60B purchase of an IDE and (at the time) a single, decent model.

oooyayabout 2 hours ago
Cursor was a great introduction to agentic engineering but I've learned their Claude pricing is largely just batch purchases. Their real moat I think is Composer 2.5 because both their agentic and IDE experiences fall short of Codex and Claude Desktop in my opinion. I think their sales will tell you economically they make the most sense and I would probably agree, but cost isn't everything especially when the spread isn't that wide. At this moment, capability is really king.

These days I'm using Codex and Claude Desktop with Zen when I need to look at code. Codex's real time audio chat feature (not dictation) is also second to none when paired with their agentic flow.

jjiceabout 1 hour ago
Grok 4.5 is them as well now I guess since they're owned by spacex now. I'd consider grok 4.5 the sonnet and composer the haiku (both capable, fast models).
tanepiper44 minutes ago
This month I've noticed that my Cursor model use has gone up faster with Composer 2.5 - I have bothered with Grok yet. Despite the advertised twice-the-usage on Cursor own models I'd say it's burning faster.
reilly300044 minutes ago
Cursor has been my corporate vendor for accessing non-anthropic models. Without cost insights and with no ability to proxy API requests its value drops dramatically. They fought hard for a renewal with legacy pricing mode then broke the deal soon thereafter. I’ll be extremely clear to leadership that Cursor usage should be minimized and not renewed. I frankly don’t trust them with IP either, and you shouldn’t either, especially if you’re demonstrably not in a big enterprise.
throwa3562627 minutes ago
Elon-ification begins...
Advertisement
dietr1chabout 1 hour ago
They just don't want you feel obligated to thank them SO MUCH for hidden better prices
jmvoodooabout 1 hour ago
I’ve been working on a project to solve this problem with Claude code, codex, etc by recording usage and translating to $ in realtime. Looks like I’ll have to add Cursor support now.
cmiles8about 1 hour ago
If users start questioning the ROI of your AI product just hide the “I” from them. Problem solved.
hnnbxu2nwiabout 2 hours ago
Small thing but makes a big difference
btownabout 2 hours ago
I am shocked, shocked, that a company that is part of SpaceXAI would become hostile to its existing paying users and partners. This has never happened before in history.
bogometerabout 1 hour ago
The ground-truth is the rudeness is load bearing at human machine interface.
groestl32 minutes ago
The signal is the ceiling.
ncr10026 minutes ago
It's free? Oh it's priced in "tokens".

Kind of (barely) like how Facebook has "friends". Or how a Snickers bar costs $1.99 and not $2.

Abstracting meaning of "cost", reducing value of information. Maximizing profits. Enshittification.

grzesabout 1 hour ago
cursor is a scam. they pissed me with their UI changes & shady pricing, so i tried claude code recently for the first time and instantly regreted i havent tried earlier
DoesntMatter22about 1 hour ago
Built an awesome 450k line app with composer 2.5 and grok 4.5. I love it
shevy-javaabout 1 hour ago
Well ... don't use Cursor. It's really that simple.
sergiotapiaabout 2 hours ago
Cursor you have a beautiful comeback story, you have a wonderful model with Composer 2.5, and a terrific behemoth with Grok 4.5 now. A top-tier dev ux with the Cursor agent app, why on earth are you squandering this opportunity and behaving this way?

You came back from the dead pretty much and now you're pissing it away for what exactly?

Do not spite your individual developer customers or you will perish yet again.

dbbkabout 1 hour ago
If they were smart, they'd rebrand Grok to Composer. Nobody wants to use the Nazi model.
dgellow40 minutes ago
Given that cursor has been bought by Musk, the nazi branding might be on purpose
sergiotapia39 minutes ago
please, you're dramatically overestimating who gives a shit about this.
Advertisement