Feature Request: Configurable lightweight decision model for assisted approval

未关闭
#5,608 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

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

调研方向

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 内容生成。

描述

area:models area:permissions

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

  1. 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.
  2. 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.
  3. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

github/copilot-cli 的其他 Issue

查看 github/copilot-cli 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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