affectUI › Components › Agents

Deep Research Progress

An agent researching a question – its name, model, clock and Stop on top, the sources it finds on the left, each with its site's logo, the report taking shape section by section on the right. A line with rounded corners runs from the source it reads to the section it writes, a light running along it; when the source is read, its logo drops into the section's citations, and sources, citations and words count up in the footer. Point at a source for the passage it took and where it is cited; Dig deeper sends the agent back into a section.

Part of affectUI Pro. Install: npx shadcn@latest add https://www.affectui.com/r/deep-research-progress.json · Import from @/components/ui/deep-research-progress

When to use

  • A deep research or analysis agent at work – what it has read, what it is writing, and how far along it is
  • Making a long run worth the wait: every source and citation shows up as it happens, and the person can steer a section
  • Research, due-diligence, market-analysis or sales-intelligence products that turn the web into a report

When not to use

  • The finished answer with its sources – use Cited Answer
  • One agent's steps and tools in general – use Agent Monitor or Agent Workbench
  • A plan with steps to approve – use Agent Plan

Usage

import { DeepResearchProgress, type ResearchSection, type ResearchSource } from "@/components/ui/deep-research-progress";

const sources: ResearchSource[] = [
  { id: "stripe", title: "Billing for AI products", domain: "stripe.com", logo: <StripeLogo />, status: "read", sections: ["s1"] },
  { id: "github", title: "Premium requests in Copilot", domain: "github.blog", logo: <GitHubLogo />, status: "reading", sections: ["s1", "s2"],
    quote: "Every plan includes a monthly allowance of premium requests.", mark: "monthly allowance" },
  { id: "intercom", title: "Fin's price per resolution", domain: "intercom.com", color: "#1F8DED", status: "queued", sections: ["s3"] },
];

const sections: ResearchSection[] = [
  { id: "s1", title: "Pricing models in use", status: "writing", words: 180, cites: ["stripe"] },
  { id: "s2", title: "What the big platforms charge", status: "queued" },
  { id: "s3", title: "Paying per outcome", status: "queued" },
];

export function Research() {
  return (
    <DeepResearchProgress
      question="How are SaaS companies pricing AI agents in 2026?"
      agent={{ id: "research", name: "Research agent", model: "Claude Opus 5.5" }}
      sources={sources}
      sections={sections}
      elapsed={74}
      onStop={stop}
      onDeeper={(id) => steer(id)}
    />
  );
}

Props

NameTypeDefaultDescription
questionstringWhat the agent was asked – not shown; it names the region for screen readers ("Deep research: …")
sourcesResearchSource[]What it found, in order – { id, title, domain, logo?, full?, color?, status, quote?, mark?, sections? }. status is queued, reading, read or skipped. logo is a small node on a white tile – with full, a whole app icon with its own background (Adobe's PDF, Stripe) that fills the tile edge to edge; without a logo, the domain's first letter – white on color, if given. quote and mark fill the source's card; sections are the ids it feeds
sectionsResearchSection[]The report, in order – { id, title, status, summary?, words?, cites?, deeper? }. status is queued, writing or done; cites are source ids, their logos stack up beside the summary
agent{ id, name, model?, logo? }Who researches – id draws its pixel mark, model and logo show as a tag
elapsednumberSeconds since it started – shown as a clock while it runs
status"running" | "done" | "stopped"Default running. done shows Ready instead of the clock and, with onOpen, Open report in place of the footer ring; stopped shows Stopped and stops every motion
onStop() => voidShows Stop while it runs
onDeeper(sectionId: string) => voidShows Dig deeper on every section that isn't done – set deeper on it to show the tag
onOpen() => voidShows Open report at the right of the footer row when it's done
rowsnumberThe source list is as tall as the report beside it and scrolls – it never shows fewer rows than this (or than it has). Default 4
classNamestringExtra class on the root – set the color variables on it, e.g. --ui-rsh-blue

Keyboard

  • Tab: Stop, then one stop for the source list, then Dig deeper on each open section
  • ↑ / ↓: The source before or after – its card shows
  • Home / End: The first or the last source
  • Enter / Space: Keeps a source's card open; Esc closes it

Accessibility

  • The sources are a listbox – every option reads its title, site and whether it was read
  • A polite live region says what the agent reads or writes now, and when the report is ready
  • The footer ring reads "2 of 5 sections written"; citations read as a count
  • Focus rings show for the keyboard only (:focus-visible)

Responsive

  • The report column gets a little more room than the sources; long titles shorten with an ellipsis
  • The source list ends where the report ends and scrolls inside – its foot fades out while there is more below
  • Sources, citations and words sit in a footer row with an icon each; on narrow cards the words beside the icons step aside (screen readers still hear them), so the numbers stay on one row
  • Narrow: the report goes under the sources, the list keeps a height of its own, the line steps aside and Dig deeper stays visible
  • Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"

Requirements

  • React 19

Related

  • Cited Answer – An AI answer wired to its sources – point at a citation to light up its sentence and source, click to unfold the quoted passage with the matching words marked
  • Agent Monitor – One agent at work, as a card – its current step with a clock and the bill so far, a time strip and the finished steps with the logo of each tool, a click on any of them for the details; the exact command when it needs your OK; folds into a small bar with the tools it has used
  • Agent Workbench – One agent at work: the person who asked on the left with their message, the agent in the middle with a work area showing what it does right now, the files it was given on the right under a macOS folder, and its tools below as cards with what each may do and what it did last – joined by soft rounded connectors, with a light running along the one in use
  • Agent Plan – An agent's step-by-step plan to review before it runs – rename, drag to reorder, remove or add steps, then watch each one run with live timers and retry from a failed step