Skip to content
GitHub (opens in a new tab)

RunningNow

Many agents, small: a strip of what runs now for a header (row of chips) or a sidebar (stack), with status, activity and a clock.

stableOrganismcontracts/runningnow.json

Preview

RunningNow

Many agents, small. Not AgentMonitor. Not AgentFleet.

Master

A row of chips for a header. Variants shows the stack for a sidebar.

Running now3

Usage

RunningNow lives in app chrome. Each item links to its agent; open one in an AgentMonitor. Never nest a monitor in the strip.

Do's

  • an at-a-glance list of running agents in app chrome
  • show which agent waits for the person or failed
  • link from a compact strip to each agent
  • idleText: nothing runs now and you know when the last run was, e.g. "Idle · last run 2h ago"

Don'ts

  • one agent in detail — AgentMonitor
  • agents with sub-agent progress and cost — AgentFleet
  • a notification feed — Toast
<RunningNow layout="row" items={items} onSelect={openAgent} onShowAll={openList} />

When to use

  • an at-a-glance list of running agents in app chrome
  • show which agent waits for the person or failed
  • link from a compact strip to each agent
  • idleText: nothing runs now and you know when the last run was, e.g. "Idle · last run 2h ago"

When not to use

  • one agent in detail — AgentMonitor
  • agents with sub-agent progress and cost — AgentFleet
  • a notification feed — Toast

What an agent reads

import { RunningNow } from "agentic-ds-kit";
must
  • section named by its heading (label plus count)
  • items are a list; waiting and failed items say their status as visible text (Needs you, Failed), running is named for screen readers
  • with onSelect each item is a button
  • with onStop, Stop is a separate kit Button named "Stop <name>"
  • the overflow says how many more in words
  • aria-busy while loading
  • spinner and entry motion use transform and opacity, plus a stroke draw when a run turns failed live (a first load stays still), off under prefers-reduced-motion
defaults
  • layout row
  • label Running now
  • loading false
  • emptyText Nothing running right now
stops if
  • Do not invent a local RunningList, AgentStrip, or ActivityBar
  • Do not nest an AgentMonitor in the strip
  • Do not use raw hex for status colors
  • Do not pass idleText to say something is running or loading; it only shows when items is empty, and emptyText is the plain empty line
  • Do not swap idleText and emptyText: idleText is for an agent that has run before ("Idle · last run 2h ago"); emptyText is for one that has never run

From contracts/runningnow.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.

Props

NameTypeRequiredDefaultNotes
itemsarrayYes—{ id, name, activity?, status: "running" | "waiting" | "failed", elapsed? }[]
layoutrow | stackNorow—
maxVisiblenumberNo—Default 3 (row) or 4 (stack); the rest is said as "N more" (row: on the label line) or "+N more running" (stack), with "View all" when onShowAll is set.
labelstringNoRunning now—
onSelectfunctionNo—(id) => void. Items become buttons.
onShowAllfunctionNo—The overflow control.
onStopfunctionNo—(id) => void. Running and waiting items get an icon-only Stop named "Stop <name>", beside the item, never inside its button.
loadingbooleanNofalse—
emptyTextstringNoNothing running right now—
idleTextstringNo—Idle state when items is empty, e.g. "Idle · last run 2h ago": the label drops its count and the small kit Empty drops its clock icon. Takes the place of emptyText; ignored while items run or load.
  • Component
    →

    AgentMonitor

    One agent at work: a live clock and running cost lead; finished steps sit in a time strip you can open.

  • Component
    →

    Toast

    A short note that floats in after an action, like Saved successfully, and goes away on its own after a few seconds, with an optional Undo.