Wed, Jun 4, 202513:30Agents
AG-UI: The Agent-User Interaction Protocol
Watch on YouTubeFrom the full recording of the nightRecorded at AIMUG, Jun 4, 2025

Write-up
π Interactive Presentation: View Live Slides
π― What is AG-UI?
AG-UI is the Agent-User Interaction Protocol - think of it as βUSB-C for AI agents!β
- Open, lightweight, event-driven protocol
- Universal translator for AI-driven systems
- Standardizes frontend-to-agent communication
- Real-time human-AI collaboration
π¨ The Problem It Solves
Current Pain Points
- Agents live in backend silos - no standard UI integration
- Custom WebSocket implementations for each framework
- No standard for real-time interaction between humans and agents
- Fragmented agent-to-UI communication across platforms
- Human-in-the-loop workflows are complex to implement
β‘ Core Capabilities
- π Real-time interactivity - Sub-100ms latency
- π‘ Live state streaming - Watch agents work in real-time
- π€ Human-in-the-loop collaboration - Interrupt and guide agents
- π Token-by-token text streaming - See AI thinking live
- π Tool execution transparency - Monitor what agents are doing
- βοΈ Bidirectional communication - True conversation flow
ποΈ Event-Driven Architecture
16 Standardized Event Types across 5 Categories:
Lifecycle Events (5)
RUN_STARTED,RUN_FINISHED,RUN_ERRORSTEP_STARTED,STEP_FINISHED
Text Message Events (3)
TEXT_MESSAGE_START,TEXT_MESSAGE_CONTENT,TEXT_MESSAGE_END
Tool Call Events (3)
TOOL_CALL_START,TOOL_CALL_ARGS,TOOL_CALL_END
State Management Events (3)
STATE_SNAPSHOT,STATE_DELTA,MESSAGES_SNAPSHOT
Special Events (2)
RAW,CUSTOM
Transport Options
- JSON events over HTTP/SSE
- Optional binary protocol for 60% smaller payloads
- Transport agnostic - HTTP/SSE/WebSockets
π§ Framework Integrations
β Currently Supported
- LangGraph - Graph-based agent orchestration
- CrewAI - Multi-agent workflows
- Mastra - TypeScript-first agents
- AG2 - Open-source AgentOS
π§ Coming Soon
- Bedrock - AWS managed agents
π Protocol Ecosystem
AG-UI complements (doesnβt compete with) other protocols:
MCP (Model Context Protocol)
- By: Anthropic
- Purpose: Agent β Tools communication
A2A (Agent-to-Agent Protocol)
- By: Google
- Purpose: Agent β Agent communication
AG-UI (Agent-User Interaction Protocol)
- By: CopilotKit
- Purpose: Agent β Human interaction
These protocols work together to create a complete AI ecosystem!
π― Real-World Use Cases
π» Live Code Pairing
AI writes code token-by-token, human can interrupt and collaborate
π Data Analysis Dashboards
Real-time query execution with human oversight
π€ Multi-Agent Orchestration
Human supervisors monitoring agent workflows
π¨ Creative Design Tools
AI generates designs with live previews and human feedback
π Technical Benefits
- Sub-100ms latency for token streaming
- 60% smaller payloads with binary protocol
- Transport agnostic (HTTP/SSE/WebSockets)
- Framework agnostic - works with any agent system
- State delta syncing reduces bandwidth
- Built-in security and error handling
π οΈ Getting Started
Resources
- π Documentation: docs.ag-ui.com
- π§ͺ Live Demo: agui-demo.vercel.app
- π» GitHub: github.com/ag-ui-protocol/ag-ui
- π οΈ SDKs: TypeScript and Python available
Quick Start
Start building human-AI collaborative apps today with standardized real-time interaction!
π Related Content
- MCP Architecture & A2A - Deep dive into protocol ecosystem
- AI Ecosystem 2025 - Broader context of AI development tools
- Resources - Implementation guides and tools
AG-UI represents the missing piece in the AI protocol ecosystem - standardized human-agent interaction that enables true collaborative AI applications.
Same night
16:26Fine-Tuning Embeddings for Nuclear Regulatory WorkRob Whelan
17:10The AI Ecosystem Landscape in 2025Colin McNamara
38:51Interrupt 2025 Conference PanelColin McNamara, Collier King, Riccardo Pirruccio, Karim Lalani, Cameron Rohn, Paul Phelps
1:45:31AIMUG June 2025 | AI Ecosystem Matures: LangChain, AG-UI, Nuclear AI & MoreRelated talks
41:10Riccardo Pirruccio: AI, Consciousness, and the Future of Collaboration | Builders Podcast #5Riccardo Pirruccio Β· Agents
38:29AI Development: Advanced Workflow Lessons LearnedRyan Booth Β· Agents
1:36:55Austin AI MUG: September Showcase | Thunderstorm Talks (LangChain, Claude Code, Deep Agents & More)Coding agents

