Standard

Ghost completion

Greyed inline prediction the user accepts with a key, keeping the model subordinate to the typist.

Ticket #4821Duplicate charge · Dana Ortiz Autocomplete
DO
Dana Ortiz dana@ortizstudio.co · 9:12

Hi, I was charged $1,240 twice for the August invoice (card ending 4417). Can you fix this?

Reply to Dana Ortiz Suggested in 138 ms
0 accepted · 0 ignored

Try it: Press Tab (or tap Accept) to take the grey suggestion, or type over it. It never moves your cursor or steals a key you meant for something else.

In the wild

How 3 products ship this pattern. Click a screenshot to enlarge it.

VS Code editor where a function signature is followed by dimmed, italic suggested code for the function body.
GitHub Copilot in VS Code
The suggested body appears as dimmed ghost text at the cursor. Tab accepts it, and typing anything else makes it disappear.
Source: VS Code docs ↗
VS Code gutter arrow with an expanded menu for a Copilot next edit suggestion.
Copilot next edit suggestions
The same idea extended past the cursor: a gutter arrow marks the next edit Copilot predicts, with a menu to accept, reject or learn more.
Source: VS Code docs ↗
Three email drafts compared: Superhuman shows grey ghost text completing 'I'll send over the pr' to 'proposal', while the Gmail and Outlook boxes show only typed text
Superhuman
Superhuman Autocomplete shows the rest of a word or phrase in grey ahead of the cursor. Tab accepts it and typing on ignores it.
Source: Superhuman changelog ↗

When to use

High-frequency typing surfaces where interruption cost is higher than error cost.

Seen in

GitHub Copilot, Cursor Tab, Gmail Smart Compose, Notion autofill.

For engineers

Debounce on keystroke and cancel in-flight requests; latency budget under ~200ms or it reads as lag.

Build prompt

A neutral, component-only prompt for a coding agent. Edit the stack block or anything else to fit your project, then copy it.

Download this prompt as Markdown, or every prompt as JSON for an agent.

Critique checklist for inputs

0 of 4 checked

These questions apply to every pattern in this family. Ticks are saved in this browser.