VS Code model routers let you define task-based routes in YAML: a decision model matches each request to a route, and VS Code runs the chat with that route’s model. Microsoft introduced the experimental feature in VS Code 1.147, released November 18, 2026; its documented model-picker workflow is for Copilot harness sessions (Microsoft’s release notes).

How VS Code model routers work

A router connects a request to a configured route. The decision model gpt-6-luna-decisions matches the request against those routes, and VS Code runs the chat using the model named in the matching route. The router’s YAML file is stored under ~/.agents/model-routers/.

That differs from choosing a model manually for each chat: the router uses task descriptions to match requests to the models assigned to its routes. The documented router appears in the model picker for Copilot harness sessions.

Start with the session context: the documented workflow is for Copilot harness chats. Then enable, create, and select the router.

What you need before creating one

Use a Copilot harness chat for the creation step. You’ll also need access to the user settings.json file to enable the feature.

How to create and select a router

  1. Enable the feature. In user settings.json, set chat.copilot.modelRouter.enabled to true.
  2. Create the router. In a Copilot harness chat, enter /model-router and describe how you want requests routed. The router is defined in YAML and stored under ~/.agents/model-routers/.
  3. Choose it for the chat. Select the router in the model picker.

Microsoft’s example routes

Microsoft’s example sends multi-step feature work, bug fixes, and refactors to opus; quick questions and small chores go to gpt-6-luna. These are examples of how routes can group work by task, not model names you must use.

Microsoft describes the feature as experimental and at an early stage.