Skip to content
Back

Agent doc cursorPro

Watch an agent work on a shared doc the way a coworker would: its labelled pointer marks a paragraph and retypes it, adds a new section and corrects a misspelling while a colleague reads along, and every edit stays highlighted until you keep or revert it.

oxyn add agent-doc-cursor
Reading the brief

Launch brief: Tally 2.0

Owner Maya Lund · ships Mar 12

Goal

Ship Tally 2.0 to every workspace by March 12, with offline sync on by default.

Audience

Small finance teams who track spending in spreadsheets today and want something faster that still feels familiar.

Rollout

Offline sync goes to 10% of workspaces first and we watch sync errors for a week. Customers will recieve an email the day it reaches them.

Reading the brief
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

  • Show an agent editing a shared document as a visible collaborator, so people see exactly what changed and approve it.

When not to use

Installation

Agent doc cursor 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 agent-doc-cursor

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

Editing

A looping run with a teammate reading along.

Reading the brief

Launch brief: Tally 2.0

Owner Maya Lund · ships Mar 12

Goal

Ship Tally 2.0 to every workspace by March 12, with offline sync on by default.

Audience

Small finance teams who track spending in spreadsheets today and want something faster that still feels familiar.

Rollout

Offline sync goes to 10% of workspaces first and we watch sync errors for a week. Customers will recieve an email the day it reaches them.

Reading the brief
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

Review

No loop: the changes wait in the review bar.

Reading the brief

Launch brief: Tally 2.0

Owner Maya Lund · ships Mar 12

Goal

Ship Tally 2.0 to every workspace by March 12, with offline sync on by default.

Audience

Small finance teams who track spending in spreadsheets today and want something faster that still feels familiar.

Rollout

Offline sync goes to 10% of workspaces first and we watch sync errors for a week. Customers will recieve an email the day it reaches them.

Reading the brief
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

Ask

Idle with an Ask button, no teammate (Oxyn extra).

Ask Claude to tighten the brief

Launch brief: Tally 2.0

Owner Maya Lund · ships Mar 12

Goal

Ship Tally 2.0 to every workspace by March 12, with offline sync on by default.

Audience

Small finance teams who track spending in spreadsheets today and want something faster that still feels familiar.

Rollout

Offline sync goes to 10% of workspaces first and we watch sync errors for a week. Customers will recieve an email the day it reaches them.

Ask Claude to tighten the brief
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

Error

Couldn't reach the agent, with Try again.

Reading the brief

Launch brief: Tally 2.0

Owner Maya Lund · ships Mar 12

Goal

Ship Tally 2.0 to every workspace by March 12, with offline sync on by default.

Audience

Small finance teams who track spending in spreadsheets today and want something faster that still feels familiar.

Rollout

Offline sync goes to 10% of workspaces first and we watch sync errors for a week. Customers will recieve an email the day it reaches them.

Reading the brief
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

AgentDocCursor

PropTypeDefaultDescription
nowrequiredClockMs—Host clock.
auto_playbooltrueStart a run on mount (off shows an Ask button).
loopingbooltrueReplay: accept on its own after a pause, then run again.
speedu64100Playback speed, percent.
failboolDefault::default()The agent can't be reached (error scenario).
teammatebooltrueShow the teammate's cursor.

Read from the Rust signature and doc comments.

Keyboard interactions

KeyAction
TabStop or Run again, then Undo and Accept changes
EnterorSpacePress the focused button

Accessibility

  • Each step is announced (reading, the current edit, changes ready, accepted, undone, errors).
  • Pointers and highlights are hidden from assistive tech; the brief itself is ordinary headings and text, and unreviewed edits are wrapped in mark.
  • Hover or focus inside the card holds a looping run in review so the bar never moves away mid reach.
From the spec

Headings and paragraphs stay real elements; pending text uses mark; cursors are decorative. Every step is announced; status words pair with icons. Every action returns the line the polite live region announces. The focus outline shows only for keyboard focus.

Motion & interaction

The agent cursor (its mark colour, name tag) travels to each block; a selection fills as it drags; rewritten words stream in tinted; the typo swaps in place. A teammate cursor reads along one paragraph at a time. The review bar rises in when changes are ready.

Timing

Everything on screen is derived from the host clock now (no timers in the component), so playback, tests and the GPUI view agree.

TransitionDurationEasing
Reading1000 ms—
Cursor travel480 msease-in-out
Drag select640 mslinear
Word stream34 ms per wordlinear
Loop accept3.6 s after review—

Reduced motion: loops and travel stop; each state shows its end pose and its words.

Responsive behaviour

  • Grows to 680 px; on phones the page margins shrink and the review strip loses its credit line.
  • Cursors sit inline with the text they act on, so they wrap with it at any width.
Edge cases (spec)

Cursor tags sit inline with the text they act on, so they wrap with it and never cover a line. Under 480 px the document padding tightens and the review bar drops its by-line. Checked at 1440, 768 and 390 px in light and dark with no text overlap. Chrome is monochrome grey; colour is semantic only (success, warning, danger, info) plus the official coloured brand and model marks.

Notes for AI

  • Import AgentDocCursor from oxyn_dioxus and include STATUS_INDICATOR_CSS plus the token stylesheet once.
  • A GPUI version exists: AiKitView in oxyn_gpui.
  • Props to set first: 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