Custom chat modes (legacy) — redirected to Custom agents
https://code.visualstudio.com/docs/copilot/chat/chat-modes now redirects to
https://code.visualstudio.com/docs/agent-customization/custom-agents.
The full content lives in custom-agents.md in this directory. Do not treat this file as a second source.
Key migration facts recorded by the target page:
- Custom agents were previously known as custom chat modes. The functionality is unchanged; only the terminology was updated.
- Existing
.chatmode.mdfiles must be renamed to.agent.mdto convert them to the custom agent format. - Renamed files must be placed in a discovered location —
.github/agents(workspace),.claude/agents(workspace, Claude format),~/.copilot/agents(user profile), or any extra path configured via thechat.agentFilesLocationssetting. - The old
chat.modeFilesLocationssetting is not mentioned anywhere in the current documentation;chat.agentFilesLocationsis the setting the docs now point to for custom agent file discovery.