Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: remove MCP skills chapter from notebook
Drops the MCP Skills chapter and removes MCP references from the
introduction and full flow chapters. Notebook now covers 3 core
systems: Widget Renderer, CopilotKit, and Deep Agent.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
  • Loading branch information
GeneralJerel and claude committed Apr 7, 2026
commit 57f889410d2cbecd589b5a5531d277c3d21ab017
30 changes: 10 additions & 20 deletions apps/notebook/src/content/chapters/01-introduction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ export const introduction: Chapter = {

OpenGenerativeUI is an open-source template showing how an AI agent can **generate rich, interactive UI** — not just text — using [CopilotKit](https://copilotkit.ai) and [LangGraph](https://langchain-ai.github.io/langgraph/).

The agent produces charts, 3D scenes, SVG diagrams, and interactive widgets that render directly in the chat stream. Users and the agent share the same application state, and the agent is guided by composable **skill documents** that define visual quality standards.`,
The agent produces charts, 3D scenes, SVG diagrams, and interactive widgets that render directly in the chat stream. Users and the agent share the same application state.`,
},
{
type: "markdown",
id: "intro-arch",
content: `## Architecture

Four systems work together:
Three systems work together:

| Layer | Tech | Role |
|-------|------|------|
| **Widget Renderer** | Sandboxed iframe, Idiomorph | Renders agent-generated HTML/SVG/3D in the browser |
| **CopilotKit** | React hooks, runtime API | Bridges the React frontend to the agent backend |
| **Deep Agent** | LangGraph, \`create_deep_agent\` | Orchestrates tools, manages state, follows a mandatory visualization workflow |
| **MCP Skills** | MCP server, \`.txt\` playbooks | Provides composable design system rules and rendering instructions |`,
| **Deep Agent** | LangGraph, \`create_deep_agent\` | Orchestrates tools, manages state, follows a mandatory visualization workflow |`,
},
{
type: "code",
Expand All @@ -44,22 +43,13 @@ Four systems work together:
│ │ └── use-generative-ui-examples.tsx # CopilotKit hook registrations
│ └── app/
│ └── api/copilotkit/route.ts # CopilotKit runtime (connects to agent)
├── agent/ # LangGraph Python agent
│ ├── main.py # create_deep_agent + system prompt
│ ├── skills/ # Agent skill documents (loaded at runtime)
│ └── src/
│ ├── todos.py # AgentState schema + todo tools
│ ├── plan.py # Mandatory plan_visualization tool
│ ├── query.py # Data query tool
│ └── bounded_memory_saver.py # FIFO thread eviction
└── mcp/ # MCP design system server
├── src/
│ ├── server.ts # Resources, prompts, tools
│ └── renderer.ts # Theme CSS + bridge JS assembly
└── skills/ # Playbook .txt files
├── master-agent-playbook.txt
├── svg-diagram-skill.txt
└── agent-skills-vol2.txt`,
└── agent/ # LangGraph Python agent
├── main.py # create_deep_agent + system prompt
└── src/
├── todos.py # AgentState schema + todo tools
├── plan.py # Mandatory plan_visualization tool
├── query.py # Data query tool
└── bounded_memory_saver.py # FIFO thread eviction`,
},
{
type: "markdown",
Expand Down
5 changes: 2 additions & 3 deletions apps/notebook/src/content/chapters/06-widget-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const fullFlow: Chapter = {
id: "flow-overview",
content: `# Putting It Together

Now let's trace the **complete flow** in one working demo. Type a message, and watch it flow through all four layers — ending with a real rendered widget in an iframe.`,
Now let's trace the **complete flow** in one working demo. Pick a prompt, and watch it flow through all three layers — ending with a real rendered widget in an iframe.`,
},
{
type: "playground",
Expand Down Expand Up @@ -246,8 +246,7 @@ To add your own domain:
1. **Define state** — Add fields to \`AgentState\` in Python
2. **Create tools** — Return \`Command(update={...})\` to modify state
3. **Register components** — Use \`useComponent()\` for agent-renderable UI
4. **Write skills** — Add \`.txt\` playbooks for visual quality
5. **Configure the system prompt** — Define your mandatory workflow
4. **Configure the system prompt** — Define your mandatory workflow

The todo list is the starting point — replace it with your domain while keeping the same CopilotKit v2 state pattern.`,
},
Expand Down
2 changes: 0 additions & 2 deletions apps/notebook/src/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { introduction } from "./chapters/01-introduction";
import { widgetRenderer } from "./chapters/02-agent-state";
import { copilotKitIntegration } from "./chapters/03-generative-ui";
import { deepAgent } from "./chapters/04-copilotkit-hooks";
import { mcpSkills } from "./chapters/05-frontend-tools";
import { fullFlow } from "./chapters/06-widget-renderer";
import type { Chapter } from "@/lib/types";

Expand All @@ -11,6 +10,5 @@ export const chapters: Chapter[] = [
widgetRenderer,
copilotKitIntegration,
deepAgent,
mcpSkills,
fullFlow,
];
Loading