Skip to content
Back

AI inline editPro

Edit a document with AI in place: select a sentence, ⌘K, pick an action, and the rewrite streams in as a word diff you accept change by change, with undo and ghost-text completions.

oxyn add ai-inline-edit
YouSelect a word · ⌘K

Launch plan

The launch is basically ready and we will really ship it to everyone in order to get feedback early. Please note that users must opt in before teh beta starts.

Our agent is very careful with your data. It's going to ask before it sends anything and we'll keep alot of logs so you can see what it did.

The rollout starts with internal teams, then design partners, then the waitlist

The code is part of Oxyn Pro

The preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.

Get Pro

Rendered from Rust at build time · goes live when visible

When to use

  • Edit a document with AI where you read it.
  • Click a word to select its sentence (Shift+click extends); an Edit bubble appears; ⌘K opens a prompt under the selection with quick actions (Shorten, Make clearer, Friendlier tone, More formal, Fix grammar) and a free instruction.
  • The rewrite (scripted_rewrite in the preview; a host passes its model output) streams in three words every 34 ms as a word diff (rewrite_chunks): text the stream has not reached waits dimmed, deletions strike and insertions develop in.
  • In review each change has its own Accept / Reject; Accept all applies. ⌘Z / ⇧⌘Z undo and redo AI edits.

When not to use

  • Prompt composer with model picker, voice input, app connections and approval request: use Chat Composer instead.
  • The model menu of an AI chat: use Model Picker instead.
  • The prompt box for an agent, in six layouts: use Composer instead.

Installation

AI inline edit is part of Oxyn Pro; the preview is free. Pro items install with the oxyn CLI once your licence is signed in; until then Pro members copy the code from this page.

Terminal
oxyn add ai-inline-edit

Usage

Dioxus · rust
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Examples

Rewrite

Click a word, ⌘K, pick Shorten: the rewrite streams in as a diff.

YouSelect a word · ⌘K

Launch plan

The launch is basically ready and we will really ship it to everyone in order to get feedback early. Please note that users must opt in before teh beta starts.

Our agent is very careful with your data. It's going to ask before it sends anything and we'll keep alot of logs so you can see what it did.

The rollout starts with internal teams, then design partners, then the waitlist

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

Slow stream

Half speed, to watch unreached text wait dimmed.

YouSelect a word · ⌘K

Launch plan

The launch is basically ready and we will really ship it to everyone in order to get feedback early. Please note that users must opt in before teh beta starts.

Our agent is very careful with your data. It's going to ask before it sends anything and we'll keep alot of logs so you can see what it did.

The rollout starts with internal teams, then design partners, then the waitlist

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

No ghost

Without ghost-text completions.

YouSelect a word · ⌘K

Launch plan

The launch is basically ready and we will really ship it to everyone in order to get feedback early. Please note that users must opt in before teh beta starts.

Our agent is very careful with your data. It's going to ask before it sends anything and we'll keep alot of logs so you can see what it did.

The rollout starts with internal teams, then design partners, then the waitlist

Code Pro
The code is part of Oxyn Pro

The preview is free. Pro opens the code of every Pro component, screen and template.

Get Pro

API reference

AiInlineEdit

PropTypeDefaultDescription
titleString"Launch plan"Title.
paragraphsrequiredVec<String>—Paragraphs.
nowrequiredClockMs—Clock (drives the stream).
actionsVec<QuickAction>QUICK_ACTIONS.to_vec()Quick actions.
speedf321.0Stream speed multiplier.
ghostbooltrueGhost-text completions.
authorString"You"Author in the header.
review_eachbooltrueChanges start accepted on Esc-less review (`false` = reject when undecided at apply).
on_changeEventHandler<Vec<String>>—The document changed.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
⌘KorCtrlKOpen the prompt on the selection (or the first sentence); again to close
↑or↓orEnterMove through quick actions and run one; typed text sends as a free instruction
EscClose the prompt, stop the stream, reject all in review, or dismiss ghost text
TabAccept ghost text; in review, move between changes
EnterorBackspaceAccept / reject the focused change
⌘↵Accept all remaining changes
⌘Zor⇧⌘ZUndo / redo AI edits

Accessibility

  • The editor is a labelled region; the prompt is a dialog with a combobox and a listbox of actions (aria-activedescendant).
  • Each change is a focusable group named “Change “very careful” to “careful””; deletions and insertions pair colour with strike-through and highlight.
  • Streaming, review and applied states are announced in a status region; ghost text is aria-hidden.
From the spec
  • Labelled region; the prompt is a dialog with a combobox and a listbox (aria-activedescendant).
  • Each change is a focusable group named "Change “x” to “y”".
  • Streaming, review and applied are announced in a status region; ghost text is aria-hidden.
  • ⌘K is claimed only while focus is inside.

Motion & interaction

Timing
  • One floating layer morphs prompt → stream bar → review bar → receipt (220 ms, smooth).
  • Inserted words develop over 150 ms (opacity + 1.5 px blur clearing); accepted words settle with a 600 ms tint.
  • Change toolbars fade up in 120 ms on hover or focus.
  • Reduced motion: no fades, blur or morph.

Responsive behaviour

  • The prompt keeps to 320 px or the page width; below a 560 px card the title steps down and the key hint hides.
Edge cases (spec)
  • Prompt keeps to 320 px or the page width; review bar wraps.
  • Below 560 px the title steps down and the key hint hides.

Notes for AI

  • Import AiInlineEdit from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AiInlineEditEl in oxyn_gpui.
  • Props to set first: paragraphs, now.
  • It reads a clock (now) for live timers; pass one clock for the whole page rather than one per component.
  • Keep its states and timings as they ship; restyle it through the CSS variables rather than by hand.

Guides

Oxyn · 74 free components · 264 Pro components · 96 screens · 20 blocks · Dioxus and GPUI