Explore Agentic Development - Join a GitHub Copilot Dev Day near you!
Dismiss this update
GitHub Copilot brings AI agents to Visual Studio Code. Describe what you want to build, and an agent plans the approach, writes the code, and verifies the result across your entire project. Choose from Copilot's built-in agents, third-party agents from providers like Anthropic and OpenAI, or your own custom agents, and run them locally, in the background, or in the cloud. For more targeted changes, inline suggestions and chat give you precise control directly in the editor.
An agent is an AI assistant that works autonomously to complete a coding task. Unlike traditional code completion, which suggests the next few lines, an agent takes a goal, breaks it into steps, edits files across your project, runs commands, and self-corrects when something goes wrong.
Give an agent a high-level description of what you want to build and it gets to work. Each task runs inside an agent session, a persistent conversation you can track, pause, resume, or hand off to another agent.
Your organization might have disabled agents in VS Code. Contact your admin to enable this functionality.
Use the built-in Plan agent to break a task into a structured implementation plan before writing any code. The Plan agent analyzes your codebase, asks clarifying questions, and produces a step-by-step plan. When the plan looks right, hand it off to an implementation agent to execute it, locally, in the background, or in the cloud.
Learn more about planning with agents.
Agents run where the work needs to happen. Run them locally in VS Code for interactive work, in the background for autonomous tasks, or in the cloud for team collaboration through pull requests. You can also use third-party agents from providers like Anthropic and OpenAI. At any point, hand off a task from one agent type to another and the relevant context carries over.

Learn more about agent types and delegation or follow the agents tutorial.
Run multiple agent sessions in parallel, each focused on a different task. The Sessions view in the Chat panel gives you a single place to monitor all active sessions, whether they run locally, in the background, or in the cloud. See the status of each session, switch between them, review file changes, and pick up where you left off.
Learn more about managing agent sessions.
Agents handle coding tasks end-to-end, from a single file change to a full feature shipped as a pull request.
Build a feature end-to-end. Describe a feature in natural language and the agent scaffolds the project, implements the logic across multiple files, and runs tests to verify the result.
Debug and fix failing tests. Point an agent at a failing test and it reads the error, traces the root cause across your codebase, applies a fix, and re-runs the test to confirm. Learn more about debugging with AI.
Refactor or migrate a codebase. Ask an agent to plan a migration, for example, from one framework to another, and it applies coordinated changes across files while verifying with builds.
Test and interact with web apps. (Experimental) Ask an agent to open your web app in the integrated browser, verify a feature works, check for layout issues, or take screenshots. Follow the browser agent testing guide.
Collaborate via pull requests. Delegate a task to a cloud agent that creates a branch, implements the changes, and opens a pull request for your team to review. Learn more about cloud agents.
Hover over the Copilot icon in the Status Bar and select Set up Copilot.

Choose a sign-in method and follow the prompts. If you don't have a Copilot subscription yet, you are signed up for the Copilot Free plan.
Open the Chat view (⌃⌘I (Windows, Linux Ctrl+Alt+I)).
Enter a prompt that describes what you want to build, for example:
Create a basic Node.js web app for sharing recipes. Make it look modern and responsive.
Review the generated code. The agent creates files, installs dependencies, and runs commands as needed.
Enter /init to configure your project for AI. This creates custom instructions that help the agent understand your codebase and generate better code.
For a full hands-on tutorial covering inline suggestions, agents, inline chat, and customization, see Get started with GitHub Copilot in VS Code.
For smaller changes or when you want more precise control, Copilot assists directly in the editor.
Copilot provides code suggestions as you type, from single-line completions to full function implementations. Next edit suggestions predict the next logical change based on your current edits.
Learn more about inline suggestions in VS Code.
Press ⌘I (Windows, Linux Ctrl+I) to open a chat prompt directly in the editor. Describe a change, and Copilot suggests edits in place, so you stay in the flow of coding. Use it for targeted refactors, explanations, or quick fixes without switching context.
Learn more about inline chat in VS Code.
VS Code includes predefined AI-powered actions for common tasks: generating commit messages, renaming symbols, fixing errors, and running semantic search across your project.

Learn more about smart actions in VS Code.
Agents work best when they understand your project's conventions, have the right tools, and use a model suited to the task. VS Code gives you several ways to tailor the AI so it produces code that fits your codebase from the start, instead of requiring manual corrections after the fact.
Support for GitHub Copilot Chat is provided by GitHub and can be reached at https://support.github.com.
To learn more about Copilot's security, privacy, compliance, and transparency, see the GitHub Copilot Trust Center FAQ.
You can start using GitHub Copilot for free with monthly limits on inline suggestions and chat interactions. For more extensive usage, you can choose from various paid plans.
View detailed GitHub Copilot pricing