This website uses cookies

Read our Privacy policy and Terms of use for more information.

// AI Lessons

Cut Your AI Token Bill With a 20-Minute Audit

Your agent can reach your email, your files, and your calendar. Twenty minutes and a microphone to decide what it's actually allowed to do with them.

I found out I was an AI over-spender the same way I found out I was a cloud over-spender in the 2010s — the bill told me. My Manus account runs out of credits most months before the billing cycle ends, and when I finally ran the numbers on my Claude Code usage, the pattern was embarrassing: I was paying for the same conversation history over and over, letting agents read half a repo to fix one file, and running frontier models on work an entry-level model handles fine.

So here's the thing nobody tells you about token waste: it isn't a leak, it's a subscription. An agent has no memory between turns — every turn it re-sends the entire conversation back to the model, and you're billed for all of it again. A token you wasted on turn 3 keeps costing you on turns 4, 5, and 6. The good news: the fix takes about twenty minutes, and most of it is habit, not tooling.

Measure your burn before you change a thing.

// The Takeaway: Run ccusage to get a baseline of exactly where your Claude tokens go, then attack the four sources of waste: what goes into the context window, what tools dump back, what the model writes, and what gets re-billed every turn. Same monthly spend, sharper output — you're not using AI less, you're making every token earn its place.

Run npx ccusage@latest in your terminal now → Twenty minutes. Free, open source. No signup, no config.

Every AI conversation runs on tokens — the smallest unit of data a model processes, roughly four characters of text. Your context window is the model's working memory, and it's the most valuable real estate you have. Fill it with the three files that matter and you get sharp work; fill it with forty files of noise and you get a distracted intern — one that charges by the word.

// The real shift: Stop thinking of your AI subscription as all-you-can-eat and start thinking of the context window as a budget you spend every single turn. The skill isn't spending less — it's knowing what each token is buying you. That's the same mental move cloud-native companies made with FinOps a decade ago, just closer to the keyboard.

Know the four places tokens die

Every wasted token falls into one of four buckets:

  1. What goes in. Pasting whole documents, letting a coding agent crawl folders. Everything you let in early gets re-sent — and re-billed — on every later turn.

  2. What tools hand back. Build logs, test output, terminal spew. The errors matter; the noise doesn't.

  3. What the model writes. Output tokens cost 4–6x more than input — Claude Opus 4 runs $15 per million tokens in and $75 out. Verbose answers are expensive twice: once when generated, again when they re-enter the context next turn.

  4. What gets re-paid across turns. Conversation history rides along on every request. Prompt caching serves reused context at a fraction of the price — cached reads cost about 10% of the base input rate — but only if you structure your work to take advantage of it.

The twenty-minute move

  1. Get your baseline (3 minutes). Open a terminal and run npx ccusage@latest. It reads your local Claude Code logs and shows daily token usage and cost, per model. Note your daily average — that's the number you're trying to beat.

  2. Find the burn (3 minutes). Run npx ccusage@latest session to see which conversations ate your budget. Long-running sessions near the top of that list are your O(N²) offenders — history re-billed every turn.

  3. Tighten your CLAUDE.md (5 minutes). It's the highest-leverage file you have, but every line gets re-sent on every turn. Cut it to what the agent needs on every task; move everything situational into files it can read on demand.

  4. Point, don't crawl (2 minutes to adopt). Reference the exact file — "fix the validation in auth.ts" — instead of "fix the login bug." Every file the agent didn't have to hunt through is context you didn't pay for.

  5. Reset the window (2 minutes to adopt). Run /clear between unrelated tasks and /compact when a long session's context fills. In the Claude app, start a fresh chat when the topic shifts, and edit your last message instead of stacking corrections that all stay in context.

  6. Match the model to the job (3 minutes). Use a fast, cheap model for well-scoped execution and save frontier reasoning for planning and review. The spread between the cheapest and most expensive output token runs up to 375x — don't pay reasoning prices for grunt work.

  7. Re-measure in a week (2 minutes). Run npx ccusage@latest again and compare against your baseline. What gets measured gets managed — and this is the rare optimization you can verify with one command.

Bonus: the same audit in the Claude app

No terminal required. Set up Projects to load your reference files once instead of pasting them into every conversation, and turn on memory so you stop re-explaining your role, your company, and your preferences — that's hundreds of tokens of setup you're currently paying to repeat in every chat. Batching helps too: one structured prompt with three asks beats three separate prompts that each drag the full history along behind them.

Why this matters this week

The market just made conservation a business skill. Uber burned through its entire 2026 Claude Code budget in four months, one enterprise reportedly spent half a billion dollars on Claude in a single month, and Gartner projects AI coding costs will rival developer payroll by 2028. The habits in this Lesson are the individual version of the governance your company is about to mandate anyway. Learn them now and you're the person in the room who already knows where the tokens go — Friday's Deep Dive picks up the story at the enterprise level.

Your AI Sherpa,

Mark R. Hinkle
Founding Publisher, The AIE Network
Follow me on LinkedIn

If you want to get in contact or give me feedback, reply to this email. I read every single one of them.

Keep Reading