Skip to content
GitHub (opens in a new tab)
AgentsBlock

Agent overview

The first screen of an agent workspace: what needs you, every agent's status, and what changed since your last visit.

What a block is

A block is a kit component for a whole area of a screen, built only from other kit components and tokens. You import it like any component; nothing is copied into your app. Put it inside your page’s <main>: it brings no header or nav of its own.

When to use

  • the first screen of an agent workspace
  • come back after a while and see what changed and what needs you
  • approve the open request, review a failed agent or ask a running one from one place

When not to use

  • one run in detail — RunDetail
  • people's tasks — WorkBoard
  • starting a run — TaskBrief

Usage

The oldest request that needs you comes first, then every agent with an icon-and-word status, one fact, its cost and one action, then what happened since your last visit. Timeline shows the same agents on one time axis on wide screens. It replaces AgentFleet and AgentLanes.

import { AgentOverview } from "agentic-ds-kit";

export function Home({ agents, events, lastVisit }) {
  return (
    <main className="layout-content">
      <AgentOverview
        agents={agents}          // { id, name, status?, now?, cost?, subAgents? }[]
        events={events}          // AgentLanes tasks, plus action? and risk? for approvals
        since={lastVisit}        // epoch ms
        defaultView="list"       // or view + onViewChange; "timeline" on wide screens
        onApprove={(id) => approve(id)}
        onReject={(id) => deny(id)}
        onReview={(agentId) => openRun(agentId)}
        onAsk={(agentId) => ask(agentId)}
        onNewTask={() => openTaskBrief()}
      />
    </main>
  );
}

Layout

  • header: title and lead line (since time · agents, spent); the List / Timeline toggle and New task at the end
  • layout-split--primary: Needs you over All agents in the wide column, the Since rail (ActivityFeed history) in the narrow one
  • the block is its own inline-size container; below --grid-breakpoint-md (64rem) of block width it is one column in reading order: Needs you, All agents, Since rail; below --grid-breakpoint-sm (40rem) Timeline hides and the list shows

Props

NameTypeRequiredDefaultNotes
agentsarrayYes—{ id, name, model?, icon?, status?, now?, cost?, subAgents? }[]. status is AgentStatus (queued | running | needs-you | paused | done | failed; older waiting and approval map to needs-you, idle to queued); default from the agent's latest event. now is one line on what it is doing. cost like "$0.42"; when every agent has one the lead line adds the total spent. subAgents { id, name, status, elapsed?, cost? }[] are counted on the row.
eventsarrayYes—AgentLanes tasks plus action? (ApprovalCard action) and risk?: { id, agentId, title, status: "done" | "running" | "waiting" | "failed", start, end?, ask?, summary?, handoffTo?, action?, risk? }[]. Open waiting events fill Needs you, oldest first; events since `since` fill the Since rail.
sincenumberYes—Epoch ms of the last visit. The lead line and the Since rail start from it.
nownumberNo—Controlled clock; else it ticks every second.
filterall | running | needs-you | failedNo—Controlled filter for the All agents list and the Timeline lanes, by agent status.
defaultFilterall | running | needs-you | failedNoallUncontrolled starting filter.
onFilterChangefunctionNo—(filter) => void
viewlist | timelineNo—Controlled view. timeline renders AgentLanes in place of the list; below --grid-breakpoint-sm (40rem) of block width only the list shows and the toggle hides.
defaultViewlist | timelineNolistUncontrolled starting view.
onViewChangefunctionNo—(view) => void
onApprovefunctionNo—(eventId) => void. From the Needs you card or a lane block.
onRejectfunctionNo—(eventId) => void. Deny on the Needs you card.
onRetryfunctionNo—(eventId) => void. Kept for older apps; the row action for a failed agent is Review (onReview).
onReviewfunctionNo—(agentId) => void. Review on a failed agent's row.
onAskfunctionNo—(agentId) => void. Ask on a running agent's row.
onNewTaskfunctionNo—() => void. New task in the header: open TaskBrief.
titlestringNoAgents—

Built from

  • Block
    →

    Run detail

    One agent run on one screen: clock, cost, pending approval and every step, all following the step you pick.

  • Block
    →

    Work board

    A team's work by status.

  • Component
    →

    TaskBrief

    The brief a person hands an agent before it plans: a goal, one-line "done when" checks, optional spend, time and step limits, allowed tools, model and check-in level.

  • Block
    →

    Activity feed

    What people and agents did across the workspace, newest first and grouped by day.