Loading component…
Loading component…
Your team of agents in one place: their roles, status, runs, and permissions.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import Agent/Agents from ./agents.
import { AgentsScreen } from "@/components/ui/agents";
export default function Page() {
const [agents, setAgents] = useState(initialAgents);
return (
<AgentsScreen
agents={agents} // working agents show what they do right now
onPause={(agent, paused) => api.setPaused(agent.id, paused)}
onMessage={(agent) => router.push(`/thread?agent=${agent.id}`)}
onCreate={(agent) => api.createAgent(agent)} // from New agent
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| agents | { id; name; role; color; model; status: "working" \| "idle" \| "paused"; doing?; lastRun?; runs; cost; daily?; owner?; instructions?; skills?; apps?; recent?: { title; state; at }[] }[] | Every agent. doing is what a working agent does right now (shown on the right); apps the apps it may use – logos on the card; lastRun shows for idle and paused agents; runs and cost are this week's; daily the runs per day for the chart on the right. Pass a stable array (state) | |
| defaultView | "grid" \| "list" | "grid" | Grid or list when the screen starts |
| defaultOpen | string \| null | "builder" | The agent open on the right when the screen starts |
| onPause | (agent, paused) => void | Called with Pause or Resume on the right | |
| onMessage | (agent) => void | Called with Message – without it the screen calls onNavigate("Thread") | |
| onCreate | (agent) => void | Called with an agent made in New agent – name, what it does, model (Claude, GPT, Gemini or Grok, each with its maker's logo) and color | |
| loading | boolean | Gray cards in place of the agents, and the panel as gray lines in its own layout | |
| empty | boolean | No agents yet – one quiet note with New agent | |
| onNavigate | (label: string) => void | Called with the label of a sidebar item – and with "Skills" and "Permissions" from the panel | |
| className | string | Extra class on the root |
The content is capped at 720px in the middle, cards in two columns – one on phones; the whole area scrolls, so no card edge or hover shadow is cut
List rows drop the role and model below 720px, the numbers below 560px
Below 560px the tools move above the tabs and New agent becomes a +
Touch targets grow to 36px on touch screens
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"