CursorSualeh AsifExplainer
Our problems
Summary
The post lays out problems Cursor is working on in AI-assisted coding, from selecting relevant context in large codebases to making edits and finding bugs. It proposes collecting 500k tokens from editor sources and using a custom, fast reranker to reduce that context to 8k tokens, while reporting 1.4 billion vectors and 150,000 codebases indexed as of October 12, 2023. Other planned capabilities include a constrained few-step agent that searches, writes, and runs code with feedback, passive and active bug finding, and larger edits presented in real time. Future ideas include time-warp predictions, code understanding in model weights, reader and pseudo-code modes, and automatic stack-trace fixes. The list is explicitly not a final roadmap because new ideas and priorities change, and the post also invites interested people to join the company.
Context
Cursor identifies many unresolved problems in AI-assisted software development: helping models choose the most relevant information from numerous code-editor sources, reducing low-entropy keystrokes for edits, enabling agents to work within large codebases, finding bugs, supporting larger changes, and scaling codebase indexing.
Approach / What changed
The proposed work combines a custom fast reranker, UX and model innovations for edits, constrained few-step agents, passive and interactive bug finding, real-time change presentation, and infrastructure such as a Rust-based Merkle-tree codebase syncing engine. The post also lists future ideas including time-warp predictions, reader mode, pseudo-code mode, and automatic fixes.
Takeaways
For each request, Cursor plans to gather 500k tokens from sources including open files, similar code, symbolically connected classes, lint outputs, execution traces, git history, and documentation, then rerank them down to the most relevant 8k tokens.
The proposed constrained agent would search, write, and run code while periodically consulting the user, initially operating on folders containing a few hundred thousand tokens before potentially scaling to entire codebases.
As of October 12, 2023, Cursor had 1.4 billion vectors and 150,000 indexed codebases; its Rust-based Merkle-tree syncing engine was already built, but a custom indexing system would probably be needed soon.
Source and freshness
- Source
- cursor.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.