Near-Instant Full-File Edits
Frontier models such as GPT-4o struggle on large edits, with problems of laziness, inaccuracy, and high-latency. This is a weakness visible in coding agents. Accurately editing hundreds of lines can take multiple model calls, at times trapping the agent in an infinite loop. Even small, isolated edits are plagued with bugs: Worst of all, existing models are slow at large edits, breaking the programmer out of flow. We've trained a specialized model on an important version of the full-file code edit task called fast apply. Difficult code edits can be broken down into two stages: planning, and applying. In Cursor, the planning phase takes the form of a chat interface with a powerful frontier model. Applying the change to the current file should be straightforward and instant. Our fast-apply model surpasses GPT-4 and GPT-4o performance and pushes the pareto frontier on the accuracy / latency curve. We achieve speeds of ~1000 tokens/s (around 3500 char/s) on our 70b model using a speculative
Blog / research Frontier models such as GPT-4o struggle on large edits, with problems of laziness, inaccuracy, and high-latency. This is a weakness visible in coding agents. Accurately editing hundreds of lines can take multiple model calls, at times trapping the agent in an infinite loop. Even small, isolated edits are plagued with bugs. Worst of all, existing models are slow at large edits, breaking the programmer out of flow. We've trained a specialized model on an important version of the full-file code edit task called fast apply . Difficult code edits can be broken down into two stages:
Explore this link on the map →related reading
- Coding Models Are Doing Too Much | whnrehiew.github.io
- Shipping at Inference-Speed | Peter Steinbergersteipete.me
- A Guide to Claude Code 2.0 and getting better at using coding agents – sankalp's blogsankalp.bearblog.dev
- GPT-4openai.com
- Composer2.pdfcursor.com
- gpt-4.pdfcdn.openai.com
- Best practices for Claude Code - Claude Code Docsanthropic.com
- 2506.17298arxiv.org
- How I Use Claude Code | Philipp Spiessspiess.dev
- 2025: The year in LLMssimonwillison.net
- Don’t Outsource Your Thinkingteltam.github.io
- Introducing SWE-grep and SWE-grep-mini: RL for Multi-Turn, Fast Context Retrieval | Cognitioncognition.ai