⏱️ Time: ~20 minutes
Build new features using specialized agents: TDD agents for reliable code, and design agents for beautiful UI.
Custom agents with handoffs break complex workflows into smaller steps, keeping you in control for critical decisions.
Test-Driven Development means writing tests before writing code. You describe what the code should do, watch the tests fail (because the code doesn't exist yet), then write just enough code to make them pass. This gives you confidence that every line of code exists for a reason.
Each phase has its own agent:
| Phase | Agent | What it does |
|---|---|---|
| Red | TDD Red | Writes tests for the planned feature — they fail because nothing is implemented yet |
| Green | TDD Green | Writes the minimum code to make those failing tests pass — no extras |
| Refactor | TDD Refactor | Cleans up the code (readability, structure) while keeping all tests passing |
Important for this workshop: In Phase 1 below, you'll plan the feature but not implement it. This way, when TDD Red writes tests, they'll genuinely fail — which is the whole point.
A new Scavenger Hunt mode:
- Same questions as bingo
- Displayed as a simple checklist
- Progress meter at the top
- Click to mark items complete
- In the chat mode dropdown (bottom-left of the chat input), select Plan
- Enter:
Add a new Scavenger Hunt mode: same questions, but shown as a simple list with checkboxes and a progress meter - Iterate on the plan — check that it:
- ✅ Adds the mode to the start screen
- ✅ Creates a new component for the list view
- ✅ Includes a progress indicator
- ❌ Doesn't go overboard with features
- Once you're satisfied with the plan, do NOT click Start Implementation — we want the TDD agents to drive the implementation instead
- In the same session, open the chat mode dropdown (bottom-left of the chat input) and select the TDD Red agent — this hands off the conversation context (including your plan) to the new agent
- Enter:
Write failing tests for the scavenger hunt feature from the plan above - The agent will write tests for:
- Component rendering
- Checkbox interactions
- Progress calculation
- State management
- The tests should all fail since no implementation exists yet — check VS Code's Test Explorer to confirm
- Switch to the TDD Green agent using the chat mode dropdown
- Enter:
Make the failing tests pass with minimal implementation - Watch as it:
- Implements the minimum code to pass tests
- Runs tests after each change
- Iterates until all tests pass
- Switch to the TDD Refactor agent using the chat mode dropdown
- Let it clean up the code while keeping tests green
If something goes wrong:
- Use Chat Checkpoints to revert
- Reset to before "TDD Red" started
- Try again with adjusted prompts
💡 Bonus: Try TDD Supervisor for a fully automated TDD flow
✅ Result: A fully tested Scavenger Hunt feature built with disciplined TDD!
Use the Pixel Jam agent to focus on UI iteration while building new features.
A new Card Deck Shuffle mode:
- Player opens the game
- Taps to get a random card
- Card flips with animation
- Shows a question to discuss
- In the chat mode dropdown (bottom-left of the chat input), select Pixel Jam
- Enter:
New mode: Card Deck Shuffle. Every player opens the game, taps, and gets a random card with a question - Watch as it iterates on the UI
- Follow up to refine:
Add a cool 3D flip animation when revealing the cardMake the card styling match the cyberpunk theme - Commit when you're happy
- Focuses on visual design first
- Iterates on UI/UX before logic
- Uses the frontend design instructions
- Creates polished, animated interfaces
Combine MCP tools, custom workflows, and subagent isolation for powerful review capabilities.
- In the chat mode dropdown (bottom-left of the chat input), select UI Review
- Enter:
start - When prompted, click Allow for this Workspace for Playwright tool access
- Watch as it:
- Takes screenshots of each page
- Analyzes usability issues
- Checks accessibility
- Reviews visual consistency
| Category | Checks |
|---|---|
| Usability | Navigation flow, button clarity, feedback |
| Accessibility | Color contrast, keyboard nav, screen readers |
| Visual | Consistency, spacing, alignment |
| Interaction | Touch targets, hover states, animations |
After the review:
File the critical findings as GitHub issues
Fix the accessibility issues you found
Assign the navigation bug to a Copilot CLI session
✅ Result: A comprehensive UX review with actionable findings!
If you have time, try these:
| Challenge | Approach |
|---|---|
| Fix UX issues | Delegate to background or cloud agent |
| Multiple themes | Add theme picker to start screen |
| Social sharing | Add share button to win state |
| Leaderboard | Track and display high scores |
| Sound effects | Add audio feedback for interactions |
You've learned how to:
- Use TDD agents for test-driven development
- Build features with the Red-Green-Refactor cycle
- Use design-focused agents like Pixel Jam
- Run comprehensive UX reviews
- Combine multiple agents for complex workflows
Congratulations! You've completed the VS Code GitHub Copilot Agent Lab.
- ✅ A fully redesigned Social Bingo app
- ✅ Custom quiz themes
- ✅ Scavenger Hunt mode (TDD-built)
- ✅ Card Deck Shuffle mode (design-driven)
- Context Engineering — Teaching AI about your codebase
- Agentic Primitives — Background, cloud, and custom agents
- Design-First Development — UI iteration with AI assistance
- Test-Driven Development — Reliable code with TDD agents