Skip to Content
IDEsCursor

Tokenminning in Cursor

Cursor re-sends context on every agent step: rules, attached files, MCP tool schemas, and growing chat history. Most IDE spend comes from long threads and heavy configuration—not from one verbose reply.

Work through the sections below in order. For the general technique stack, see Where to start. For underlying patterns, see Context hygiene, Model routing, and Prompt hygiene.

Quick checklist

  1. Open cursor.com/dashboardUsage and note spent vs remaining allowance and which token groups are highest.
  2. Use Auto or Composer for routine agent work. Reserve frontier models for tasks that actually need them.
  3. Shorten project rules and disable MCP servers you are not using.
  4. Start a new chat for each task—not one marathon thread.
  5. Audit Memories and global user rules if input tokens stay high.

Typical impact when you follow the list: 60–90% savings on routine requests by switching models; 20–50% on input by trimming rules and MCP; 30–60% less cache growth from shorter chats. Benchmark on your own dashboard—your mix of Agent vs Tab and default models will differ from anyone else’s.

How Cursor bills a request

Each agent turn sends your prompt plus everything Cursor attaches. Follow-up messages reuse cached context as cheaper cache read tokens, but the cache keeps growing until you start a new chat.

Cursor splits usage into four groups that matter for debugging:

  • Input — prompt, rules, @ files, MCP schemas. High input means configuration bloat.
  • Cache write — context stored for reuse in later steps. High cache write means large first messages or heavy tool results.
  • Cache read — previously cached context reused at reduced cost. High cache read means the thread is too long.
  • Output — model responses, diffs, tool-call arguments. High output means verbose replies, thinking models, or too many revision cycles.

Individual plans include two separate monthly pools: an API pool for named frontier models at provider rates, and a First-party models pool for Auto, Composer 2.5, and Grok 4.5 with more generous included usage. Cache reads cost roughly 10–25% of fresh input. See Usage and limits  and Models & Pricing  for current plan allowances.

1. Measure first

How much have I spent?

Open cursor.com/dashboardUsage. That page is billing truth for this billing cycle: dollars spent, remaining allowance, and any on-demand charges.

Usage shows:

  • Spent — how much of your included allowance you have used so far (USD)
  • Remaining allowance — what is left before you exhaust included usage or need on-demand billing
  • On-demand charges — pay-as-you-go spend after included usage is exhausted (only if usage-based pricing is enabled)
  • Token breakdown — input, cache write, cache read, and output by model and time range
  • Reset date — when the cycle rolls over (unused allowance does not carry forward)

Glance at remaining allowance before a long Agent session. If API allowance is low, switch to Auto or Composer so work draws from the First-party models pool instead.

Two usage pools

Individual plans track two pools that reset on your monthly billing date:

PoolModelsAllowance
APINamed models you pick — Sonnet, GPT, Opus, etc.Monthly USD allowance; scales with plan tier — see Usage and limits 
First-party modelsAuto, Composer 2.5, Grok 4.5More generous separate allowance, tracked on its own meter

Frontier models burn the API pool fastest. Auto and Composer draw from the First-party pool, which is why they are the default for routine agent work. Both pools are visible in the dashboard and in editor settings.

Billing tab

cursor.com/dashboardBilling:

  • Subscription tier, price, and renewal date
  • Usage-based pricing toggle — continue at API rates after included usage runs out
  • Spending limit — hard cap on on-demand charges so a heavy week cannot surprise you
  • Manage Subscription — plan changes and the exact usage reset timestamp

Tab completions are unlimited on individual plans. What you are metering is Agent, Chat, and named-model API calls.

In-editor check

The in-editor usage indicator shows a quick remaining-allowance snapshot while you code. Use it for mid-session guardrails; reconcile against the dashboard after heavy weeks.

Teams

Per-user model usage via the Analytics API  or Admin API . Team admins also get usage analytics in the Teams dashboard . Teams seats bill API usage at model rates plus a Cursor Token Rate  on non-Auto third-party models.

After a heavy Agent week, check which token group moved most and which pool dropped fastest. That tells you whether to switch models, shorten chats, or trim rules and MCP.

2. Match the model to the task

See Models & Pricing  for current rates. This is Cursor’s version of Model routing: default cheap, escalate only on failure.

Start here:

  • Tab — completions and small edits
  • Auto or Composer — log checks, grep-style questions, renames, most agent work
  • Mid-tier — multi-file refactors
  • Frontier (Sonnet, GPT-5.x, etc.) — deep debugging or novel design only
  • Thinking variants / Opus — last resort

Costs more than you expect:

  • Thinking / extended-reasoning models — extra reasoning tokens bill as output
  • Max Mode — full context window at API rates; use only when you need it
  • Frontier defaults on tasks Auto handles fine

When you switch models mid-chat, the new provider does not inherit the previous cache. Start a new chat when changing models.

3. Trim what rides along every request

Input bloat in Cursor usually comes from configuration—not your prompt text alone.

Rules

Project rules in .cursor/rules/ are injected into every Agent conversation. Cursor’s guidance  is explicit: they compound.

  • One concern per rule file; keep them short
  • Use file globs instead of alwaysApply: true on everything
  • Reference files by path—do not paste entire style guides (use linters instead)
  • Do not duplicate the same instructions in rules, AGENTS.md, and CLAUDE.md
  • Move occasional instructions to Skills  or @-mention rules manually

Audit user rules (Settings) and team rules (dashboard) the same way.

MCP servers

Each enabled server adds tool schemas to agent context—even when no tool is called. See Cursor MCP docs .

  • Disable servers you are not using this week
  • One narrow, task-specific server beats five overlapping ones

Memories

Memories  persist facts across sessions. Useful for project decisions; costly when large fragments attach to every request. Review and prune in Settings → Rules. Disable if you do not need cross-session recall.

@ mentions

Modern agents search the codebase on demand. You rarely need @codebase plus a large folder for a one-line fix.

  • Prefer a focused prompt: “fix spacing in Navbar.tsx only”
  • Use @filename instead of pasting full file contents into chat

See Context hygiene for the general just-in-time retrieval pattern.

New chat per task

Start a new chat when you finish one task and begin another, when you switch models, when cache read dominates your dashboard, or when the agent loops on a stuck problem.

4. Write tighter prompts

Cursor-specific versions of Prompt hygiene:

Too broad:

Fix this bug. Also review the whole auth system and suggest improvements.

Scoped:

Fix ONLY the null check in auth/login.ts line 42. No explanations. Max 1 file changed.

Batch related fixes in one message instead of five separate agent turns. Review diffs before accepting—each rejected revision is another output bill.

5. Set spending guardrails

Cursor does not enforce your inference budget. You set the limits.

  • Glance at Dashboard → Usage after heavy sessions — check spent, remaining allowance, and on-demand charges
  • Know which pool you are drawing from (API vs First-party models) and your plan’s included API allowance
  • Enable a usage-based spending limit in Dashboard → Billing
  • Team admins: usage analytics and per-seat types in the Teams dashboard 

For metering and caps in products you ship, see Article I and Article IV.

Troubleshooting

High input — rules, MCP, or heavy @ attachments. Shorten rules; disable unused MCP.

High output — verbose agent, thinking model, or many revision cycles. Tighter prompts; cheaper model; review before accepting.

High cache write — large tool results or big first messages. Narrow scope; truncate attachments.

High cache read — thread too long. New chat per task.

Spike after enabling Memories — memory fragments attach per request. Prune or disable.

Spike after switching models mid-chat — cache miss on new provider. New chat when switching.

When Cursor optimization is not enough

Trimming Cursor configuration does not fix production agent loops. If customer-facing features dominate spend, instrument with per-feature tags and apply Context hygiene, Prompt caching, and Output and RAG. Narev  provides normalized USD across providers if you need cross-provider cost math.

Last updated on