# Deep research progress

A research agent at work: the sources it found on the left, the report taking shape on the right, and a curve from each source to the section it feeds.

Live variants: https://design.arcadia.is/components/deep-research-progress

```tsx
import { DeepResearchProgress } from "@arcadia/ui";
```

```tsx
import { useState } from "react";
import { DeepResearchProgress } from "@arcadia/ui";

function Running() {
  const [deeper, setDeeper] = useState<ReadonlySet<string>>(() => new Set(["s2"]));
  const sections = SECTIONS.map((section) => ({ ...section, deeper: deeper.has(section.id) }));
  return (
    <DeepResearchProgress
      question="How are SaaS companies pricing AI agents in 2026?" sources={DeepResearchProgressSOURCES} sections={sections} agent={AGENT}
      elapsed={74} onStop={() => {}} onDeeper={(sectionId) => setDeeper((current) => new Set([...current, sectionId]))}
    />
  );
}
```

## Accessibility

The panel is a region named `Deep research: <question>`; the question itself is not drawn. Tab reaches Stop while the run can be stopped, then one stop for the sources, then Dig deeper on each open section, then Open report once the run is done.

Inside the sources, the list is one listbox: the arrows move from one source to the next, Home and End to the first and last, and each option reads its title, its site and its state. Enter or Space pins the passage beside it, Esc closes the passage, and the sources stay where they were. The curves and every tile are decoration and hidden from a reader, who has the counts, the names and the states in words.

One polite live region says what the agent reads and writes now, and how the run ends. Under reduced motion the beam stops and nothing animates; the curves still stand and still light on focus. Every state is also in words, and the panel's ink, frame and tiles are the kit's tokens in either theme.

- Tab: Stop, then the source list as one stop, then Dig deeper on each open section, then Open report.
- ArrowUp + ArrowDown: From one source to the one above or below.
- Home + End: The first source and the last.
- Enter + Space: Pins the passage of the source it is on.
- Esc: Closes the pinned passage.

## API reference

### DeepResearchProgress

- `question` (`string`, required): What the agent was asked. It names the region; it is not drawn.
- `sources` (`readonly ResearchSource[]`, required): What it found, in the order it reports them.
- `sections` (`readonly ResearchSection[]`, required): The report taking shape, in order.
- `agent` (`ResearchAgent`, required): Who researches. Its character is drawn from `agent.id` unless `logo` stands in.
- `elapsed` (`number`): Seconds since it started, as the host measured them: the clock shows exactly this.
- `status` (`"loading" | "running" | "blocked" | "stopped" | "failed" | "done"`, default `"running"`): The run as a whole.
- `statusDetail` (`string`): Why it stands blocked, stopped or failed, in the product's words.
- `onStop` (`() => void`): Stops the run. `Stop` shows while it runs.
- `onDeeper` (`(sectionId: string) => void`): Sends the agent back into a section. `Dig deeper` shows on every section that is not done.
- `onOpen` (`() => void`): Opens the finished report. `Open report` shows in the footer once the run is done.
- `rows` (`number`, default `4`): Fewest source rows the list shows before it scrolls.
- `rootStyle` (`RootStyle<DeepResearchProgressKnobs>`): Typed StyleX override: where the panel sits and its `--drp-*` knobs.

Rest props go to `HTMLAttributes<HTMLElement>`.
