# Agent evals hero

> A hero for AI evaluation products: a big headline over a live benchmark of four models, with a chart you can scrub, a graded trace and a score grid.

Agent evals hero is built for AI evaluation platforms, LLM observability suites, frontier model benchmarking tools and enterprise red-teaming products. Behind the headline, a 14px-pitch canvas grid of tiny superscript score digits radiates upward from the console rim and out from its sides as if the console were the light source. Inside the 12px evaluation workbench, visitors switch between three live benchmark suites (Tool-Use Accuracy, SQL & RAG Faithfulness, Adversarial Guardrails), scrub the 4-model Catmull-Rom cubic Bezier spline chart across 30 days of CI runs, and click any row in the 4x4 scenario heat matrix to inspect its graded trace assertion and superscript policy rules.

## Install

```bash
npx shadcn@latest add @hairline-pro/eval-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/eval-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 { EvalHero } from "@/components/eval-hero";

<EvalHero
  brand="Veritas"
  tone="graphite"
  headline={["Ship AI agents that", "never silently regress"]}
  subheadline="Replay production agent trajectories across Claude 3.7, GPT-4.5, Gemini 2.5 and DeepSeek R1 on every pull request."
  primaryAction={{ label: "Start free eval suite", href: "/signup" }}
/>
```

## Multi-model AI evaluation hero at the top of an observability homepage

Place EvalHero at the top of your marketing page. Pass `tone="graphite"` for a dark studio console, or `tone="paper"` for a daylight compliance console.

```tsx
import { EvalHero } from "@/components/eval-hero";

export function HomeHero() {
  return (
    <div className="mx-auto max-w-[1360px] p-3 sm:p-4">
      <EvalHero
        brand="Veritas"
        brandMark="V"
        tone="graphite"
        badgeTag="EVALS 3.0"
        badgeText="Grade every tool call, SQL query and reasoning trace before production"
        headline={["Ship AI agents that", "never silently regress"]}
        subheadline="Replay production agent trajectories across Claude 3.7, GPT-4.5, Gemini 2.5 and DeepSeek R1—catching broken tool calls and hallucinated parameters on every pull request."
        primaryAction={{ label: "Start free eval suite", href: "/start" }}
        secondaryAction={{ label: "Explore live benchmark", href: "/benchmark" }}
      />
    </div>
  );
}
```

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `brand` | `string` | – | Brand wordmark rendered in the top navigation bar. |
| `brandMark` | `string` | – | Single character rendered inside the 26x26 solid logo tile. |
| `navLinks` | `EvalHeroNavLink[]` | – | Superscript-numbered navigation links with gliding neutral hover pill. |
| `navSecondaryAction` | `EvalHeroAction` | – | Optional subtle right-hand navigation link. |
| `navPrimaryAction` | `EvalHeroAction` | – | Primary top-right navigation CTA button. |
| `badgeTag` | `string` | – | Bold tag pill inside the announcement badge above the headline. |
| `badgeText` | `string` | – | Supporting announcement text inside the top pill. |
| `headline` | `string[]` | – | Two display headline lines. |
| `subheadline` | `string` | – | Supporting description paragraph below the headline. |
| `primaryAction` | `EvalHeroAction` | – | Primary high-contrast hero CTA button. |
| `secondaryAction` | `EvalHeroAction` | – | Optional secondary hero CTA button. |
| `suites` | `EvalHeroSuite[]` | – | Three interactive evaluation suites driving the 4 KPIs, 4-model spline chart, assertion card and 4x4 scenario heat matrix. |
| `tone` | `"graphite" \| "paper"` | `"graphite"` | "graphite" renders a dark studio console; "paper" renders a daylight paper console. |

## States

- **scan-head spline reveal**: On mount and suite switch, a spring-driven clip path sweeps across the 4-model Catmull-Rom spline chart from left to right.
- **pointer chart scrub**: Dragging or moving across the spline chart snaps the vertical cursor and smart-flipping readout card to any evaluation date.
- **suite switch**: Clicking Tool-Use Accuracy, SQL & RAG Faithfulness or Adversarial Guardrails glides the active pill, rolls all 4 KPIs via NumberRoll and pulses the horizon field.
- **scenario row inspect**: Clicking any row in the bottom 4x4 heat matrix highlights the row, updates the graded trace assertion excerpt and rescales the 4 model pass-rate bars.
- **reduced motion**: Renders the full spline curves immediately without scan-head sweep or spring thumb transitions.

## What it handles

Most AI observability and evaluation landing pages rely on a static screenshot of a chart that visitors cannot scrub, filter by evaluation suite or drill into by test scenario.

- **Radiating superscript score horizon canvas**: A 14px-pitch 2D canvas renders tiny superscript numerals lit brightest along the console top and side rims, redrawing synchronously inside ResizeObserver.
- **Scrubbable 4-model Catmull-Rom spline chart**: Smooth cubic Bezier curves reveal via a spring-driven scan head and support pointer scrubbing with a smart-flipping dark readout tooltip.
- **Graded trace assertion card with rule tags**: Displays the exact evaluated agent behavior for the selected scenario with a highlighted assertion span and colored superscript rule references.
- **Interactive 4x4 benchmark scenario heat matrix**: Clicking any scenario row updates the graded trace card and frontier model pass-rate bars, complete with oklab heat cells and trend sparklines.
- **3-suite evaluation workbench switcher**: Gliding tab pills switch the entire console between Tool-Use Accuracy, SQL & RAG Faithfulness and Adversarial Guardrails while rolling all 4 KPIs.
- **Graphite Studio and Daylight Paper palettes**: Ships with both a deep #0b0b0c graphite studio console and a crisp #f4f5f8 daylight paper console.

## Replaces

radiating superscript horizon canvas, scrubbable 4-model Catmull-Rom spline chart, graded trace assertion inspector with superscript rules, 4x4 benchmark heat matrix with sparklines

## Where it fits

- **AI agent evaluation & CI regression platforms**: Compares trajectory pass rates, schema strictness and tool-call accuracy across Claude 3.7, GPT-4.5, Gemini 2.5 and DeepSeek R1.
- **Adversarial red-teaming & AI safety products**: Use tone="paper" for a crisp daylight compliance console tracking prompt injection blocks, PII masking and FINRA/SOC2 policy rubrics.
- **RAG & Text-to-SQL observability tools**: Pairs 30-day groundedness spline curves with verbatim graded trace excerpts and superscript rule citations.
- **AI gateway & model routing platforms**: Lets engineering buyers scrub daily accuracy across four frontier models and compare per-scenario pass heatmaps.

## Notes

- Pure 2D canvas superscript horizon field and zero-dependency SVG Catmull-Rom spline engine.
- Canvas redraws synchronously inside ResizeObserver so switching between desktop and mobile viewports never flashes.

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