· Early access

Get early access
Copilot Kit Logo
Introducing the AG-UI Dojo: A Learning Tool to Help You Ship Faster
By Nathan Tarbert and Eli Berman
September 10, 2025

Introducing the AG-UI Dojo: A Learning Tool to Help You Ship Faster

Building AI agent frontends? You've probably hit the usual roadblocks: streaming updates that break, state bugs that make no sense, and tool calls that require way too much setup.

The AG-UI Dojo fixes that problem. It's a collection of working examples you can actually visualize and use.

What Makes Up the Dojo?

We built this with three parts:

  • Preview: Run the demo. See how it actually behaves.
  • Code: Check out the implementation. No hunting through repos.
  • Docs: Official specs and guides, right next to the code.

You can visualize it, understand it, and then use it. Our goal was to make it simple for developers who just want to see something working fast.

What the Demos Cover

Six core features, in its own "hello world" style examples:

  • Agentic Chat: Streaming chat with tool hooks built in
  • Human-in-the-Loop: Agent planning that waits for user input
  • Agentic Generative UI: Long tasks with UI that updates as you go
  • Tool-Based Generative UI: A haiku generator that renders images nicely in the chat
  • Shared State: Agent and UI stay perfectly synced
  • Predictive State Updates: Real-time collaboration with the agent

Each demo shows one building block. Put them together, and you get real agent apps.

A Learning Tool

The Dojo works as both a learning tool and a debugging resource. Our documentation calls it "learning-first" - you walk through each capability and see the code that makes it work.

It's also your implementation checklist for building new integrations. Run through the demos, and you'll know your AG-UI setup handles everything properly.

Common problems: event ordering, payload issues, and state sync bugs.

You can troubleshoot all of that here before you ship.

Faster Development

Three things:

  1. Faster learning - see the code working, not just sitting in documentation
  2. Less complexity - bite-sized demos instead of overwhelming examples
  3. Better debugging - validate your setup before production

Getting Started

Try the Dojo. Click through the previews, check the code tabs, and read the docs.

Use it when you're building your own agent UIs. These demos work as reference implementations and testing grounds for your integration. Check out the Dojo source code here.

We’d love to know how this tool has helped your team. Reach out to book a meeting; we take your feedback seriously.

Want to learn more?

Happy Building!

Top posts

See All
Switching to Fable 5: The Tuesday That Cost $22,000
Jordan Ritter June 12, 2026
Switching to Fable 5: The Tuesday That Cost $22,000CopilotKit swapped their coding agents to a new model (fable-5) on a Tuesday, and by Wednesday had run up a ~$22,000 Anthropic bill. No bug or runaway script caused it — five engineers doing normal work triggered it, because the new model interpreted their English-prose behavioral rules ("keep sub-agents small," "converge to zero") far more loosely than older models did. The result was four simultaneous drift modes: bloated sub-agents, runaway review loops, exploding fanout, and oversized single turns. What kept it from being far worse was their "skills" system — small, named instruction packs that agents auto-load to encode team conventions. Their instrumentation caught the runaway in 12 hours instead of 12 days, isolated worktrees contained the blast radius, and the fix lived at the rules layer (swapping vague adjectives for hard numeric budgets and machine-checkable gates) rather than in application code. The takeaway: if you let AI agents do real work, you need a guardrails layer that encodes desired behavior separately from the agents — small, composable, and faster to change than a model. Because models will change, and the team with a rules layer pays $22K and writes a blog post; the team without one pays more and writes a press release.
Build AI Agents That Live Inside Your App — CopilotKit Explained
Nathan Tarbert June 12, 2026
Build AI Agents That Live Inside Your App — CopilotKit ExplainedCopilotKit is a complete set of building blocks for developers and teams who want to add agents to their app and assemble, debug, and ship the interface layer between their agents and users. It's also framework-agnostic and supports any LLM and every popular agent framework. There are two options for chat. Pre-built components, if you want something already built or Headless UI, which allows anyone to build custom agent interfaces.
CopilotKit - The Complete Frontend Stack for AI Agents
Anmol Baranwal and Nathan TarbertMay 20, 2026
CopilotKit - The Complete Frontend Stack for AI AgentsCopilotkit is the open source frontend stack for AI agents. Learn about architecture, chat components, hooks, generative UI, persistent memory, debugging tools, and 13+ agent framework integrations for building Agentic UIs.
Are you ready?

Stay in the know

Subscribe to our blog and get updates on CopilotKit in your inbox.