Agents components
The five named components defined in agents.contract: AgentError, AgentToolRow, AgentChildRow, AgentContextRow and AgentRunCard.

agents.contract defines five components that are not screens. Four of them are rows of the conversation transcript and one is the failure line used across the Agents tab. This page maps them. The rest of the Agents UI is written inline in the screen components and is documented under Inline parts.

The components

Component

What it is

Used by

Page

AgentError

A red failure line with "Retry"

Agents list, Agent detail, Agent session

AgentError

AgentToolRow

A grey card for one tool call, expandable to input and output

Agent session

AgentToolRow

AgentChildRow

A two line link to a child run's conversation

AgentRunCard

AgentChildRow

AgentContextRow

A full width disclosure row for trigger context and structured parts

Agent session

AgentContextRow

AgentRunCard

A grey card for one run: title, status badge, plan steps, children, actions

Agent session

AgentRunCard

flowchart TD session["AgentSessionScreen"] --> tool["AgentToolRow"] session --> context["AgentContextRow"] session --> run["AgentRunCard"] session --> error["AgentError"] run --> child["AgentChildRow"] run --> badge["Badge"] list["AgentsScreen"] --> error detail["AgentDetailScreen"] --> error

What they share

    Two surfaces. Tool rows and run cards are cards: -exact-secondary-background, radius 10, padding 12, margin 4 by 16. Context rows and the error line are flat rows with 16 point side padding. See Cards and panels and Spacing, radii and sizes.

    Small type. Titles are -exact-subheadline, supporting text -exact-footnote, metadata -exact-caption1, so work rows stay quieter than the chat bubbles, which use the body size (Typography).

    44 point targets. Every tappable line inside them has min-height=44, start aligned text and a full width hit area (Accessibility).

    Disclosure in place. Tool and context rows keep their own expanded state and report it with aria-expanded.

    Only platform colours, plus the badge. The only tokens used are brand.fill and danger.fill, on the run card's Badge (Color and tokens).

Inline parts of the Agents tab

Differences from DESIGN.md

DESIGN.md's component table lists only shared components and does not name any of these five. It describes them in prose: "tool calls as compact disclosure rows (symbol + tool name + status), run cards as a secondary card with status badge (Badge)". Both descriptions match what was built. AgentError plays the role DESIGN.md gives to StatusLine, in red; see StatusLine.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime