Spending Tokens Like They're Money
- ai
- cursor
- engineering-management
- developer-experience
AI coding tools are cheap right now and that won't last. What my team changed about model choice, context and Cursor usage so we could run on a real budget.
Contents
Most engineering orgs I talk to are in one of two places with AI tools. Either nobody looks at the bill because the productivity gains end the discussion, or someone looked, panicked, and capped seats, so the best tool on the team is now rationed.
In both cases nobody really knows what anything costs.
That's fine for now. Tokens keep getting cheaper, but each developer uses more of them every month, and an agent running for twenty minutes over a whole repo uses far more than a chat window did two years ago. The total bill is going up. I want my team to learn to spend well while mistakes are still cheap.
Here's what we changed.
You pay for what you send
The first thing to understand is that you're rarely paying for the model's answer. You're paying for everything you sent it, again and again.
A 40-turn agent conversation sends the whole history on every turn. Turn 40 costs about forty times what turn one did for the same quality of thinking. Add a few files the agent read early on and never needed again, and most of your spend is re-sending things the model has already seen.
You can do the maths. If a conversation starts with 15k tokens of context and each turn adds 1k, billed input grows with the square of the turn count, because every turn pays for all the turns before it.
If you work out of one long chat all day, every message costs more than the last, just so the model can remember a naming debate from an hour ago.
So we picked up three habits. They save more than any model choice:
New conversation per task. Not per day or per feature. Per task. Keeping one huge chat open all afternoon is the most expensive thing most developers do. Finish a task, close the chat. If the next task needs context, two sentences of summary is far cheaper than 30,000 tokens of history.
Point at files instead of letting the agent search. An agent grepping for the right file can burn ten tool calls finding something you already knew. @-mentioning two files costs almost nothing and usually gets a better answer, because the model isn't reasoning over search results.
Write your conventions down once. A rules file (.cursor/rules, AGENTS.md, CLAUDE.md, whatever your tool reads) gets loaded once per session, so you don't have to explain the same things in every prompt. Ours lists which design system components to use, how we write tests, and three patterns we don't want. It's one page, and it got rid of a lot of back and forth where the model wrote something that looked right, was wrong, and we had to correct it.
Pick the model per task
Most developers pick one model and use it for everything, usually the best one.
What works better is a ladder. Use the cheapest option that gets the job done in one pass. The "one pass" part matters. A cheap model that needs four rounds of fixes costs more than one good pass, and it eats your attention, which you have less of than money.
| Rung | Reach for it when | Context it needs | You picked wrong if |
|---|---|---|---|
| Tab completion | You already know the next few lines | The open file | You're typing it out anyway |
| Inline edit | The change has a clear boundary | The selection | You had to explain the codebase |
| Agent, small model | The shape is decided, the work is spread | A few named files | It needs three corrections |
| Agent, frontier model | Debugging, unfamiliar code, design, migrations | Whatever it asks for | You never needed the reasoning |
| Long-context mode | The task genuinely needs everything in view | The file set | It was one function |
How I use each one:
Tab completion for anything I could have typed myself. It's cheap and gives you the most for the money of anything in the toolchain. People skip it because agent mode feels cooler.
Inline edit on a selection for mechanical changes with a clear boundary: make this async, pull this into a hook, add the error case. Small context, fast model, done.
A small or mid-tier model in agent mode for multi-file work where the shape is already decided. Adding a field through an API, copying an existing pattern into a new module, writing tests for code that already exists.
A frontier model for the hard stuff: bugs that cross systems, unfamiliar code, design work you'd normally do on a whiteboard, migrations where one wrong pattern gets copied a hundred times. I don't think about cost here and I don't want my team to either. Going cheap on hard problems saves you eight dollars and costs you two days.
Long-context or "max" modes only when the task really needs every file in view at once. A big refactor does. "Explain this function" doesn't, and the cost difference between the two is big.
Tip
How much you send matters more than which model you pick. A frontier model with 3k tokens of well-chosen context is cheaper, and usually better, than a mid-tier model with 100k tokens of repo dumped into it.
Use deterministic tools first
A lot of what people ask AI to do, a normal tool already does perfectly and for free. Renaming a symbol everywhere is a refactor command. Reformatting is a formatter. The same API change across 400 files is a codemod. Writing that codemod is a good use of an expensive model. Running the model 400 times is not.
So I use the model to build the tool, then run the tool. One expensive call that writes a jscodeshift transform beats 400 cheap calls that each change a file slightly differently and leave you a diff nobody can review.
| Task | Wrong tool | Right tool |
|---|---|---|
| Rename a symbol everywhere | Agent, per file | Language server refactor |
| Reformat, sort imports | Agent | Formatter, on save |
| Same API change in 400 files | Agent, per file | One codemod, written with an agent |
| Find every caller of something | Agent search loop | grep, then hand the agent the list |
| Decide what the new API should be | Any of the above | Frontier model, and take your time |
Save the model for judgement calls. If a task has one correct answer, use a tool that computes it.
Show the numbers, don't cap them
The usual management move is to cap spend. I think that's a mistake, and I've seen it go badly. With hard per-seat caps, your most productive people hit the limit first, in the middle of a sprint, and then work slower for a week.
What worked for us was really simple. We put usage per person on a shared dashboard everyone could see, with no target and no penalty for being high.
That was the only change, and spend dropped noticeably within a month. Nobody was told to cut back. Two people saw their own number, wondered why it was so high, and found they'd each kept one chat window running for weeks. You can't fix a habit like that with a policy. People just need to see it.
The one number I'd show leadership is cost per merged pull request over time. It's rough and people could game it, but it turns "AI is expensive" into "AI costs us this much per piece of shipped work," and you can defend that. Ours is tiny next to an engineer's hourly cost, and having that comparison ready has ended every budget discussion I've been in.
Warning
Don't tie usage numbers to performance reviews, and say so clearly when you share them. As soon as people think their AI spend is being judged, the heavy users stop using the tools, and the people who know the least end up looking the most efficient.
If your budget is really small
All of the above assumes some room to play with. If you're a small team, a solo dev, or somewhere a per-seat subscription is a real expense, the tools are still worth it. You just need to be pickier about where you use them.
Spend where your own time costs the most, not where AI looks most impressive. Reading an unfamiliar codebase, writing tests you'd otherwise skip, doing migrations you keep putting off: all worth paying for. Generating boilerplate you could get from a template isn't.
Batch your questions. Five related questions in one conversation cost far less than five separate sessions that each have to load the same context.
If you're building on an API, think about prompt caching. Put the stable parts first (system instructions, reference material) and the changing parts last. Cached prefix tokens are much cheaper, and for high-volume work, getting the order right can save most of your bill.
And actually use the small models. On routine work the gap between a fast cheap model and a frontier one has shrunk a lot, and for plenty of day-to-day engineering the cheap one is fine.
What I really think
Spending less isn't the main goal. Knowing what you're paying for is.
If your team knows where its AI spend goes and which tasks it pays off on, you'll make good calls whichever way prices move. If nobody has looked, you'll overspend while tokens are cheap and cut in a panic when they aren't.
None of this is hard. New chat per task, name your files, use the cheapest model that works, run normal tools before AI, and put the usage numbers where everyone can see them.