github / github/copilot-cli

Expose extended thinking as a control independent of reasoning effort

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

描述

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

For Anthropic models (e.g. Claude Opus 4.8), thinking and reasoning effort are separate API parameters, but the CLI only exposes effort. There's no first-class way to turn extended thinking on/off independently of the effort level.

### Proposed solution

Surface thinking as its own control, decoupled from reasoning effort:

- a `--thinking on|off` flag (and `/thinking off` in interactive mode), and/or
- a 4th step in the `/model` wizard. It's currently model → reasoning effort → context size; add a Thinking on/off step.

Default to current behavior so nothing changes unless a user opts in, on models that support it.

### Why

- Anthropic exposes `effort` (token spend, all output) and `thinking` (`adaptive`/`disabled`) as independent params; `effort` explicitly doesn't require thinking enabled. Docs: [effort](https://platform.claude.com/docs/en/build-with-claude/effort), [extended thinking](https://platform.claude.com/docs/en/build-with-claude/extended-thinking).
- Cursor's CLI already ships both axes (`claude-opus-4-8-xhigh` vs `claude-opus-4-8-thinking-xhigh`), so it's implementable on a CLI surface.
- The plumbing already exists in the CLI: `COPILOT_DISABLE_ANTHROPIC_THINKING=1` sets `thinking: {type: "disabled"}` while keeping effort, and is honored end-to-end. But it's an undocumented, launch-only, process-wide env var that's invisible in `/model` — this ask is to promote it to a real control.

### Example workflows

- `--model claude-opus-4.8 --effort xhigh --thinking off`: long agentic run at high effort, no thinking tokens.
- `--effort low --thinking on`: cheap pass that still reasons on hard subproblems.
- Headless `--print` runs pinned to thinking off for lower-latency, deterministic output.

貢獻指南

開啟貢獻指南

研究方向

Start by tracing the existing --effort handling and the COPILOT_DISABLE_ANTHROPIC_THINKING environment-variable path. Then inspect the /model wizard, interactive /thinking command, and --print mode to determine where the new control must be surfaced. Done means thinking can be toggled independently while preserving current defaults and effort behavior on supported models.

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

評估

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

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

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