Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: codu-code/agent-workshop
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: codu-code/agent-workshop
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: workshop/chapter-03-multi-agent
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 10 commits
  • 18 files changed
  • 2 contributors

Commits on Nov 25, 2025

  1. 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
    NiallJoeMaher committed Nov 25, 2025
    Configuration menu
    Copy the full SHA
    dcdd374 View commit details
    Browse the repository at this point in the history
  2. 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
    NiallJoeMaher committed Nov 25, 2025
    Configuration menu
    Copy the full SHA
    f990ce0 View commit details
    Browse the repository at this point in the history
  3. 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
    NiallJoeMaher committed Nov 25, 2025
    Configuration menu
    Copy the full SHA
    6b85452 View commit details
    Browse the repository at this point in the history
  4. 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
    NiallJoeMaher committed Nov 25, 2025
    Configuration menu
    Copy the full SHA
    2dac250 View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2025

  1. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    5402b01 View commit details
    Browse the repository at this point in the history
  2. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    9117a8a View commit details
    Browse the repository at this point in the history
  3. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    a0cca0e View commit details
    Browse the repository at this point in the history
  4. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    e7271ee View commit details
    Browse the repository at this point in the history
  5. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    93285a9 View commit details
    Browse the repository at this point in the history
  6. 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>
    NiallJoeMaher and claude committed Nov 26, 2025
    Configuration menu
    Copy the full SHA
    2b32368 View commit details
    Browse the repository at this point in the history
Loading