
Multi-agent patterns in VS Code you won't learn from docs | BRK201
Visual Studio Code
Overview
This video showcases a live coding competition where developers build a collaborative markdown editor using various AI-powered tools and patterns within VS Code. The competition highlights different approaches, from manual coding with AI assistance to fully agent-driven development. It explores the capabilities and limitations of current AI tools in software development, focusing on rapid prototyping, real-time collaboration, and the evolving landscape of AI in the coding workflow. The event culminates in a vote for the most impressive implementation, demonstrating the practical application of multi-agent patterns.
Save this permanently with flashcards, quizzes, and AI chat
Chapters
- The event is a live coding competition focused on multi-agent patterns in VS Code.
- This year's challenge is to build a cloud-based collaborative markdown editor, a real-world problem.
- Four contestants will build the editor using different tools: VS Code local agent, Copilot CLI, Copilot app, and Agent app.
- Kent C. Dodds and the host will build a voting app to allow the audience to vote on the best implementation.
- The voting app is being built in GitHub Codespaces for safety, allowing agents to run in an 'allow all' mode without risking local machine security.
- The development approach emphasizes iterative building and 'YOLO' mode with agents, starting with a simple homepage.
- The team plans to use vanilla HTML, CSS, and JavaScript for the voting app, avoiding complex frameworks for simplicity.
- The process involves a conversational approach with the agent, iterating on prompts to refine the output.
- Julia uses the VS Code local agent with GPT-5.5 and high reasoning, aiming for a one-shot build of the markdown editor.
- Chris uses the Copilot CLI, employing an orchestrator agent pattern with GPT-4.6 as the planner and Codex for implementation.
- Chris's approach involves multiple tabs and workspaces, typical for his development style.
- Harold begins by researching existing markdown editors and exploring design options with design agents.
- The host's team encounters issues with a QR code generator library, with the agent initially failing to load the correct CDN URL.
- They switch to using 'Unpackaged' as a service to resolve package URLs, but still face errors.
- This highlights the fragility of relying on external dependencies and the need for robust error handling or alternative strategies.
- The debugging process involves inspecting network requests and using browser developer tools.
- The host's team implements persistence by writing votes to a JSON file and plans to integrate WebSockets for real-time updates.
- The host uses a custom 'poster board' design aesthetic skill with Opus 4.6 to generate multiple design mocks, demonstrating a reusable design system approach.
- The concept of spawning multiple sub-agents to parallelize tasks, like generating design mocks, is explored.
- Contestants are encouraged to iterate on designs by generating multiple mocks and refining the best ones.
- Contestants present their completed or near-completed collaborative markdown editors.
- Julia showcases a minimalistic UI with split-screen editing, user renaming, emoji support, and edit tracking.
- Chris demonstrates a GitHub-themed editor with a sidebar, real-time updates, and background assessment using Playwright.
- Pierce integrates emojis and comments, facing API boot-up issues but delivering a serviceable product.
- Harold presents multiple prototypes, focusing on agent-driven editing, commenting, and activity logs, with a feature-rich implementation.
- The voting app is made public, allowing the audience to vote for their favorite implementation.
- Real-time updates of votes are observed, confirming the persistence and collaboration features are working.
- Harold is declared the winner, recognized for his feature-rich prototype and efficient development process.
- The event concludes with thanks to the contestants and recommendations for further learning on GitHub Copilot and agent development.
Key takeaways
- AI agents can significantly accelerate prototyping and development, especially for common tasks like building web interfaces.
- Multi-agent patterns, where different agents handle planning, execution, and specialized tasks, are powerful for complex development.
- Developing with AI requires a conversational and iterative approach, treating prompts as a dialogue to refine outcomes.
- Security is a crucial consideration when using AI agents; environments like GitHub Codespaces offer a safer way to run agents with broad permissions.
- While AI can generate code, debugging, dependency management, and integrating real-time features still require human oversight and expertise.
- Reusable design systems and custom 'skills' can be applied to AI agents to ensure consistent aesthetics and functionality across projects.
- The future of software development will likely involve closer collaboration between human developers and sophisticated AI agents.
Key terms
Test your understanding
- What are the primary differences in the approaches taken by the four contestants when building the collaborative markdown editor?
- How does using GitHub Codespaces enhance the safety and productivity when working with AI agents in 'allow all' mode?
- Describe a scenario where debugging AI-generated code proved challenging during the competition, and how was it addressed?
- What is the significance of 'multi-agent patterns' in the context of the collaborative markdown editor project?
- How can developers leverage custom design systems or 'skills' when working with AI agents to maintain a consistent project aesthetic?