Feature Request: Configurable lightweight decision model for assisted approval
还没有人认领这个 Issue。
评估
调研方向
Start by reading the assisted permissions and safety review implementation, then trace how review models are selected and how enterprise managed settings constrain them. The issue does not name source files or tests, so first locate those entry points and related tests. Done means users and administrators can configure a separate lightweight decision model, with uncertain decisions escalating through existing approval handling and managed settings able to pin or forbid the option.
由索引模型根据 Issue 内容生成。
描述
Describe the feature or problem you'd like to solve
Assisted permissions currently routes safety reviews through a model, but the review model is fixed/selected by Copilot rather than configurable, so every permission request burns a full LLM call (and ~0.1 AI credits or more) even when the decision is simple (e.g. "is this a read-only command?"). High-volume sessions pay for a large reviewer model to answer mostly yes/no questions.
Proposed solution
Allow users and administrators to configure a lightweight "decision model" for the assisted-approval safety review — a small, fast, cheap classifier-style model — distinct from the full LLM used for task reasoning. The reviewer model would: classify a permission request as safe/unsafe/uncertain with a short rationale, remain conservative (uncertain → fall back to manual approval / normal handling), and not consume full-model AI credits (or use a materially cheaper rate). Enterprise managed settings should be able to pin or forbid the decision-model option.
Example prompts or workflows
- In a session where agents issue hundreds of routine permission requests per hour, switch the reviewer to a small decision model so routine read-only/listing commands are resolved in milliseconds and near-zero marginal cost, while uncertain or risky requests still escalate to manual approval.
- Enterprise fleet policy: pin the safety review to a specific inexpensive model via managed settings so unattended CI/autopilot runs don't burn premium review budget.
- Local dev with a model provider: point the reviewer at the small local model already loaded for decisions, reserving the large model for actual coding work.
Additional context
- Today the docs say the safety review model is selected by Copilot (default GPT Luna, or the active model with your own provider), with each review consuming AI credits separately from task usage.
- A dedicated decision model would reduce review latency, cost, and credit burn with no loss of oversight: escalation behavior (uncertain → prompt/deny) should stay unchanged.
- Reference: docs.github.com/en/copilot/concepts/customizations/allowing-safe-commands
- 主要语言
- Python
- 星标
- 11.5k
- 派生
- 2k
- 平均合并
- 6 小时 34 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
github/copilot-cli 的其他 Issue
-
area:plugins
难度 2/5 1-3 小时 新手友好度 75/100
github/copilot-cli#5567 ·
-
难度 1/5 1-3 小时 新手友好度 78/100
github/copilot-cli#5489 ·
-
Built-in functions.view returns no content for large files despite documenting automatic truncation未关闭area:tools
难度 2/5 1-3 小时 新手友好度 72/100
github/copilot-cli#5476 ·
-
triage
难度 1/5 1 小时以内 新手友好度 74/100
github/copilot-cli#5377 ·
-
area:platform-windows area:tools
难度 1/5 1 小时以内 新手友好度 74/100
github/copilot-cli#5340 ·
查看 github/copilot-cli 的全部 Issue
相似的 Issue
-
fidelity
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
backlog
难度 2/5 1-3 小时 新手友好度 72/100
sagemathinc/sagebrush#3434 ·
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation good first issue help wanted
难度 2/5 1-3 小时 新手友好度 78/100
wuisabel-gif/MemWhale#576 ·
维护者通常 1 天内回复
-
Status: Triage Suggestion
难度 2/5 1-3 小时 新手友好度 68/100
GTNewHorizons/GT-New-Horizons-Modpack#27957 ·
维护者通常 1 天内回复