# Autonomous dispatch hero

> A hero for AI agents that fix incidents: one pill opens into the agent's run, step by step, from the alert to the merged fix.

Autonomous dispatch hero is built for autonomous SRE incident responders, zero-day AppSec patching agents, CI/CD self-healing platforms and background engineering agents. Framed by 1px architectural rails with 7x7px square corner nodes, two 6-ribbon cubic-Bezier silk wings curve down the outer margins into a live execution tape console. The display headline pairs a -7deg tilted 3D glossy lacquer badge with a dashed-underline cycling capability word, above a one-surface expanding dispatch pill where the hardware CTA stretches across the full input on submit. Inside the console, visitors switch across three live remediation runs, scrub the 36-bar bi-coloured telemetry waveform across three clickable checkpoints, and inspect the live 200 OK tool execution and sandbox diff card.

## Install

```bash
npx shadcn@latest add @hairline-pro/dispatch-hero
```

Needs React 19, Tailwind CSS v4 and shadcn/ui theme variables (any style, light and dark). Icons from lucide-react.

- npm: `lucide-react`
- Hairline UI components it needs (the CLI installs them too): `text-morph`, `number-roll`
- Docs and live preview: https://hairlineui.com/blocks/dispatch-hero
- Premium block, included with All-Access (https://hairlineui.com/buy/all-access?from=blocks). Installs only with an All-Access token through the @hairline-pro registry: https://hairlineui.com/ui/installation#premium. Its source isn't public.

## Usage

```tsx
import { DispatchHero } from "@/components/dispatch-hero";

<DispatchHero
  brand="Vesper"
  tone="pearl"
  headlineBefore="Every production incident"
  headlineMiddle="autonomously"
  rotatingWords={["isolated.", "patched.", "rolled back.", "verified."]}
  subheadline="Vesper correlates PagerDuty alerts with live OpenTelemetry traces and opens a verified hotfix PR in seconds."
/>
```

## Autonomous SRE or AppSec agent hero at the top of a product homepage

Place DispatchHero at the top of your landing page. Pass `tone="pearl"` for cool alabaster with vermilion hardware lacquer, or `tone="ink"` for deep carbon with electric-mint hardware lacquer.

```tsx
import { DispatchHero } from "@/components/dispatch-hero";

export function HomeHero() {
  return (
    <div className="mx-auto max-w-[1360px] p-3 sm:p-4">
      <DispatchHero
        brand="Vesper"
        tone="pearl"
        announcementTag="ON-CALL 2.4"
        announcementText="Autonomous root-cause isolation & sandboxed hotfix PRs in under 25 seconds"
        headlineBefore="Every production incident"
        headlineMiddle="autonomously"
        rotatingWords={["isolated.", "patched.", "rolled back.", "verified."]}
        subheadline="Vesper correlates PagerDuty alerts with live OpenTelemetry traces, reproduces the regression in an isolated sandbox and opens a verified rollback or hotfix PR before your engineer opens their laptop."
        inputPlaceholder="Enter GitHub repo or PagerDuty service URL…"
        submitLabel="Simulate incident"
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Brand wordmark rendered in the gridded top header. |
| `navLinks` | `DispatchHeroNavLink[]` | – | Navigation links with gliding neutral hover highlight. |
| `navSecondaryAction` | `DispatchHeroAction` | – | Optional subtle right-hand navigation link. |
| `navPrimaryAction` | `DispatchHeroAction` | – | Primary top-right 3D lacquer CTA button. |
| `announcementTag` | `string` | – | Monospaced accent badge inside the top announcement pill. |
| `announcementText` | `string` | – | Supporting announcement text inside the top pill. |
| `headlineBefore` | `string` | – | First display headline line before the inline 3D tilted lacquer badge. |
| `headlineMiddle` | `string` | – | Second display headline phrase leading into the cycling capability word. |
| `rotatingWords` | `string[]` | – | Capability words cycled automatically and on click via TextMorph. |
| `subheadline` | `string` | – | Supporting paragraph below the headline. |
| `inputPlaceholder` | `string` | – | Placeholder inside the one-surface expanding dispatch pill. |
| `submitLabel` | `string` | – | Idle button label inside the expanding dispatch pill. |
| `submittedLabel` | `string` | – | Confirmation label shown when the button expands across the full pill. |
| `runs` | `DispatchHeroRun[]` | – | Three interactive remediation runs driving the 36-bar waveform, 3 checkpoints and 200 OK tool diff card. |
| `stats` | `[DispatchHeroStat, DispatchHeroStat, DispatchHeroStat]` | – | Three noded architectural proof cells along the bottom band. |
| `tone` | `"pearl" \| "ink"` | `"pearl"` | "pearl" renders cool alabaster with vermilion lacquer; "ink" renders deep carbon with electric-mint lacquer. |

## States

- **wing signal cycle**: Inbound alert pulses travel down the left 6-ribbon wing into the console, followed by autonomous remediation pulses answering down the right wing.
- **capability word rotation**: The dashed-underline headline capability word cycles smoothly via TextMorph every 3.2 seconds (or on click) and triggers a fresh wing pulse.
- **one-surface pill expansion**: Submitting the dispatch form stretches the 3D lacquer button across the full pill width, morphs its label to confirmed and jumps the tape to step 3.
- **tape & checkpoint scrub**: Clicking any of the 3 run tabs, 36 waveform bars or 3 checkpoint pills glides the playhead and updates the live agent quote and 200 OK tool card.
- **reduced motion**: Renders static silk wings and disables automatic word rotation while preserving full interactive checkpoint scrubbing.

## What it handles

Most autonomous engineering and security agent pages rely on static terminal mockups that fail to communicate real-time alert ingress, sandbox verification and structured pull-request output.

- **Dual 6-ribbon silk & glyph wings canvas**: Two cubic-Bezier ribbon wings flow down the outer margins into the console, pulsing inbound alerts down the left wing and autonomous patches down the right.
- **3D tilted glossy lacquer headline badge**: An inline -7deg tilted hardware token with radial specular highlight and inset depth shadow sits directly inside the display typography.
- **One-surface expanding dispatch pill**: Submitting a repo URL or service name smoothly expands the 3D lacquer action button across the entire pill surface while advancing the tape to completion.
- **36-bar bi-coloured telemetry waveform tape**: Visitors click any waveform bar or any of the 3 checkpoint cards (Commit bisected, Sandbox replay, Hotfix PR) to scrub the playhead and update the tool diff.
- **Structured 200 OK tool & sandbox diff card**: Displays the exact tool invocation, three key-value verification rows and cryptographic guardrail status for every checkpoint.
- **Alabaster Pearl and Deep Carbon Ink finishes**: Ships with both a cool alabaster pearl finish with vermilion lacquer and a deep carbon ink finish with electric-mint lacquer.

## Replaces

dual 6-ribbon cubic-Bezier silk wings canvas, 3D tilted glossy lacquer inline headline badge, one-surface expanding dispatch input pill, 36-bar bi-coloured execution tape & tool diff console

## Where it fits

- **Autonomous SRE & on-call incident agents**: Shows PagerDuty alert correlation, commit bisection, ephemeral sandbox reproduction and one-click hotfix pull requests.
- **Autonomous AppSec & CVE patching platforms**: Use tone="ink" for a deep carbon console with electric-mint lacquer tokens showcasing eBPF reachability, AST codemods and secret rotation.
- **Self-healing CI/CD & DevOps automation**: Pairs an expanding repo/webhook dispatch pill directly with a 3-checkpoint execution timeline and structured 200 OK tool diff card.
- **Database & infrastructure reliability agents**: Demonstrates autonomous Postgres deadlock resolution and canary OOM rollbacks with 7x7px noded proof metrics.

## Notes

- Pure 2D canvas cubic-Bezier ribbon wings and CSS 3D hardware lacquer tokens with zero external animation libraries.
- Canvas redraws synchronously inside ResizeObserver so switching between desktop and mobile viewports never blinks.

License: Hairline UI commercial license, not MIT (https://hairlineui.com/license#blocks)
