Workshop Summary: GitHub Copilot Agents, Customization, and MCP
Workshop Summary: GitHub Copilot Agents, Customization, and MCP
Facilitators: Julia Muiruri, Bryan, Kelvin Mbuco, Agustin, Eldrick, Lilian Njuguna
Date/Time: Session covering agent workflows, UI updates, customization, and external tooling integration
Copilot Agent Workflows
- Specialized Agents:
- The workflow uses multiple specialized agents rather than a single agent handling all tasks.
- Example workflow:
- Incident/OCE Agent: Handles incident analysis, error summaries, network issues, logs, telemetry. Also coordinates workflow.
- Coding Agent: Takes over for code changes, PR creation, testing, deployment preparation.
- CICD: Automated deployment is separate; not an agent per se.
- Delegation Philosophy:
- Assign specific tasks to specialized agents to simplify workflow and ensure clarity.
- Humans still handle managerial/strategic tasks while AI handles repeatable, well-defined actions.
- Practical Demonstration:
- Adding a delete button to a recipe app using Copilot Agent Mode.
- Agents can analyze code, create actionable to-dos, implement changes, and run terminal commands (requires user approval).
- Features like hidden terminal and checkpoint restore provide safety and visibility into agent actions.
Interaction with UI Elements
- Element Selection Feature:
- Users can select UI components directly in the app.
- Copilot Agent receives context about selected elements for implementing functionality (e.g., adding functionality to cards or updating recipe elements).
- This avoids long or ambiguous prompts.
- Best Practices in Prompting:
- Follow the 3S Rule: Short, Simple, Specific prompts.
- Step-by-step instructions preferred over large, single-step prompts for better control.
Customization and Context
- Custom Instructions:
- Generic Instructions: Applied to the entire project; defines overall coding style, company conventions, libraries to use.
- File-Specific Instructions: Applied to specific file types or folders (e.g., .CSS files in a public directory).
- Generated Instructions: Copilot can analyze an existing codebase and create instructions based on existing standards.
- Best Practices:
- Clean up your codebase before onboarding Copilot to ensure best practices are propagated.
- Leverage community-curated instruction sets from repositories such as Awesome Copilot Instructions for various languages and frameworks.
MCP (Model Context Protocol)
- Purpose:
- Extends Copilot’s capabilities by giving agents access to external tooling, data, and services.
- Example: Analyzing logs in Kusto or performing GitHub actions.
- How It Works:
- MCP servers define available tools and actions.
- Copilot can invoke these tools for tasks (e.g., GitHub fork creation, fetching documentation).
- Provides more accurate, contextual, and real-time information compared to relying solely on training data.
- Practical Example:
- Using GitHub MCP server to create a fork.
- Using Microsoft Docs MCP server to generate a 4-week learning plan based on official modules.
- Security Considerations:
- Tool poisoning and hidden malicious instructions are active concerns.
- Use vetted MCP servers from the official MCP registry as a first layer of protection.
- Ongoing discussions in VS Code community and Discord office hours for advanced threat mitigation.
Key Features Demonstrated
Feature | Purpose |
Agent Mode | Allows Copilot to autonomously implement features while showing actionable steps and logs |
Hidden Terminal | Displays commands run by the agent for transparency |
Restore Checkpoint | Undo unwanted changes to the codebase |
Element Context Selection | Directly attach agent prompts to UI elements |
Custom Instructions | Tailor Copilot suggestions to company or project-specific coding standards |
MCP Servers | Extend agent capabilities to external services or APIs |
Participant Assignments / Challenges
- Complete Section 3: Add functionality to app cards (bonus: change UI creatively).
- Test Copilot Agent Mode by adding delete functionality for recipes.
- Explore Section 4: Custom Instructions and MCP setup.
Takeaways
- Specialized agents + clear delegation improve efficiency.
- Step-by-step, explicit prompts help Copilot stay on track.
- Custom instructions ensure Copilot aligns with project standards.
- MCP enables safe integration with external tools for more advanced automation.
- Security awareness is critical when using MCP servers; stick to vetted sources.
Important Links
Anthropic: Effective Context Engineering for AI Agents
VSCode: Custom Instructions
VSCode: Custom Agents
Code Samples on Github: Samples
Download Presentation: Click Here
Contact Details
candidates@snapp.co.ke
bryan@snapp.co.ke
Snapp-Technology-Kenya
Important Links
Register for Founders Hub:
https://portal.startups.microsoft.com/signup
Quickstart: Create a new agent:
https://learn.microsoft.com/en-us/azure/ai-foundry/agents/quickstart?view=foundry-classic&pivots=ai-foundry-portal
Important Links
Link to today’s workshop:
https://aka.ms/vscodeDevWorkshop
Learning GitHub Copilot series:
https://aka.ms/Learn-GHCP
MS Dev Community Africa: https://www.meetup.com/microsoft-africa-development-center/
Github Features:
https://github.com/features/copilot
Learning GitHub Copilot series:
https://aka.ms/Learn-GHCP
MS Dev Community Africa: https://www.meetup.com/microsoft-africa-development-center/
Important Links
Elevate AI Skills Badge Request: https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Faka.ms%2FAISkillsBadgeKenya&d…
