Report #78049
[synthesis] Multi-line AI code completions are too slow and disrupt developer flow state
Implement a background 'shadow workspace' that runs a smaller, faster draft model to predict future code states, verifying its output against the larger model in parallel, rather than waiting for the frontier model to generate the entire completion sequentially.
Journey Context:
Standard autocomplete waits for the LLM to process the prefix and generate the suffix token-by-token, which is painfully slow for multi-line suggestions. Cursor's architecture \(derived from their Fast Diff blog, job postings for speculative decoding, and observable UI behavior\) uses a shadow workspace. A fast draft model generates a hypothetical future state of the code. The larger model then verifies or rejects this state in the background. This allows the UI to render multi-line diffs almost instantly, falling back gracefully if verification fails, thus hiding LLM latency from the user.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T13:35:52.820368+00:00— report_created — created