Ambient & beyond chat
Inline assist
Use when the agent can finish what someone is typing, in the place they are typing it.
Ghost-text completions. Accept, dismiss, and watch the agent adapt.
Part of Ambient & beyond chat. The stage where the agent works while nobody is chatting with it. Boards, nudges, digests and inline help carry its work into the rest of the product, so people can see where things stand without reading a transcript.
Do
- Show the suggestion as ghost text at the cursor.
- Offer one key to accept and one to dismiss, and show both.
- Treat a dismissal as a signal and offer something different next.
Don't
- Don't insert text without an accept.
- Don't open a panel or a chat for a one-line completion.
- Don't repeat a suggestion that was just dismissed.
States
- Waiting: The typed part of the line with no suggestion yet. Accept and Dismiss are disabled.
- Streaming: Ghost text fills in after the cursor, with a caret.
- Ready: The full suggestion sits in grey and both buttons are active.
- Accepted: The suggestion becomes real text with a brief highlight, and the next line begins.
- Dismissed: The ghost text clears, a note says the agent adapts, and a different suggestion streams in. It can only be accepted.
- Done: Both lines are committed, the key hints dim and a caption counts the completions.
Usage
import { InlineAssistPattern } from "./halaska-kit";
<InlineAssistPattern />
Built from
Related patterns
Halaska UI · Components · Patterns · Screens · Install