-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: codu-code/agent-workshop
base: main
head repository: codu-code/agent-workshop
compare: workshop/chapter-03-multi-agent
- 10 commits
- 18 files changed
- 2 contributors
Commits on Nov 25, 2025
-
Chapter 0: Basic chat starting point (tool-free)
- Remove all AI tools (weather, create/update document, suggestions) - Remove all agent definitions (tutor, quiz master, planner, analyst) - Remove custom artifacts (flashcard, study-plan) - Simplify prompts to basic chat without tool routing - Keep UI components with placeholder types for rendering - Exclude tempfiles from TypeScript compilation
Configuration menu - View commit details
-
Copy full SHA for dcdd374 - Browse repository at this point
Copy the full SHA dcdd374View commit details -
Chapter 1: Add weather tool (first tool)
- Add lib/ai/tools/get-weather.ts with geocoding support - Update route.ts to import and use weather tool - Add stepCountIs for multi-step tool conversations - Add experimental_activeTools for reasoning model compatibility - Update types.ts to use InferUITool for weather tool
Configuration menu - View commit details
-
Copy full SHA for f990ce0 - Browse repository at this point
Copy the full SHA f990ce0View commit details -
Chapter 2: Add tutor agent (first agent)
- Add lib/ai/agents/ directory with types and index - Add tutor agent that explains concepts with examples - Update route.ts to import and register tutor agent - Update types.ts with tutor tool type inference
Configuration menu - View commit details
-
Copy full SHA for 6b85452 - Browse repository at this point
Copy the full SHA 6b85452View commit details -
Chapter 3: Add all agents (multi-agent orchestration)
- Add analyst, planner, quiz-master agents - Update route.ts to register all agents - Add placeholder artifact UI components for flashcard and study-plan - Update types with flashcardDelta and studyPlanDelta data types - Update Document.kind to include flashcard and study-plan
Configuration menu - View commit details
-
Copy full SHA for 2dac250 - Browse repository at this point
Copy the full SHA 2dac250View commit details
Commits on Nov 26, 2025
-
workshop: add Chapter 4 preview stubs (artifact server handlers)
- Add artifacts/flashcard/server.ts with schema and TODO for handler - Add artifacts/study-plan/server.ts with schema and TODO for handler - Type definitions ready for Chapter 4 implementation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 5402b01 - Browse repository at this point
Copy the full SHA 5402b01View commit details -
docs: update CHAPTER-1.md to match full weather implementation
- Show full geocodeCity implementation - Update route.ts example with stepCountIs, experimental_activeTools - Fix Weather component props to match API response - Update flow diagram to show city name lookup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 9117a8a - Browse repository at this point
Copy the full SHA 9117a8aView commit details -
docs: fix all chapter documentation to match actual code
- CHAPTER-0: Updated to show createUIMessageStream pattern, full useChat config with transport, correct systemPrompt signature - CHAPTER-2: Fixed agent types (UIMessageStreamWriter), gateway.languageModel pattern, tutor params (depth/context), route handler structure - CHAPTER-3: Rewrote quiz-master and planner to show artifact creation with dataStream.write(), correct models (artifact-model), DB save, error handling - CHAPTER-4: Fixed CustomUIDataTypes, added focusAreas param, artifact-model - CHAPTER-5: Added analyst.ts to file structure, fixed inputSchema usage, updated architecture diagrams, added analyst to orchestrator tools All code snippets are now copy-paste ready and match the actual implementation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for a0cca0e - Browse repository at this point
Copy the full SHA a0cca0eView commit details -
docs: fix CHAPTER-1 to show correct systemPrompt and route patterns
- Updated system prompt section to show updating regularPrompt constant - Updated route handler to show correct systemPrompt({ selectedChatModel, requestHints }) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>Configuration menu - View commit details
-
Copy full SHA for e7271ee - Browse repository at this point
Copy the full SHA e7271eeView commit details -
Add agentRoutingPrompt with all 4 agents
- Add agentRoutingPrompt with tutor, quizMaster, planner, analyst descriptions - Update systemPrompt to include routing for non-reasoning models - Include critical instructions about artifact creation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 93285a9 - Browse repository at this point
Copy the full SHA 93285a9View commit details -
Fix custom artifact cards not appearing after page refresh
Add handlers for tool-quizMaster and tool-planner in message.tsx so custom artifact cards render in the chat thread after page refresh. Also add preview content for flashcard and study-plan kinds in DocumentContent. The bug was that agent tools were not being rendered - only the built-in createDocument/updateDocument tools had rendering code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Configuration menu - View commit details
-
Copy full SHA for 2b32368 - Browse repository at this point
Copy the full SHA 2b32368View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...workshop/chapter-03-multi-agent