Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:777genius Agent teams ai GraphActivityHud GraphProvisioningHud

From Leeroopedia
Knowledge Sources
Domains Visualization, UI_Overlay
Last Updated 2026-10-22 00:00 GMT

Overview

Concrete tool for rendering real-time activity and provisioning status as HUD overlay components on the agent graph visualization, provided by the Agent Teams application.

Description

The GraphActivityHud and GraphProvisioningHud React components render heads-up display overlays on top of the agent graph canvas. They consume team activity data and provisioning progress events to show live status indicators.

GraphActivityHud:

  • Shows per-member activity indicators including active tool calls, pending approval badges, and finished tool summaries.
  • Consumes `activeTools`, `finishedVisible`, `toolHistory`, and `pendingApprovalAgents` enrichment data.
  • Positioned to not obscure graph nodes; typically rendered in the top or side margins of the canvas.

GraphProvisioningHud:

  • Shows provisioning progress stages (spawning, bootstrapping, ready, error) as visual status badges.
  • Consumes `TeamProvisioningProgress` data including stage, percentage, and per-member spawn status.
  • Displays error states when provisioning fails, with diagnostic information.

Usage

  • During team launch: Render `GraphProvisioningHud` to show live provisioning progress.
  • During team operation: Render `GraphActivityHud` to show which agents are actively working.
  • Compose with GraphView: Both HUDs are rendered as siblings of the canvas within a positioned container.

Code Reference

Source Location

  • Repository: agent-teams
  • Files:
    • src/renderer/features/agent-graph/GraphActivityHud.tsx
    • src/renderer/features/agent-graph/GraphProvisioningHud.tsx

Signature

// GraphActivityHud - React component
export function GraphActivityHud(props: {
  activeTools: Record<string, Record<string, ActiveToolCall>>;
  finishedVisible: Record<string, Record<string, ActiveToolCall>>;
  toolHistory: Record<string, ActiveToolCall[]>;
  pendingApprovalAgents: Set<string>;
  memberStatusEntries: MemberStatusEntry[];
}): JSX.Element;

// GraphProvisioningHud - React component
export function GraphProvisioningHud(props: {
  provisioningProgress: TeamProvisioningProgress | null;
  spawnStatuses: Record<string, MemberSpawnStatusEntry>;
}): JSX.Element;

Import

import { GraphActivityHud } from '@renderer/features/agent-graph/GraphActivityHud';
import { GraphProvisioningHud } from '@renderer/features/agent-graph/GraphProvisioningHud';

I/O Contract

Inputs

Name Type Required Description
activeTools Record Yes (ActivityHud) Per-member active tool calls
pendingApprovalAgents Set<string> Yes (ActivityHud) Agents awaiting approval
provisioningProgress null Yes (ProvisioningHud) Live provisioning progress
spawnStatuses Record Yes (ProvisioningHud) Per-member spawn status

Outputs

Name Type Description
return JSX.Element Rendered HUD overlay

Usage Examples

Rendering Both HUDs with GraphView

import { GraphActivityHud } from '@renderer/features/agent-graph/GraphActivityHud';
import { GraphProvisioningHud } from '@renderer/features/agent-graph/GraphProvisioningHud';

function TeamGraphView({ teamData, provisioningProgress, spawnStatuses }) {
  return (
    <div className="relative">
      <canvas ref={canvasRef} className="absolute inset-0" />

      {/* Provisioning overlay during launch */}
      {provisioningProgress && (
        <GraphProvisioningHud
          provisioningProgress={provisioningProgress}
          spawnStatuses={spawnStatuses}
        />
      )}

      {/* Activity overlay during operation */}
      <GraphActivityHud
        activeTools={teamData.activeTools}
        finishedVisible={teamData.finishedVisible}
        toolHistory={teamData.toolHistory}
        pendingApprovalAgents={teamData.pendingApprovalAgents}
        memberStatusEntries={teamData.memberStatusEntries}
      />
    </div>
  );
}

Related Pages

Implements Principle

Requires Environment

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment