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-editLaunch 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 preview stays free for everyone. Pro opens the code of every Pro component, screen, agent-app template, block and kit, plus the Pro CLI.
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.
oxyn add ai-inline-editUsage
The preview is free. Pro opens the code of every Pro component, screen and template.
Examples
Rewrite
Click a word, ⌘K, pick Shorten: the rewrite streams in as a diff.
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 preview is free. Pro opens the code of every Pro component, screen and template.
Slow stream
Half speed, to watch unreached text wait dimmed.
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 preview is free. Pro opens the code of every Pro component, screen and template.
No ghost
Without ghost-text completions.
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 preview is free. Pro opens the code of every Pro component, screen and template.
API reference
AiInlineEdit
| Prop | Type | Default | Description |
|---|---|---|---|
title | String | "Launch plan" | Title. |
paragraphsrequired | Vec<String> | — | Paragraphs. |
nowrequired | ClockMs | — | Clock (drives the stream). |
actions | Vec<QuickAction> | QUICK_ACTIONS.to_vec() | Quick actions. |
speed | f32 | 1.0 | Stream speed multiplier. |
ghost | bool | true | Ghost-text completions. |
author | String | "You" | Author in the header. |
review_each | bool | true | Changes start accepted on Esc-less review (`false` = reject when undecided at apply). |
on_change | EventHandler<Vec<String>> | — | The document changed. |
Read from the Rust signature and doc comments.
Keyboard interactions
| Key | Action |
|---|---|
| ⌘KorCtrlK | Open the prompt on the selection (or the first sentence); again to close |
| ↑or↓orEnter | Move through quick actions and run one; typed text sends as a free instruction |
| Esc | Close the prompt, stop the stream, reject all in review, or dismiss ghost text |
| Tab | Accept ghost text; in review, move between changes |
| EnterorBackspace | Accept / reject the focused change |
| ⌘↵ | Accept all remaining changes |
| ⌘Zor⇧⌘Z | Undo / 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
AiInlineEditfromoxyn_dioxusand includeSTATUS_INDICATOR_CSSplus the token stylesheet once. - A GPUI version exists:
AiInlineEditElinoxyn_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.