Feature Request: Configurable lightweight decision model for assisted approval

Đang mở
#5,608 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, python
Lĩnh vực
ai, cli

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
Python
Star
11.5k
Fork
2k
Merge trung bình
6 giờ 34 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của github/copilot-cli

Tất cả issue của github/copilot-cli

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.