Agent detail
One agent: its model, provider and standing instruction, and the list of its conversations with a way to start a new one.

The agent detail screen shows what one agent is and everything the person has said to it. They read its configuration, reopen a conversation, or start a new one. Its screen component is AgentDetailScreen.

At a glance

Tab

Agents

Route

agent, path /agents/:id

Presentation

Pushed

Title

Inline (aria-level=2): the agent's name, or "Agent" until it has loaded

How you get here

A row on the Agents list; "Create" in the New agent sheet

Where it leads

Agent session

The agent "Mock" scrolled deep into its conversations: each row is a title in headline type with the last active time on the right. The inline title and back button float over the list.

Anatomy

    Navigation bar. Back button, inline title, no trailing actions.

    A status section. Holds "Loading agent…" while a read is in flight and the AgentError line when something failed. When neither applies it is empty.

    Section "Configuration".

      "Model" with the model id on the right in secondary colour.

      "Provider" with the provider name on the right in secondary colour.

      The system prompt, if there is one, as a full width row rendered as Markdown in -exact-subheadline.

    Section "Conversations".

      "New conversation" with the add symbol. It is a plain button row, so its title takes the brand tint.

      One session row per conversation: the title in -exact-headline ("Untitled conversation" when it has none), an optional preview line in -exact-footnote, and the last active time in -exact-caption1 on the right. The preview is the conversation's description, or "Error" when the conversation ended in an error.

      "Load more conversations" when the server has older ones.

States

State

What is shown

Loading

"Loading agent…" in the status section; the title reads "Agent"; "New conversation" and "Load more conversations" are disabled

Failure

The message in red with "Retry" (AgentError). The message is the failed command's error if there is one, otherwise the read's error

No conversations

"No conversations yet. Start one to talk to this agent." in secondary colour, under "New conversation"

More available

The row "Load more conversations" at the end

Actions

Action

Result

Tap "New conversation"

Creates a conversation on the server, then pushes it as an Agent session showing "New chat"

Tap a conversation

Pushes that session

Tap "Load more conversations"

Appends the next page of older conversations

Pull down, or tap "Retry"

Refreshes the agent and its conversations

Back

Returns to the Agents list

The list also refreshes by itself when the agent changes on the server, for example when a conversation gets a title. See Agents: WebSocket streams as resources.

Components used

Component

Kind

What it does here

AgentError

Named

The failure line with "Retry"

Agent and session rows

Inline part

Each conversation row

list and section

Primitive

The inset grouped list, the three sections, pull to refresh

header, footer and nav

Primitive

The navigation bar and section headers

button

Primitive

"New conversation", conversation rows, "Load more conversations"

text

Primitive

Labels, values, the Markdown prompt, helper lines

image and symbols

Primitive

The add symbol

row, column and view

Primitive

The label and value rows, the two line stack in a conversation row

Why it is designed this way

    A grouped form above a list. DESIGN.md asks for a "grouped form of config (model, provider) + section of sessions (title, preview, time), 'New conversation'", and the built screen is exactly that. Label left and value right in secondary colour is the system's read only settings row (Forms and inputs).

    The action sits where its result will appear. "New conversation" is the first row of "Conversations", not a bar button, so the new item's place is obvious (inferred: the bar has no trailing action).

    Paging is explicit. A row "Load more conversations" tells the person there is more and lets them ask for it, in place of silent infinite scrolling. This follows Honest state (inferred).

    Configuration is read only here. There is no edit control. Changing an agent is done on desktop today (inferred from the absence of any edit action in the contract).

The screenshot above only shows the lower part of the screen. The Configuration section is not visible in any iOS screenshot in the set (files named ios-).

User stories

This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).

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

Unsubscribe anytime

Attributes
name
Agent detail
summary
One agent: its model, provider and standing instruction, and the list of its conversations with a way to start a new one.