github / github/copilot-cli

Offer/auto-switch to Auto model when exiting plan mode

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

描述

## Summary

When exiting plan mode, offer to (or automatically) switch the session to the **Auto** model for implementation. Today, exit-plan-mode prompts let you choose how to execute (e.g., interactive vs. autopilot), but they always stay on whatever model you used to plan. Adding "switch to Auto" as either a configurable default or an explicit exit-plan-mode option would close a high-value cost-optimization workflow.

## Motivation

A common workflow that delivers real cost savings:

1. **Plan** with a strong reasoning model of the user's choice (e.g., Opus, GPT‑5.x, Sonnet at high reasoning) to think through a non-trivial task.
2. **Implement** the resulting plan with the **Auto** model, which is cheaper to run *and* currently carries a 10% discount on top of that.

The plan is the expensive thinking; execution against a well-formed plan is much more mechanical and Auto handles it well. Doing the whole task on a premium model burns tokens unnecessarily, and doing the whole task on Auto often produces a weaker plan. The plan-on-premium → implement-on-Auto split is a sweet spot.

Right now the only way to get this behavior is to:
- Exit plan mode,
- Manually open the model picker,
- Switch to Auto,
- Re-prompt the agent to start implementing.

That's enough friction that most users will just stay on whatever model they planned with, which leaves the savings on the table.

## Proposed behavior

Two flavors, either or both would be great:

### 1. An option in the exit-plan-mode prompt

When the agent surfaces the existing "exit plan mode and implement using …" prompt, add a variant such as:

- *Exit plan mode and implement using **Auto** (recommended for cost)*
- *Exit plan mode and implement using **Auto** in autopilot*

…alongside the current options. Selecting it would atomically switch the model to Auto and continue execution.

### 2. A user setting / feature flag

A config toggle like:

- `planMode.switchToAutoOnExit: true` (or similar)
- Per-project override allowed

When enabled, exiting plan mode automatically switches the active session's model to Auto before execution starts. Users who don't want this behavior just leave the toggle off and see today's behavior.

## Scope

This would most naturally live in the **GitHub Copilot CLI** (this repo) since that's where plan mode and the exit-plan-mode prompt are surfaced, but the same UX would be valuable in the **GitHub Copilot desktop app** sessions that have plan mode. Ideally the setting and the prompt option are consistent across both surfaces.

## Why this is worth doing

- **Real $$ savings** for users running plans frequently — Auto is cheaper *and* discounted.
- **Encodes a best-practice workflow** that power users already use manually.
- **Low-friction**: a single extra option in an already-existing prompt, or a one-line setting.
- **Opt-in**: as a toggle/option it doesn't change behavior for anyone who doesn't want it.

## Out of scope / non-goals

- Not asking to change the *default* model selection.
- Not asking to auto-switch models mid-execution outside the plan→implement transition.
- Not asking to remove any existing exit-plan-mode options.

Happy to elaborate or help test if useful.

貢獻指南

開啟貢獻指南

研究方向

Locate the existing plan-mode exit prompt and the session model-selection and configuration paths in the GitHub Copilot CLI. Trace how an exit choice continues implementation and how model changes are represented. Done means an explicit or configured Auto transition works without removing current exit options, with coverage for the selected behavior.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
github, shell
領域
ai, cli
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

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

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