github / github/copilot-cli

Feature Request: --disable-plugin flag for per-session plugin control

Đang mở
#3,452 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:plugins
Ngôn ngữ chính
Shell
Star
11.2k
Fork
1.9k
Merge trung bình
14 giờ 16 phút
Pull request đã merge (30 ngày)
6

Mô tả

## Summary

Currently, there is no way to start a Copilot CLI session with specific plugins disabled without fully uninstalling them. A `--disable-plugin ` startup flag would allow lightweight sessions without losing plugin configuration.

## Current behaviour

The only way to start without a plugin is to uninstall it:
```bash
copilot plugin uninstall
# ...later...
copilot plugin install
```

## Proposed change

Add a `--disable-plugin ` flag (can be used multiple times, similar to the existing `--disable-mcp-server`):

```bash
# Start a minimal session — no user plugins, only built-in tools
copilot --disable-plugin security-best-practices --disable-plugin context-engineering

# Or a blanket flag to skip all plugins for this session
copilot --no-plugins
```

This mirrors the existing pattern of `--disable-mcp-server` and `--disable-builtin-mcps` which already provide per-session MCP control.

## Use case

Power users often configure multiple plugins for different workflows. A simple alias pattern like:

```bash
alias copilot_minimal='copilot --no-plugins --disable-mcp-server playwright --disable-mcp-server postgres'
```

...would let you switch between heavy and lightweight sessions without touching installed state.

## Related

- #2714 — requests persistent `plugin enable/disable` commands (different angle: that is config-level; this is per-session flag)

## Notes

The feature gap is noticeable because MCP servers already have this per-session control (`--disable-mcp-server`) but plugins do not. Parity between the two would make the CLI much more composable for scripting and alias-based workflows.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Bắt đầu bằng cách xác định các định nghĩa tùy chọn --disable-mcp-server và --disable-builtin-mcps hiện có, đồng thời theo dõi cách quá trình khởi động phiên tải các plugin. Xác định hành vi của các flag --disable-plugin lặp lại và --no-plugins, sau đó bổ sung độ bao phủ cho thấy các plugin bị vô hiệu hóa được bỏ qua mà không thay đổi cấu hình đã cài đặt.

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

Đánh giá

Công nghệ
shell
Lĩnh vực
cli
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Ít trao đổi
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
48/100

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.