CopilotKit

patterns05 patterns · 01 scorecard

Five patterns for agent-native apps.

New here? CopilotKit is the open-source frontend stack for AI agents: bring any agent, connect it to any user, inside your product. Each pattern below is a live demo, the code, and the guide.

37,000+ stars on GitHub Open source Creators of AG-UI, the open protocol that connects agents to user interfaces
app/page.tsx
import { useComponent }
  from "@copilotkit/react-core/v2";

useComponent({
  name: "show_weather",
  parameters: weatherSchema,  // zod
  render: WeatherCard,         // React
});
you write this
the agent renders this
any agent
Microsoft Agent FrameworkAWS StrandsGoogle ADKLangChain / LangGraphCrewAIAgnoClaude Agents SDKOpenAI Agents SDKMastraPydantic AILlamaIndexAG2
any user
iOSAndroidWebSMSiMessageTelegramWhatsAppSlackDiscordGoogle ChatMicrosoft Teams

One surface. Agent and user, same state.

The agent reads and writes the same canvas your users work on.

Generative UI: components, not paragraphs.

Agents render real components from tool calls — whatever the moment needs.

Multi-agent flows that stay coherent.

Specialized sub-agents behind one UI — handoffs, interrupts, shared state.

One agent. Every channel.

Ship the agent you already built to Slack, Teams, and beyond.

Copilots that act — with approval.

The agent proposes, your user approves. Guardrails and an audit trail by default.

Production readiness, scored.

Fourteen questions, five bottlenecks, one thing to fix first.