Agent cursor preview

Agent cursor

An AI agent's cursor that moves through a path with human-like aim, a name tag and click pulses.

  • Group
    Presence
  • Origin
    Inspired · Original (this library)
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/agent-cursor

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { AgentCursor } from "@/registry/components/agent-cursor/agent-cursor";

<AgentCursor path={[/* … */]}>Label</AgentCursor>

Props

PropTypeDefaultDescription
pathCursorStep[]Points to visit, in px relative to the positioned parent.
name?string"Agent"Agent name in the tag.
color?string"oklch(60% .2 265)"
motion?CursorMotion"human"
dwell?number650Pause at each point, ms.
loop?booleantrueStart over at the end.
onClick?(index: number) => voidCalled after each click with its index in the path.
children?ReactNode

When to use

Showing an AI agent acting on a page (demos, co-browsing, onboarding).

When not to use

Real multi-user presence (needs live data).

Related

Liquid orb · Team invite · Delegate board