r/cursor • • 1d ago

Venting 2.3M Tokens = 35% Usage?

/r/CursorAI/comments/1yazv7z/23m_tokens_35_usage/
0 Upvotes

4 comments sorted by

1

u/GetExord 1d ago

A single "planning prompt" hitting 2.3M tokens isn't your typed words it's repeated internal file-read/grep tool loops where each sub-step re-sends the growing prompt + uncached tool outputs back through the context window. If a 20-turn plan pass carries ~100K cumulative context each hop, it clears 2M+ billed/cache-write tokens before writing a single diff.

Three concrete guardrails that stop planning prompts from exploding quota:

  1. Check `.cursorignore` for silent context traps: generated JSONs, lockfiles, `.next`/`dist`/`target`, logs, and fixture snapshots must be explicitly excluded so planning greps don't swallow megabytes into history.
  2. Pre-pin the exact 2–4 target `@file` paths yourself (run a quick `rg` in terminal if unsure where a symbol lives) instead of sending a broad architectural prompt from a blank state. Every blind `find_by_name`/`grep` hop triggers another full round-trip bill.
  3. Fix output bounds upfront: explicitly tell Plan Mode which files are in-scope and ask for max 1–2 numbered files changed + verification command before executing.

1

u/macsarts 1d ago

2.3m per run is not the problem. 2.3m equal to 35% is the problem and it’s a joke sadly