github / github/copilot-cli

Support per-mode default model configuration (plan mode vs. autopilot)

未關閉
#2,958 4 則留言 19 個 reaction 已指派 0 人 在 GitHub 檢視
area:agents area:configuration area:models
主要語言
Shell
星號
11.2k
分支
1.9k
平均合併
14 小時 16 分鐘
30 天內合併 PR
6

描述

### Describe the feature or problem you'd like to solve

Per-mode default model configuration (plan mode vs. autopilot)

### Proposed solution

Allow users to configure a default AI model per interaction mode — specifically plan mode and autopilot mode — via the CLI config or a config file (e.g., ~/.copilot/config.json). Today, /model sets a single model for the entire session regardless of mode. Since plan mode is more reasoning-heavy (architecture, task decomposition) and autopilot is more execution-heavy (many sequential tool calls), users benefit from using different models optimized for each purpose — e.g., a premium reasoning model for planning and a faster/cheaper model for autopilot execution.

### Example prompts or workflows

1. User sets planModel: "claude-opus-4.7" and autopilotModel: "claude-haiku-4.5" in config. On launch, each mode automatically uses the configured model.
2. User enters plan mode ([[PLAN]] prefix or Shift+Tab) — the CLI silently switches to the plan model.
3. User switches to autopilot (Shift+Tab) — the CLI silently switches to the autopilot model.
4. /model still works as an override for the current session

### Additional context

This mirrors how some IDEs let you configure different models for different tasks (e.g., chat vs. inline completion). It would reduce the friction of manually switching models when changing modes, and help users manage their premium request quota more intentionally.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。