Launch priceOne payment

Agent Execution Graph

Steps laid out left to right by what they depend on, with no coordinates needed. Status reads by shape and word: running, waiting, failed, queued, skipped. Pick a step to light what it depends on and what it feeds, see its details, and open it. Pan, zoom, fit, filter by status, or read the same run as a list.

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

The layout comes from the edges

A step sits one column after the latest step it needs, so parallel work lines up and a failed branch visibly blocks what comes after it. Broken links and cycles are reported, not hidden.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Layro's Agent Execution Graph for this.
Install it: npx shadcn@latest add @layro/agent-execution-graph
Import it from @/components/ui/agent-execution-graph.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
nodesrequiredExecutionGraphNode[]—
edgesrequiredExecutionGraphEdge[]—
selectedNodeIdstring | nullControlled selection.
defaultSelectedNodeIdstring | null—
onNodeSelect(node: ExecutionGraphNode | null) => void—
onOpenNodeDetails(node: ExecutionGraphNode) => voidAdds "Open step" to the details.
layoutDirection"horizontal" | "vertical"Default `horizontal`: left to right. People can flip it from the toolbar.
onLayoutDirectionChange(direction: "horizontal" | "vertical") => voidSomeone flipped the layout.
showLayoutTogglebooleanShow the "Left to right / Top to bottom" switch. Default true.
highlightPathstring[]Node ids, in order: the route the run took.
heightnumberHeight of the canvas. Default 380.
defaultView"graph" | "list"Start on the list instead of the graph.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebadgebuttonsegmented-controlstate

Lifetime access

Every component, and everything we ship next.

  • All 112 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in AI Agent

All AI Agent components