Skip to content

Commit 44dcc6e

Browse files
authored
Merge pull request #49619 from MicrosoftDocs/NEW-github-copilot-agent-mode
New module: GitHub Copilot agent mode
2 parents 2cf393a + 0317f41 commit 44dcc6e

15 files changed

+440
-7
lines changed

learn-pr/achievements/learn.wwl.manage-analytics-development-lifecycle.trophy.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.introduction
3+
title: Introduction
4+
metadata:
5+
title: Introduction
6+
description: GitHub Copilot Agent Mode is an AI-powered coding assistant that autonomously manages complex, multi-step tasks within your codebase.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 1
14+
content: |
15+
[!include[](includes/1-introduction.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.what-is-agent-mode
3+
title: What is GitHub Copilot Agent Mode?
4+
metadata:
5+
title: What is GitHub Copilot Agent Mode?
6+
description: GitHub Copilot Agent Mode is an advanced, autonomous AI coding assistant that dynamically analyzes entire projects, autonomously manages complex multi-step tasks, iteratively improves its output, and serves as a proactive collaborator in software development.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/2-what-is-agent-mode.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.explore-the-power
3+
title: Explore the power of autonomous development assistance
4+
metadata:
5+
title: Explore the power of autonomous development assistance
6+
description: GitHub Copilot Agent Mode is an autonomous AI coding assistant that dynamically analyzes entire projects, manages complex coding tasks, iteratively improves solutions, and collaboratively streamlines software development workflows.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 5
14+
content: |
15+
[!include[](includes/3-explore-the-power.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.exercise
3+
title: GitHub skills exercise
4+
metadata:
5+
title: GitHub skills exercise
6+
description: Apply your knowledge with a hands-on GitHub Skills exercise.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/4-exercise.md)]
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: Evaluate your understanding of GitHub Copilot Agent Mode.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 5
14+
content: |
15+
quiz:
16+
title: Check your knowledge
17+
questions:
18+
- content: "In what key way does GitHub Copilot Agent Mode differ from traditional AI-assisted coding tools?"
19+
choices:
20+
- content: "It exclusively relies on user-provided step-by-step instructions to generate code."
21+
isCorrect: false
22+
explanation: "Incorrect. Agent Mode autonomously analyzes and executes complex tasks without needing explicit step-by-step instructions."
23+
- content: "It dynamically analyzes entire projects, autonomously performs multi-step tasks, and iteratively refines its outputs."
24+
isCorrect: true
25+
explanation: "Correct. GitHub Copilot Agent Mode goes beyond traditional assistants by autonomously managing comprehensive tasks and continuously improving its own solutions."
26+
- content: "It primarily suggests code snippets based on the immediate context of a single open file."
27+
isCorrect: false
28+
explanation: "Incorrect. Agent Mode analyzes the broader context of the entire workspace, not just single-file context."
29+
- content: "It provides real-time inline suggestions but cannot autonomously refactor or execute code."
30+
isCorrect: false
31+
explanation: "Incorrect. Agent Mode can autonomously refactor and execute code across multiple files."
32+
33+
- content: "Which approach describes how GitHub Copilot Agent Mode iteratively improves its generated solutions?"
34+
choices:
35+
- content: "It suggests initial solutions, then requires manual developer intervention to run tests and debug."
36+
isCorrect: false
37+
explanation: "Incorrect. Agent Mode autonomously runs tests, identifies issues, and iterates without requiring manual debugging."
38+
- content: "It automatically identifies issues through testing, autonomously corrects errors, and repeats the cycle to refine the solution."
39+
isCorrect: true
40+
explanation: "Correct. Agent Mode employs an iterative, autonomous process to diagnose and correct errors, continuously improving its solutions."
41+
- content: "It only generates code once per task and relies on manual review to make improvements."
42+
isCorrect: false
43+
explanation: "Incorrect. Agent Mode autonomously iterates multiple times to refine and improve the code solutions."
44+
- content: "It delegates all code improvements entirely to external testing frameworks and does not autonomously address failures."
45+
isCorrect: false
46+
explanation: "Incorrect. Agent Mode internally diagnoses test failures and autonomously corrects issues without relying solely on external frameworks."
47+
48+
- content: "You instruct GitHub Copilot Agent Mode to migrate a legacy JavaScript application to a modern framework. What actions would Agent Mode likely perform autonomously?"
49+
choices:
50+
- content: "Provide inline code completions only for individual files without modifying dependencies or project structure."
51+
isCorrect: false
52+
explanation: "Incorrect. Agent Mode would autonomously modify dependencies, project structure, and files as needed for migration."
53+
- content: "Identify relevant files, update dependencies, refactor existing code across multiple files, and iteratively verify changes by running tests."
54+
isCorrect: true
55+
explanation: "Correct. Agent Mode autonomously handles comprehensive migration tasks, including dependencies, refactoring, and testing."
56+
- content: "Generate new documentation explaining why the migration should occur, but leave the actual code implementation to the developer."
57+
isCorrect: false
58+
explanation: "Incorrect. Agent Mode actively performs code refactoring and migration tasks rather than focusing solely on documentation."
59+
- content: "Prompt the developer for manual inputs at each step of code modification without autonomously running any tests."
60+
isCorrect: false
61+
explanation: "Incorrect. Agent Mode autonomously manages tasks without requiring frequent manual inputs, including running tests to validate code."
62+
63+
- content: "What is the role of project documentation files (such as README.md) when working with GitHub Copilot Agent Mode?"
64+
choices:
65+
- content: "They serve exclusively as reference documents for developers and have no influence on Agent Mode's behavior."
66+
isCorrect: false
67+
explanation: "Incorrect. Documentation files can guide Agent Mode’s behavior by providing context and instructions for tasks."
68+
- content: "They help Agent Mode understand the project's intended behavior, influencing how it autonomously executes tasks."
69+
isCorrect: true
70+
explanation: "Correct. Documentation files provide context and guidance that Agent Mode can leverage to perform tasks more accurately."
71+
- content: "They restrict Agent Mode's access to code files, preventing unwanted modifications."
72+
isCorrect: false
73+
explanation: "Incorrect. Documentation does not restrict file access, but it can help direct Agent Mode’s autonomous operations."
74+
- content: "Agent Mode completely ignores documentation files and relies solely on the file structure and source code."
75+
isCorrect: false
76+
explanation: "Incorrect. Agent Mode leverages documentation files to better understand tasks and execute actions appropriately."
77+
78+
- content: "What is an important limitation developers should consider when using GitHub Copilot Agent Mode?"
79+
choices:
80+
- content: "It requires manual configuration after every code generation to be effective."
81+
isCorrect: false
82+
explanation: "Incorrect. Agent Mode autonomously handles configurations based on existing project context."
83+
- content: "It may struggle with highly specialized domain knowledge or nuanced business logic that lacks clear patterns."
84+
isCorrect: true
85+
explanation: "Correct. Agent Mode performs best with clear patterns and complete context and may struggle when domain-specific logic is unclear or undocumented."
86+
- content: "It only supports generating code snippets and cannot autonomously refactor or run tests."
87+
isCorrect: false
88+
explanation: "Incorrect. Agent Mode fully supports autonomous refactoring, test creation, and execution."
89+
- content: "It cannot analyze project structure and dependencies, relying solely on explicit developer-provided context."
90+
isCorrect: false
91+
explanation: "Incorrect. Agent Mode autonomously analyzes project structure and dependencies to perform tasks effectively."
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.github.github-copilot-agent-mode.summary
3+
title: Summary
4+
metadata:
5+
title: Summary
6+
description: Summary of the module.
7+
author: a-a-ron
8+
ms.author: aastewar
9+
ms.date: 03/17/2025
10+
ms.topic: unit
11+
ms.collection:
12+
- ce-skilling-ai-copilot
13+
durationInMinutes: 3
14+
content: |
15+
[!include[](includes/6-summary.md)]
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
In this module, you learn how to build an application using GitHub Copilot Agent Mode within a GitHub Codespace and the VS Code IDE. You explore how to effectively prompt Agent Mode to autonomously create new applications, use documentation files to clearly guide its behavior, and harness its powerful iteration capabilities. Specifically, you see firsthand how Copilot Agent Mode intelligently interacts with your code base to detect and fix errors, refactor existing code for better maintainability, and autonomously develop new features that allow you to focus more on innovation and less on repetitive coding tasks.
2+
3+
## Learning objectives
4+
5+
By the end of this module, you are able to:
6+
7+
- Understand how to develop with VS Code IDE in a GitHub Codespace
8+
- Prompt GitHub Copilot agent mode to create an application
9+
- Use documentation files to instruct GitHub Copilot agent mode
10+
- Understand how GitHub Copilot agent mode iterates over a code base to:
11+
- Fix errors
12+
- Refactor code
13+
- Develop new features
14+
15+
## Prerequisites
16+
17+
- A GitHub account and a fundamental understanding of GitHub Copilot
18+
- Include any concepts or skills that will help learners succeed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
:::image type="content" source="../media/agent-mode.png" alt-text="Screenshot of the GitHub Copilot icon with the words agent mode at the top." border="false":::
2+
3+
GitHub Copilot Agent Mode represents a major advancement in AI-assisted software development. Unlike traditional coding assistants that provide simple autocomplete-style suggestions, Agent Mode functions as an autonomous peer programmer that helps developers accomplish more with less effort. It doesn’t just suggest code, it understands your entire workspace, processes tasks dynamically, and iterates on its own output to improve solutions.
4+
5+
With Agent Mode, GitHub Copilot can create applications from scratch, refactor code across multiple files, write and run tests, and migrate legacy code to modern frameworks. It can also generate documentation, integrate new libraries, and answer complex questions about a codebase. This allows you to focus on higher-level problem-solving while Copilot handles many of the repetitive or time-consuming aspects of software development.
6+
7+
## How GitHub Copilot agent mode works
8+
9+
One of the most powerful aspects of Agent Mode is its ability to analyze an entire codebase and determine relevant files and dependencies before making changes. Instead of relying solely on the immediate context of a single file, Agent Mode evaluates the broader structure of a project, ensuring that modifications are consistent and align with best practices. This deeper level of understanding makes Copilot capable of assisting with tasks that require a project-wide perspective, such as refactoring across multiple files or updating an entire application to use a new framework.
10+
11+
Unlike traditional AI-powered code completion, which provides static suggestions, Agent Mode works dynamically by processing requests in iterative cycles. When given a task, it:
12+
13+
- Determines the relevant files and dependencies before making edits.
14+
- Suggests and executes code changes while ensuring they align with the project structure.
15+
- Runs terminal commands as needed, such as compiling code, installing dependencies, and running tests.
16+
- Monitors and refines its output, iterating multiple times to remediate issues and improve accuracy.
17+
18+
This iterative process enables Copilot to function as a truly collaborative AI, continuously improving its own suggestions while keeping the developer in full control.
19+
20+
## Interact with GitHub Copilot
21+
22+
GitHub Copilot offers multiple ways to assist you in your development workflow, each designed to support different levels of engagement and automation.
23+
24+
- **Inline Suggestions** function similarly to traditional autocomplete tools but with more advanced capabilities, offering real-time code completions as you type.
25+
26+
- **Copilot Chat** provides a dedicated chat panel where you can ask coding-related questions, and unlike generic AI chat assistants, it tailors responses based on the context of your project files and dependencies.
27+
28+
- If you need broader, more structured modifications, **Copilot Edits** allows you to apply changes across multiple files to align with specific goals, making it easier to implement large-scale updates efficiently.
29+
30+
- Lastly, **Agent Mode** takes automation to the next level by orchestrating development tasks dynamically—it not only refines its own outputs but also iterates multiple times to improve accuracy, making it a powerful AI collaborator that can handle complex workflows. Understanding how to leverage these different modes effectively can help you integrate Copilot seamlessly into your development process.
31+
32+
## Benefits of Agent Mode
33+
34+
By integrating GitHub Copilot Agent Mode into development workflows, developers can significantly increase productivity while maintaining full control over their projects. Since Copilot handles many of the tedious aspects of coding—such as repetitive edits, dependency management, and testing—it reduces cognitive load and allows developers to focus on higher-level design and problem-solving. Additionally, because Agent Mode iterates on its own outputs, it helps ensure code quality by catching errors and refining solutions before they require manual review.
35+
36+
Ultimately, GitHub Copilot Agent Mode acts as more than just an AI assistant—it serves as an intelligent, proactive collaborator that adapts to a developer’s workflow and enhances their ability to build, maintain, and optimize software efficiently.

0 commit comments

Comments
 (0)