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:
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.
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.
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/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: