Customize AI in Visual Studio Code
AI models have broad general knowledge but don't know your codebase or team practices. Think of the AI as a skilled new team member: it writes great code, but doesn't know your conventions, architecture decisions, or preferred libraries. Customization is how you share that context, so responses match your coding standards, project structure, and workflows.
This article covers the customization options in VS Code: custom instructions, prompt files, custom agents, agent skills, MCP servers, agent plugins, and language models. To access customizations, select the Configure Chat (gear icon) in the Chat view.
Quick reference
| Goal | Use | Example | When it activates |
|---|---|---|---|
| Apply coding standards everywhere | Always-on instructions | Enforce ESLint rules, require JSDoc comments | Automatically included in every request |
| Different rules for different file types | File-based instructions | React patterns for .tsx files |
When files match a pattern or description |
| Reusable task I run repeatedly | Prompt files | Scaffold a React component | When you invoke a slash command |
| Package multi-step workflow with scripts | Agent skills | Test, lint, and deploy pipeline | When the task matches the skill description |
| Specialized AI persona with tool restrictions | Custom agents | Security reviewer, database admin | When you select it or another agent delegates to it |
| Connect to external APIs or databases | MCP | Query a PostgreSQL database | When the task matches a tool description |
| Automate tasks at agent lifecycle points | Hooks | Run formatter after every file edit | When the agent reaches a matching lifecycle event |
| Install pre-packaged customizations from marketplaces | Agent plugins (Preview) | Install a community testing plugin | When you install a plugin |
Customization options
Custom instructions
Custom instructions define coding standards and project context in Markdown files that are automatically included in chat requests. Use always-on instructions for project-wide rules, or file-based instructions to apply different guidelines based on file path patterns.
Agent skills
Agent skills package specialized capabilities as folders of instructions, scripts, and resources that load on demand. Built on an open standard, skills work across VS Code, GitHub Copilot CLI, and GitHub Copilot coding agent.
Prompt files
Prompt files encode common tasks as Markdown files you invoke as slash commands in chat. Use them for repeatable workflows like scaffolding components, running tests, or preparing pull requests.
Custom agents
Custom agents let the AI adopt different personas for specific roles, such as security reviewer, database admin, or planner. Each agent defines its own behavior, available tools, and language model preferences in a Markdown file.
MCP and tools
MCP and tools extend the agent beyond code and the terminal by connecting to external services through the Model Context Protocol. Use MCP servers to interact with databases, APIs, and other development tools.
Hooks
Hooks run custom shell commands at key lifecycle points during agent sessions. Use them to enforce security policies, run formatters after edits, or create audit trails.
Agent plugins
Agent Plugins are currently in preview.
Agent plugins are pre-packaged bundles of customizations you discover and install from plugin marketplaces. A single plugin can provide slash commands, skills, custom agents, hooks, and MCP servers.
Language models
Language models let you switch between AI models optimized for different tasks. Use a fast model for quick suggestions, or a more capable model for complex architectural decisions. Bring your own API key to access additional or locally hosted models.
Set up your project for AI
Implement AI customizations incrementally. Start with the basics and add more as needed. For a hands-on walkthrough, see the Customize AI for your project guide.
-
Initialize your project: type
/initin chat to generate a.github/copilot-instructions.mdfile with coding standards tailored to your codebase. -
Add targeted rules: create file-based
*.instructions.mdfiles for specific parts of your codebase, such as language conventions or framework patterns. -
Automate repetitive tasks: create prompt files for common workflows and add MCP servers to connect external services.
-
Create specialized workflows: build custom agents for specific roles. Package reusable capabilities as agent skills to share across tools.
-
Generate customizations with AI: type
/create-prompt,/create-instruction,/create-skill,/create-agent, or/create-hookin chat to generate customization files with AI assistance.
Chat Customizations editor
The Chat Customizations editor is currently in preview.
The Chat Customizations editor provides a centralized UI for discovering, creating, and managing all your customizations in one place. From the editor, you can browse customization categories (agents, skills, instructions, prompts, hooks, MCP servers), create new items with optional AI-guided generation, and edit existing customizations in an embedded code editor.
To open the Chat Customizations editor, run Chat: Open Chat Customizations from the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)).

Troubleshoot customization issues
If your customizations aren't being applied or cause unexpected behavior, select Configure Chat (gear icon) > Show Agent Logs in the Chat view to troubleshoot agent issues.