github / github/copilot-cli

Quickly switch between pre-set model configs

未关闭
#4,190 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
area:configuration area:models
主要语言
Shell
星标
11.2k
派生
1.9k
平均合并
14 小时 16 分钟
30 天内合并 PR
6

描述

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

Enable rapid model/effort switching for better efficiency

### Proposed solution

As developer I want in many cases to use the strongest model with highest effort level available. However, typing /model, choosing the model with arrows, then choosing the effort level with right left is cumbersome and might cause be to avoid it and therefore not use the right model for the task.

My proposal is to enable mapping keyboard shortcuts to pre-set models and effort so I can quickly switch between them based on the task.
I assume there are other use cases for custom keyboard mapping.

Alternatively, add option to create custom commands, like for example "/cheap" will switch to a pre-set model I choose with pre-set effort level.
Using an approach like "/agent cheap" can work but it changes tools/behavior and not generic enough.

Another option is to create another command (e.g. "/pmodel") which shows a list of 5 pre-set model configurations I can quickly choose by number.

### Example prompts or workflows

_No response_

### Additional context

_No response_

贡献指南

打开贡献指南

调研方向

issue 中没有指定文件、测试或入口点。首先定位现有的 /model 流程,以及任何键盘快捷键或自定义命令的处理逻辑。将提议的方法与当前 CLI 行为进行比较;done 应提供一种在预设的模型和 effort 配置之间快速切换的方式。

由索引模型根据 Issue 内容生成。

评估

技术栈
shell
领域
cli
Issue 类型
功能
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。