← EVENT LIBRARY / AI Engineering

Cursor cuts agent token costs with smaller prompts and lazy tools

Cursor reports a 7% reduction in user token cost without measured quality loss after cutting about two-thirds of its system prompt, loading low-frequency tool definitions lazily, improving cache boundaries and numbering only every tenth source line. The cache changes reduced cold misses by 20%. Earlier lazy loading of MCP tool definitions cut total tokens by 46.9% in sessions that invoked MCP, while offloading built-in tool definitions reduced static description tokens by 60%. The results come from Cursor's production traffic and A/B tests, not an independent benchmark.

Imported from the existing research archive. Migration preserves the recorded judgment and is not a fresh verification.

What this means for you

For teams operating long-running agents, this is a practical optimization order: shrink the stable prefix, load tool schemas only when needed, make cache boundaries explicit, compress file context, then add subagents selectively. The hard part is preserving behavior while changing context shape, so each optimization needs task-level regression tests rather than token metrics alone.

Evidence & related material

Background · Historical record, not rechecked

Cursor reports a 7% reduction in user token cost without measured quality loss after cutting about two-thirds of its system prompt, loading low-frequency tool definitions lazily, improving cache boundaries and numbering only every tenth source line. The cache changes reduced cold misses by 20%. Earlier lazy loading of MCP tool definitions cut total tokens by 46.9% in sessions that invoked MCP, while offloading built-in tool definitions reduced static description tokens by 60%. The results come from Cursor's production traffic and A/B tests, not an independent benchmark.

Technical details & scores
Overall 7% user token-cost reduction with no measured quality loss
System Prompt about 66% smaller
Cache 20% fewer cold cache misses
Mcp 46.9% fewer total tokens in sessions invoking MCP after dynamic tool loading
Built In Tools 60% fewer static description tokens
Source Lines number every tenth source line instead of every line
Technical impact 3
Engineering value 5
Adoption signal 4
Maturity 4
Verification cost 2
Risk 2