Agent Gurukula

A gurukula for AI agents: a living curriculum of agentic techniques — every lesson has docs, runnable code, tests and a live demo here.

Source on GitHub →

Try it live

02 · Structured output — chat message → validated event JSON
03 · Agent loop — tools, retries, approval gate (side effects disabled)
04 · MCP server — add as a custom connector in Claude:

Curriculum

live01Tool callingThe raw protocol: tool_use → tool_result
live02Type-safe structured outputZod → JSON Schema → validate → repair
live03Agent loop & harnessLoop, parallel tools, errors, HITL approval
live04MCP serverTools, resources, prompts on a Worker
live05EvalsGolden sets, trajectory scoring, LLM judge, CI gate
next06Streaming chat UISSE, AI SDK useChat, Cloudflare AIChatAgent
next07AG-UI protocolEvent stream between agent backend and frontend
next08MCP AppsTools that return interactive UI (ui:// resources)
planned09Generative UI & A2UIDeclarative UI payloads the client renders
planned10A2AAgent cards, tasks, agent-to-agent delegation
planned11Context engineeringPrompts, compaction, caching, skills
planned12Memory & RAGVectorize, hybrid search, long-term memory
planned13Multi-agent patternsRouter, orchestrator-workers, sub-agents
planned14Durable agentsDurable Objects, Workflows, schedules
planned15ObservabilityOpenTelemetry GenAI traces, AI Gateway
planned16SecurityPrompt injection, least privilege, MCP OAuth
planned17Code modeAgents that write code against typed APIs
planned18Browser & computer useAgents that drive real UIs
planned19Voice & realtime agentsSpeech in/out, interruption handling
planned20Agent commerceAP2, UCP, x402 payments