A small living agent graph for heroes and feature sections: the lead with a soft glow, agents around it, tools further out. Streaks run lead → agents → tools, arrivals glow, and a new tool grows in now and then.
Used for
- Agent product hero
- Multi-agent feature section
- Live run preview
- Tool ecosystem story
Examples
Speed
Installation
npx knowns-ui@latest add run-pulseFor Claude Code, Cursor or Codex: installs it and wires the props to your own data.
Paste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install prompt
Install Run pulse from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/run-pulse
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add run-pulse
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- components/ui/knowns/illustrations/illust-utils.ts
- components/ui/knowns/illustrations/use-in-view.ts
- lib/knowns/icons/actor-icon.tsx
- lib/knowns/icons/model-icons.tsx
- lib/knowns/icons/tool-icons.tsx
- lib/knowns/icons/model-icons.data.ts
- lib/knowns/icons/tool-icons.data.ts
- lib/knowns/icons/LICENSES.md
- components/ui/knowns/illustrations/run-pulse.tsx
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/run-pulse, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "run-pulse" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- lead
{ name, model?, icon? }- Default
{ name: "Lead" } - The centre tile, with a soft glow. model picks the logo (modelIcon); without one, initials.
- agents
{ name, model?, icon? }[]- Default
4 agents - 1–5 tiles around the lead, each in its AGENT_PALETTE colour.
- tools
{ name, icon?, agent? }[]- Default
6 tools - Further out, up to 3 per agent. agent is an index or a name; otherwise round-robin. Logos via toolIcon.
- grow
{ name, icon? }|false- Default
{ name: "Design" } - A tool that now and then grows in: the line draws from its agent, then the tile.
- speed
number- Default
1 - 1 = a 3.6s cycle.
- paused
boolean- Default
false - Hold the scene.
- size
"sm"|"md"|"lg"|number- Default
"md" - Max width: 320, 480, 640 or px. Tiles scale with the container.
- run
AgentRun- Actors from the run become tiles (root agent in the middle); each new call fires one streak instead of the loop.
- label
string- Default
describes the team - Accessible description (role=img).
- Motion
-- CSS only (transform, opacity, stroke-dashoffset). Pauses offscreen, in hidden tabs and on paused; prefers-reduced-motion shows a still, composed frame.
| Prop | Type | Default | Description |
|---|---|---|---|
| lead | { name, model?, icon? } | { name: "Lead" } | The centre tile, with a soft glow. model picks the logo (modelIcon); without one, initials. |
| agents | { name, model?, icon? }[] | 4 agents | 1–5 tiles around the lead, each in its AGENT_PALETTE colour. |
| tools | { name, icon?, agent? }[] | 6 tools | Further out, up to 3 per agent. agent is an index or a name; otherwise round-robin. Logos via toolIcon. |
| grow | { name, icon? } | false | { name: "Design" } | A tool that now and then grows in: the line draws from its agent, then the tile. |
| speed | number | 1 | 1 = a 3.6s cycle. |
| paused | boolean | false | Hold the scene. |
| size | "sm" | "md" | "lg" | number | "md" | Max width: 320, 480, 640 or px. Tiles scale with the container. |
| run | AgentRun | - | Actors from the run become tiles (root agent in the middle); each new call fires one streak instead of the loop. |
| label | string | describes the team | Accessible description (role=img). |
| Motion | - | - | CSS only (transform, opacity, stroke-dashoffset). Pauses offscreen, in hidden tabs and on paused; prefers-reduced-motion shows a still, composed frame. |
What it handles
- 01Draws a lead tile in the middle, one to five `agents` on an inner ellipse and up to three `tools` per agent on an outer one, all in a 480 x 300 box that scales with its container.
- 02Picks provider logos from each agent's `model` and from each tool's `name`, and falls back to initials when no logo is known.
- 03Attaches a tool to an agent by index or name through `agent`, and spreads the tools without one round-robin over agents that still have room.
- 04Runs light streaks from the lead to each agent and on to its tools, with an arrival glow where each one lands, and `speed` sets the cycle (1 is 3.6 seconds).
- 05Grows one extra node in now and then, its line drawing before its tile appears, and `grow` set to false removes it.
- 06Reads a real run when `run` is passed: the root agent becomes the lead, other agents and tools become tiles, and each new call fires one streak instead of the loop.
States
- First render
- Nothing. It paints as it is
- none
- Idle loop
- Streaks travel lead to agents to tools, and each tile glows on arrival, on a cycle set by `speed`
- none
- New tool grows in
- The line draws, the tile appears, then both fade, over four cycles
- none
- Call in a live run
- One streak and one arrival glow per new call, played once
- none
- Offscreen, hidden tab or paused
- Every loop stops where it is
- none
- Reduced motion
- All animation is removed and the composed frame stays
- none
| State | What moves | Timing |
|---|---|---|
| First render | Nothing. It paints as it is | none |
| Idle loop | Streaks travel lead to agents to tools, and each tile glows on arrival, on a cycle set by `speed` | none |
| New tool grows in | The line draws, the tile appears, then both fade, over four cycles | none |
| Call in a live run | One streak and one arrival glow per new call, played once | none |
| Offscreen, hidden tab or paused | Every loop stops where it is | none |
| Reduced motion | All animation is removed and the composed frame stays | none |
Works with
When to use
When to use
- A small living agent graph for a hero or feature section, with streaks from lead to agents to tools.
- Explaining your product's idea visually before the user has a real run.
When not to use
- Showing a real run with clickable nodes: use Agent Graph.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Run Pulse to my app and wire it to my own data.
- I need a small living agent graph for a hero or feature section, with streaks from lead to agents to tools. Set that up with the Knowns UI Run Pulse.
- Which Run Pulse props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "run-pulse" }) and search_docs({ query: "run pulse" }).