Skip to content

Add agent monitor with state tracking and history#15

Open
liangzhang-keepmoving wants to merge 1 commit intoCopilotKit:mainfrom
liangzhang-keepmoving:feature/agent-monitor
Open

Add agent monitor with state tracking and history#15
liangzhang-keepmoving wants to merge 1 commit intoCopilotKit:mainfrom
liangzhang-keepmoving:feature/agent-monitor

Conversation

@liangzhang-keepmoving
Copy link

Description

This PR adds an AgentMonitor component that provides real-time monitoring of agent states and a history of agent activities.

Features Added

  • Real-time Agent Monitoring: Displays the current state (running/idle) of each agent
  • Node Tracking: Shows the current node name for running agents
  • Activity History: Records and displays a timeline of agent activities (start/stop/node changes)
  • Timestamped Events: Each activity includes a timestamp for reference
  • Visual Status Indicators: Uses icons and colors to indicate agent status

Changes Made

  • Created AgentMonitor component with state management
  • Added agent state monitoring using useCoAgent hook
  • Implemented activity history recording and display
  • Added the component to the canvas layout below the chat window

Testing

The agent monitor has been tested with:

  • Multiple agents running simultaneously
  • Agent state changes (starting/stopping)
  • Node changes for running agents
  • Activity history recording and display

All features work as expected, providing clear visibility into agent activities.

@vercel
Copy link

vercel bot commented Feb 23, 2026

Someone is attempting to deploy a commit to the CopilotKit Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant