Arc
ComponentsBlocksScreensDocsPricingTry the demo
Get Pro
Saved

Docs

IntroductionInstallationThemingMotionAI and MCPChangelog

Components139

ButtonAction buttonSplit buttonButton groupFloating button groupExpanding button groupCopy buttonAction swapIcon morphConfirm morphTheme switcher

Hold to confirmSwipe actionsReactions

Dropdown menuContext menuUser menu

InputTextareaPassword fieldPassword strengthSearch fieldExpanding searchInline edit

Number fieldMoney inputPhone inputScrub inputTag inputMention inputShortcut recorder

SelectComboboxMulti-selectMorph selectChip group

Radio cardsBilling toggleCheckboxRadio groupSwitchSegmented controlRatingToggle group

SliderElastic sliderRange histogram sliderRuler sliderWindow rangeProLens rangePro

CalendarDate pickerDate range pickerTime pickerColor pickerEmoji pickerPro

Rich text editorSignature padFile dropzoneAvatar uploadPro

TabsBreadcrumbPaginationMega menu morphProTable of contents progressPro

Scroll areaAccordionExpandable cardResizable panelsExpandable text

DialogDrawerBottom sheetPopoverHover cardTooltipShare accessProConfirm popoverPro

AlertToastToast stackAnnouncement barCookie consentUndo toastPro

ProgressSkeletonStepperCountdownUsage meterOnboarding checklist

AvatarAvatar groupBadgePresence stackPro

CardMetric cardEmpty stateMetric tickerPro

Line chartBar chartDonut chartStreamgraphBrush chartWaffle chartSlope chartSparklineGaugeActivity heatmapAnimated counterRidgelineTreemapSplit barPro

BeeswarmProSunburstProSankey flowProFunnel chartProRadar chartProRealtime streamProRace bar chartProChord diagramNewProData gridPro

Sortable data tableTree tableTree viewReorderable listFilter toolbarCode blockJSON viewer

TimelineComment threadChat thread

Image compareCarouselCard stack

Text revealIn-view titleText morphText shimmerWave text

Blocks129

KPI drilldownProMetric explorerProRevenue explorerProMRR waterfallProCohort retentionProUsage forecastProJourney flowProUptime statusProPivot builderProChoropleth explorerProConnected scatterProHorizon chartProAccount healthPro

Budget variancePro

Small multiplesProLine replayPro

AI chatProAI composerProAI answerProModel pickerProModel arenaProPrompt studioProDocument extractionProAgent memoryProAI side panelProAI inline editProResearch runProAI insight cardProCatch upProAI feature launchProAI search barProAI setup wizardProCall insightsProLead scoringPro

Agent runProAgent tasksProAgent approvalsProAgent routinesProAgent orchestratorProMCP serversProKnowledge baseProEval suiteProAgent builderProAgent galleryPro

SidebarPro4Page headerCommand paletteNotification centerSelection toolbarProEmpty statesSearch resultsPro

Login and sign up5, free and Pro variantsOnboarding illustrationProOTP inputMulti-step formProTwo-factor setupProMagic linkPro

Settings pageProSettings commandProSecurity settingsProBilling overviewProUsage billingProCancel flowProOnboarding surveyProSpend alertPro

Team membersProInvite peopleProRoles and permissionsProProfile pagePro

API keysProWebhooksProIntegrationsProImport wizardProEnvironment variablesProCode reviewProDomain verifyProWebhook testerPro

Plan comparisonPricing calculatorProUsage pricingProCart drawerProCheckout summaryProLive checkoutProSeat managerProCredit top-upPro

Wallet cardProDelivery trackerProSeat mapPro

Activity feedProSupport widgetProFeature votingPro

File uploadMedia playerPro

Availability pickerProRelease readinessProFeedback boardProSmart schedulerProTask breakdownProGoal trackerPro

Hero sectionHero signupProAurora heroPro

Scroll storyProSpotlight gridProFeature bentoProComparison tableZoom into UINewPro

Logo marqueeStudio perspectivesProStats bandLogo fieldPro

Changelog feedFAQ sectionContact sectionTeam showcaseProBlog gridManifesto scrollNewProOffices mapNewPro

Site headerSite footerFooter marqueeProCTA sectionNewsletter signup

Activity terrainProRevenue globeProCustomer galaxyProSemantic zoomProLayout morphProExploded viewPro

Screens14

Metrics dashboardProMarket terminalPro

Kanban boardProProject boardProGantt timelinePro

Week calendarProMonth calendarPro

Team directoryPro

Inbox triageProSupport conversationProHelp centerPro

Product listingProProduct detailProInvoice studioPro

Special components118

Share sheetProAction morphProMorph navProDockProLiquid tab barProOrbit menuProGooey menuPro

Glass menuProGlass segmentedProGlass cardProGlass tab barPro

Sheet stackProWallet stackProControl centerProHolo cardProCard to articleProLink unfurlPro

Product galleryProLightbox galleryProPhoto gridProCover flowProInfinite moodboardProGradient meshPro

Voice orbProNow playingProVoice recorderPro

Booking pillProActivity ringsProTime dialProDate reelPro

Keycap keyboardProSlot textSand textProCode magic moveProTypewriter terminalPro

Stretch refreshProFeedback morphProMorph loaderProSkeleton morphProCelebrate buttonProBlack holeProSlide to confirmProCharge sessionProArming switchProPadlock toggleProDot matrix loaderPro

Sticker peelProTicket tearProPage curlProOrbit logosProPrize wheelProSpoiler dustPro

Dot gridProImage trailProGravity wellProInk fluidProGesture onboardingProCursor trail drawPro

Agent statusProTool callProAgent planProAgent timelineProContext windowProReasoning blockProSource cardsProModel cardProAI workflowProCode suggestionProGhost textProImage generationProDictation buttonProSpeech playerProMeeting summaryProReply draftProAgent handoffProPII redactionProResponse feedbackProLLM cost calculatorProProvider keysProGeneration statsProAI translateProTL;DR toggleProConnector setupProSmart form fillProEnrich columnProTicket routerProAsk your dataProAgent cursorProProvider statusProTraining runProAI commandProStarter promptsProAI mascotProImage revealProAI sparkProPixel mascotProGhost mascotProCube mascotProTone tunerProUpgrade promptProReferral cardProTrial bannerProTeam switcherProLive visitorsProSocial proof toastProInstall snippetPro

Data flowProPayment flowProDNS resolutionProModel trainingProMulti-region failoverProVector searchProBranch graphProAgent loopProMixture of expertsProSpeculative decodingProPrompt cacheProReasoning treePro
What’s new4 new
BlocksAgent orchestrator

Agent orchestrator

Pro

A lead agent splits a goal into a plan, fans the subtasks out to parallel worker lanes and merges what comes back, with each lane's model, progress and result in view.

Live block · sample data

When to use

  • Showing a multi agent run where a lead model splits a task across subagents, such as research, audits, migrations or comparisons.
  • Debug or observability panels that need per worker progress, tool calls, errors, retries, tokens and cost in one view.
  • Explaining the cost and speed tradeoff of parallel agents, with a live concurrency control.

When not to use

  • Use agent-run for a single agent working through steps in one thread.
  • Use agent-plan when the job is to review and edit a plan before anything runs.
  • Use research-run for a single research answer with sources and citations.
  • Use agent-tasks to track many independent background tasks that do not merge into one result.
  • Use model-router when one request is routed to one model rather than split across several.

Installation

Pro source and install commands unlock with a Pro plan.

Usage

Pass a goal and run, which emits plan, dispatch, progress and result events, to show a real orchestration; with no props it plays a sample run.

example.tsx
1import { AgentOrchestrator, type OrchestratorRun } from "@/components/arc/blocks/agent-orchestrator/agent-orchestrator";2 3// Yield events from your orchestrator. The block handles timing, pulses, queues and totals.4const run: OrchestratorRun = async function* ({ goal, workers, concurrency, signal }) {5  const plan = await planWithLead(goal, workers);           // your lead model call6  for (const subtask of plan) yield { type: "plan", subtask };7 8  for await (const update of runWorkers(plan, { concurrency, signal })) {9    // update.kind: "dispatch" | "tool" | "toolDone" | "text" | "usage" | "error" | "retry" | "result"10    if (update.kind === "dispatch") yield { type: "dispatch", subtaskId: update.id };11    if (update.kind === "tool") yield { type: "tool", subtaskId: update.id, tool: update.tool, target: update.target };12    if (update.kind === "text") yield { type: "output", subtaskId: update.id, delta: update.text, newLine: update.first };13    if (update.kind === "usage") yield { type: "usage", subtaskId: update.id, tokens: update.tokens, cost: update.cost };14    if (update.kind === "error") yield { type: "error", subtaskId: update.id, message: update.message, retryInMs: 2000 };15    if (update.kind === "result") yield { type: "result", subtaskId: update.id, text: update.text };16  }17 18  for await (const delta of streamSummary(signal)) yield { type: "summary", delta };19  yield { type: "done" };20};21 22export function PricingReview() {23  return (24    <AgentOrchestrator25      goal="Compare our pricing page with four competitors and suggest changes"26      run={run}27      defaultConcurrency={3}28      onComplete={result => saveReport(result.summary, result.cost)}29    />30  );31}
Built fromButtonCopy buttonSegmented controlText shimmer

API reference

2 parts. The first is the root.

AgentOrchestrator

A lead agent splits a goal into a plan, fans the subtasks out to parallel worker lanes and merges what they return. The lead writes its plan one subtask at a time, then dispatches each subtask down a connector to its lane; a short pulse runs the connector on dispatch and again when the result comes back. Each lane shows its model, subtask, the current tool (web search, fetch page, read file, write findings), one line of streaming output, rolling tokens and cost, and elapsed time; a lane that fails counts down to a retry. When every lane has returned, the lead streams a summary and a totals row compares the wall time with running every subtask in sequence. A concurrency limit from 1 to 4 holds extra lanes in a visible queue, and clicking a lane opens its compact transcript. Lanes sit side by side on wide cards and stack under a trunk on narrow ones; the connectors are measured from the real layout and follow either arrangement.

PropTypeDefaultDescription
goalstring"Compare our pricing page with four competitors and suggest changes"What the lead agent is asked to do. Shown as the card heading and passed to the run hook.
planOrchestratorSubtask[]samplePlanSubtasks passed to the run hook: { id, title, instruction?, workerId? }. The title heads the lane; the instruction is the line the lead writes in its plan. The built in simulation writes this plan; your own hook may yield a different one with plan events.
workersOrchestratorWorker[]Claude Sonnet 5.5, Claude Haiku 5.5, Gemini 3.8 Flash, GPT-6 LunaThe worker lanes in order: { id, name, mark? }. A subtask lands on the worker named by its workerId, or on the next free worker. Up to four lanes sit side by side; more always stack.
lead{ name: string; mark?: ReactNode }Claude Opus 5.5The lead agent shown at the top of the flow and again on the summary.
run(context: OrchestratorRunContext) => AsyncIterable<OrchestratorEvent>simulateOrchestrationThe run hook. It receives { goal, plan, workers, concurrency(), signal } and yields events: plan, dispatch, tool, toolResult, output, usage, error, retry, result, fail, summary and done. An async generator is the simplest way to write one. The signal aborts on Stop, on Run again and on unmount. Without it the block plays a local simulation and says so in its status region.
concurrencynumber–Controlled concurrency limit from 1 to 4. Leave it out to let the built in control own the value.
defaultConcurrencynumbernumber of workers, at most 4Starting limit when uncontrolled.
onConcurrencyChange(value: number) => void–Called when someone picks a new limit. The run hook reads the live value through context.concurrency(), so raising it mid run releases queued lanes at once.
autoStartbooleantrueStarts the first run when the block scrolls into view. Never starts on its own with reduced motion; the Run button is always there.
onComplete(result: OrchestratorResult) => void–Called once per finished run, after the summary has landed, with { summary, tokens, cost, wallMs, sequentialMs, speedup, lanes }. Each lane reports its subtask, worker, status, text, tokens, cost and time.
classNamestring–Class on the root element.

simulateOrchestration

The default run hook, exported so you can read the event order it produces or wrap it. It plans four subtasks, dispatches them up to the live concurrency limit, runs each lane through scripted tool calls with token usage, fails one fetch with a 503 and retries it after two seconds, then streams the lead's summary. Prices for Claude models are list prices; the others are illustrative sample values.

PropTypeDefaultDescription
contextOrchestratorRunContext–{ goal, plan, workers, concurrency, signal }, as passed by the component.

Keyboard interactions

Tab
Moves through the concurrency control, the Run or Stop button, each lane, and the copy summary button once a run is done. An open transcript has no controls of its own.
Arrow leftorArrow right
On the concurrency control, picks a lower or higher limit. Home and End pick 1 and the maximum.
Enter, Space
On a lane, opens or closes its transcript. On Run, starts a run; while running the same button stops it; afterwards it runs again.

Accessibility

  • The goal is the card heading, and the lead, the plan and the summary are labelled sections, so the flow reads top to bottom in the order the work happens.
  • Each lane is a button with aria-expanded and aria-controls, named by its subtask, model and status. A closed transcript is inert, so it leaves the reading order.
  • Status never rests on color: every lane state pairs a glyph with a word (waiting, planned, queued with its place in line, starting, the running tool, failed with a retry countdown, returned, gave up, stopped).
  • A polite status region announces planning, dispatch, errors and retries, each returned lane, the start of the summary and the final totals, and says that the default run is a simulation.
  • Connectors and pulses are decorative and hidden from assistive technology; the plan's colored dots repeat information that the lane titles already give.
  • Pointer focus draws no ring; keyboard focus shows Arc's shared focus ring, inset on lanes so it follows their corners.

Motion

  • Plan items grow in one by one on a critically damped spring and their text streams in chunks of a few words that only fade in.
  • A dispatch sends a short colored packet down the connector to the lane; a returning result sends one from the lane to the summary. The simulation waits for the packet to land before the lane starts, so cause always comes before effect.
  • A lane's branch and port take its series color when work reaches it; queued branches stay dashed with a hollow port.
  • Tool, status and output swaps are one minimal crossfade: the old label fades out in 100ms while the new one fades in over 160ms from 2px below. Running labels carry a calm shimmer that stops when the lane settles.
  • One line of output streams on a steady requestAnimationFrame clock and glides left under a soft edge when it outgrows the lane, so the newest words stay in view; settled lines rest at the start with an ellipsis.
  • Tokens and cost count to each new value with tabular digits; elapsed times tick in tenths.
  • Transcripts and the totals row open with height and opacity on a spring without bounce.
  • Reduced motion removes pulses, spinners, shimmer, chunk fades and height travel, keeps every state, label and announcement, and never starts a run on its own.

Responsive behavior

  • Above 720px of card width, up to four lanes sit side by side; the trunk drops from the lead into a bus above them and their results merge on a second bus into the summary.
  • Below that, lanes stack under a single trunk in the lead's column with a short branch into each lane, and the same pulses run down and back along it.
  • Connectors are measured from the rendered layout with a ResizeObserver, so they follow wrapping text, an opened transcript and container resizes without breakpoints of their own.
  • Below 440px the side padding tightens, the concurrency label and the lead's elapsed time are hidden, and the totals fall into two columns. It holds at 320px without horizontal scroll.

Performance

  • The run hook's events go through one reducer; nothing renders per animation frame except the chunk clock of a line that is streaming.
  • Token and cost counters write their text straight to the DOM through motion values, so a busy run does not re-render lanes for every tick.
  • Pulses are single SVG paths animated with the Web Animations API on stroke-dashoffset and removed when they finish.
  • Connector geometry is recomputed only when an observed size changes and is skipped when nothing moved.

Notes for AI

Give your coding assistant the Markdown reference instead of screenshots.

  • Choose it when one model plans and several models work in parallel, and the reader needs to see who is doing what, what failed, and what parallelism saved.
  • Write the run hook as an async generator. Yield plan events first, then dispatch before a lane's first tool event, then result (or fail) for every dispatched subtask, then summary deltas and done.
  • Respect context.concurrency() before each dispatch. The block shows a lane as queued only while every slot is taken, so a hook that ignores the limit will simply show no queue.
  • usage events are increments, not totals. Leave out subtaskId for the lead's own tokens; they count toward the totals row but not toward any lane.
  • output deltas append to the lane's line; set newLine on the first delta of a new step. The block smooths bursty deltas into a steady stream.
  • The sequential estimate is the wall time minus the parallel stretch plus every lane's own time from dispatch to return, so concurrency 1 reads as about the same as running in sequence.
  • Company names, prices and pages in the sample are fictional. Prices for non Anthropic models are illustrative sample values.
/components/blocks/agent-orchestrator/markdown

The full library index for assistants is at /llms.txt.

Related

Agent runProBlockA single card that follows one AI coding agent through a task: steps stream in with the live one shimmering, tool calls open in place, and the agent stops on a two-file diff for you to approve or send back before it writes. When the run ends, the steps fold into one line and a result shows the files changed, the checks that passed and a pull request button.Agent planProComponentThe plan an agent writes before it acts: edit, reorder or add steps while it is a draft, then watch it work through them as a live checklist.Agent tasksProBlockA home for background coding agents: start a task on a repository and branch, watch each card move from queued to running to ready for review, and open a pull request from the result.Research runProBlockDeep research that plans searches, reads sources with their marks, and streams a cited answer where every chip lights up the sentence it supports.Agent loopProComponentAn illustration of the agent loop: gather context, take action, verify, repeat, with a bright head circling three stations around the model.Mixture of expertsProComponentAn illustration of mixture of experts routing: each token is scored by a router, travels to its top experts, and their outputs merge into the token's result.Agent statusProComponentA compact live status pill for a running AI agent: the agent's mark in a live ring, the current activity and an elapsed timer, opening into the steps so far.
PreviousAgent routinesNextMCP servers
Arc · 129 block pagesllms.txt

On this page

  • Preview
  • When to use
  • When not to use
  • Installation
  • Usage
  • API reference
  • Keyboard
  • Accessibility
  • Motion
  • Responsive behavior
  • Performance
  • Notes for AI
  • Related
View as Markdown

Compare our pricing page with four competitors and suggest changes

Concurrency
Claude Opus 5.5LeadReady

Writes a plan, then splits it across 4 subagents.

    This lane has no subtask yet.

    This lane has no subtask yet.

    This lane has no subtask yet.

    This lane has no subtask yet.

    SummaryWaits for 4 results

    The lead merges what the subagents return here.