v0.1.0 — Free — MIT License

Preview. Debug. Inspect. Without leaving your editor.

The developer toolkit for CopilotKit agents — preview generative UI, explore 28 hooks, and inspect AG-UI protocol streams, all from the VSCode activity bar.

Hook Explorer
// Scanning workspace for CopilotKit hooks...

Render Hooks (16 found)
   useCopilotAction       src/agent.tsx:12
   useCopilotAction       src/tools.tsx:8
   useCoAgentAction       src/flow.tsx:24
   useCopilotChatSuggestions src/chat.tsx:6

Data Hooks (12 found)
   useCopilotReadable     src/state.tsx:15
   useCoAgentStateRender  src/flow.tsx:31
   useCopilotChat         src/chat.tsx:19

CodeLens: 28 "Preview Component" lenses active
AG-UI Inspector
Three Panels, One Activity Bar

Everything you need to build CopilotKit agents

1

A2UI Catalog Preview

Live-preview A2UI catalog components from your workspace with hot-reload.
  • Inline validation: missing fields, unknown types, typo suggestions
  • Catches duplicate IDs and protocol ordering violations
catalog-preview.tsx
// Right-click any .tsx file to preview

import { WeatherCard } from "./components";

// Fixture: weather-sunny.json
{
  "temperature": 72,
  "condition": "sunny",
  "location": "San Francisco"
}

 Fixture valid — all fields match schema
 Hot-reload active — watching for changes
fixture-diagnostics
// Inline validation catches issues instantly

 Error line 3: Unknown field "temprature"
  ↳ Did you mean "temperature"?

 Error line 7: Missing required field
  Expected: "unit": "fahrenheit" | "celsius"

 Warning line 12: Duplicate ID
  "card-main" already used at line 4

3 diagnostics — 2 errors, 1 warning
2

Hook Explorer (Generative UI)

Finds all 28 CopilotKit hooks in your workspace (16 render, 12 data).
  • Preview generative UI in both in-progress and completed states — no agent loop needed
  • Clickable “Preview Component” CodeLens above every render-hook call-site
src/tools.tsx — CodeLens active
  7 |
     Preview Component  |  View Fixtures
  8 | useCopilotAction({
  9 |   name: "get_weather",
 10 |   description: "Fetch current weather",
 11 |   render: (props) => {
 12 |     return <WeatherCard {...props} />
 13 |   }
 14 | });
 15 |
     Preview Component
 16 | useCopilotAction({
 17 |   name: "search_docs",
preview — get_weather (in-progress)
// Rendered without running the agent loop

┌───────────────────────────────┐
 WeatherCard                   
                               
    Loading weather data...   
     ████████████████          
     ████████                  
                               
└───────────────────────────────┘

State: in-progress
Props: { location: "San Francisco" }
3

AG-UI Inspector

Taps the local runtime's /cpk-debug-events SSE endpoint for any AG-UI agent stream.
  • Color-coded event timeline with filtering by type, agent, run, or free-text
  • Collapsible JSON tree for payload drill-down
  • Auto-reconnect with backoff; sidebar or full editor panel
AG-UI Inspector — event timeline
Connected to localhost:4000/cpk-debug-events

12:04:01.123 ● RUN_STARTED        agent-1 run-a8f3
12:04:01.456 ● TEXT_MESSAGE_START agent-1 run-a8f3
12:04:01.789 ● TEXT_MESSAGE_CONTENT "I'll check the..."
12:04:02.012 ● TOOL_CALL_START    get_weather
12:04:02.345 ● TOOL_CALL_ARGS     {"location":"SF"}
12:04:03.678 ● TOOL_CALL_END      get_weather
12:04:03.901 ● STATE_DELTA        +weather_data
12:04:04.123 ● REASONING          "Formatting result"
12:04:04.456 ● RUN_FINISHED       agent-1 run-a8f3
payload drill-down
● TOOL_CALL_ARGS 12:04:02.345

 "arguments": {
    "location": "San Francisco",
    "unit": "fahrenheit"
  }
 "metadata": {
    "tool_call_id": "tc_9x8f2a",
    "agent_id": "agent-1",
    "run_id": "run-a8f3"
  }
 "timing": {...} 3 fields

Filter: event:TOOL_CALL* agent:agent-1

Why use CopilotKit for VSCode

Skip the Agent Loop

Iterate on generative UI without running the full agent loop. Preview render hooks instantly with fixture data — faster feedback, less waiting.

🔍

Real-Time Agent Debugging

See every AG-UI protocol event as it streams. Color-coded timeline, payload drill-down, and filtering by agent, run, or event type.

Inline Diagnostics

Fixture validation with schema-aware checks, Levenshtein typo suggestions, duplicate ID detection, and protocol ordering violations — all inline.

💻

Zero Context Switch

All three panels live in the VSCode activity bar. Preview, explore, and inspect without leaving your editor or switching windows.

🔄

V1 + V2 Coverage

Supports all 28 CopilotKit hooks across both V1 and V2 APIs. 16 render hooks, 12 data hooks, automatically discovered via fast AST scanning.

👁

CodeLens Integration

Clickable "Preview Component" lens appears above every render-hook call-site. One click to see the generative UI without any extra setup.

How it compares

The only VSCode extension purpose-built for previewing generative UI and inspecting AG-UI protocol streams.

Capability CopilotKit Extension Storybook MCP MS Foundry Toolkit Vercel AI SDK DevTools
Generative UI preview Built-in ✓ Via MCP Apps
Agent protocol inspector AG-UI native ✓ Agent Inspector
Component catalog A2UI built-in ✓ Design system
Agent workflow debugging Event streaming ✓ Breakpoints + viz ✓ LLM call tracing
Framework hook discovery 28 hooks + CodeLens ✓
Fixture validation Built-in ✓
Multi-model catalog 100+ models ✓
Free + Open Source MIT ✓ MIT ✓ Free (MS account) MIT ✓

Get started in seconds

Install from the marketplace, open a CopilotKit project, and start previewing.