Skip to content

kaboo-react

React components + hooks for rendering kaboo multi-agent activity in a CopilotKit app, with batteries-included CopilotKit integrations.

kaboo-react renders a live, hierarchical view of what your agents are doing — sub-agent cards, tool calls, streamed tokens, structured outputs, drill-down navigation, and human-in-the-loop interrupts. Activity rides the same AG-UI run stream as the chat (as ACTIVITY_SNAPSHOT events), so there is no separate endpoint to wire up.

Install

yarn add @pgege/kaboo-react
# or
npm install @pgege/kaboo-react
# or
pnpm add @pgege/kaboo-react

Peer dependencies: react, react-dom, @copilotkit/react-core (>= 1.62).

Import the stylesheet once, near your app root:

import "@pgege/kaboo-react/styles.css";

Quick start

import { CopilotChat } from "@copilotkit/react-core/v2";
import { KabooProvider, GlassTabs, DrillDetailView } from "@pgege/kaboo-react";
import { KabooMessageView } from "@pgege/kaboo-react/copilotkit";
import "@pgege/kaboo-react/styles.css";

export function App({ agent, threadId }: { agent: string; threadId: string }) {
  return (
    <KabooProvider runtimeUrl="/api/copilotkit" agent={agent} threadId={threadId}>
      <GlassTabs />
      <CopilotChat messageView={KabooMessageView} />
      <DrillDetailView />
    </KabooProvider>
  );
}

Next steps

The kaboo stack

kaboo-react is the UI layer. It pairs with kaboo-workflows (agent orchestration) and kaboo-runtime (persistence). See the kaboo stack for the whole picture.