Back to Blog
AI & Development

Claude Code Token Usage: From $90 to $20 per Issue

Claude Code gets expensive when it does mechanical work one turn at a time. Here is how we went from about $90 to about $20 in tokens per issue.

İbrahim Bayer

Claude Code Token Usage: From $90 to $20 per Issue
$90
Token cost per issue, before
$20
Token cost per issue, now
34.6%
Subagent turns with 2+ tool calls, up from 9.4%
3.6%
Subagent runs over 100 turns, down from 20%

Claude Code is expensive. It burns through tokens. We keep hitting usage limits.

If your team builds with AI coding agents, you have probably heard all three. We had the cost problem too: developing a single issue took about $90 in tokens. Today it takes about $20.

We did not get there with a clever prompt. We got there by looking at the boring work.

Why Claude Code burns through tokens

A simple model explains most AI coding costs: cost is roughly the number of model turns × the context each turn carries.

Every turn reads what came before: instructions, files, earlier messages and tool results. So two habits get expensive fast:

  • Context bloat: long sessions drag old output into every new turn.
  • One tool call at a time: commit, sync, check, push, check again. Each step is another turn over the same context.

Stop paying a model for mechanical work

We asked one question about every repeated step: does this need judgment?

If yes, the model does it. If no, a command does it once and reports back briefly.

That command layer is lc, our in-house command-line tool for LeanCart development.

Four ways to cut tool calls

  • Batch independent tool calls. Searches and file reads that don't depend on each other go out in one turn, not five.
  • One command for a chain of steps. Delivery meant committing, syncing with the main branch, scanning for leaked secrets, pushing, opening the merge request and queueing the review. Now it is one command.
  • One entry point for validation. One command runs the checks and returns a compact summary. The agent reads the result, not pages of logs.
  • No paying to wait. Long jobs run in the background. The agent is notified when they finish instead of asking again and again.

Fight context bloat

Fewer turns is half of the formula. Smaller context is the other half. This is context engineering in practice:

  • Each task starts from a short written brief, not from a long discovery conversation.
  • A fresh context takes over when the history stops being useful.
  • Compact project documentation saves the agent from rediscovering the codebase every time.

In our documentation experiment, token use compared with reading the code directly went from 1.28× to 0.77× after tuning. In scenarios we had not tuned it was 0.95×, with a slightly lower quality score.

The result: from $90 to $20 per issue

  • Token cost per issue: about $90 before, about $20 now
  • Turns carrying more than one tool call (subagent runs): 9.4% → 34.6%
  • Subagent runs longer than 100 turns: 20% → 3.6%
  • Prompt cache hit rate (November 20 to 24, 2026): 96%

How to read these numbers: both cost figures are per issue, measured the same way. Dollar amounts are calculated at API list prices, not taken from an invoice. Our scripts, models and task mix also changed along the way, so we do not credit the whole difference to one change.

How to reduce your AI coding costs this week

  • Step 1. List the steps your agent repeats on every task.
  • Step 2. Mark the ones that need no judgment.
  • Step 3. Turn the longest chain of them into one command with short output.
  • Step 4. Measure turns and cost per issue before and after. Keep the records.

FAQ

Why is Claude Code so expensive on some tasks?

Look at turns and context first. A long session with many small steps pays for the same history again and again.

Does a bigger context window fix it?

No. A bigger window gives you room. Whatever you put in it is still carried from turn to turn.

Will this help with usage limits?

Limits are consumed by usage, so waste matters there too. We measured cost, not limits.

Do we need to build our own tool?

Not to start. One script that replaces your longest mechanical chain is enough to learn from.

Want to see where your tokens go?

We help teams build with AI agents without paying for mechanical work.

Book a call
WhatsApp +90 533 432 44 89

Look at the boring work first

The biggest lesson was not about how the model writes code. It was about what we stopped asking it to do.

Find the mechanical work in your AI workflow

We will walk through where your turns and tokens go.

Book a call

Tags

#claude code#token usage#ai coding costs

Related Posts

📝
AI & Security

The framework we use so the same bug never ships twice

How we use Claude Code memory, skills, and hooks so an AI agent does not repeat the same mistake twice. A scenario every founder has lived, and the loop that ends it.

İbrahim Bayer
5 min
#claude code#ai agents#engineering
📝
AI & Development

AI Prompt Generator: Universal Coding AI for Any Language

Use any programming language with consistent prompt generation. From Python to JavaScript, automate code documentation, API integration, and testing workflows with AI-powered consistency across all development environments.

İbrahim Bayer
4 min
#prompt generator#code consistency#automation