Feature Request: --disable-plugin flag for per-session plugin control
- 主要語言
- Shell
- 星號
- 11.2k
- 分支
- 1.9k
- 平均合併
- 14 小時 16 分鐘
- 30 天內合併 PR
- 6
描述
## 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.
貢獻指南
研究方向
首先定位現有的 --disable-mcp-server 和 --disable-builtin-mcps 選項定義,並追蹤工作階段啟動如何載入外掛程式。定義重複使用 --disable-plugin 旗標和 --no-plugins 時的行為,然後新增涵蓋範圍,顯示已停用的外掛程式會被略過,而不會變更已安裝的設定。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- shell
- 領域
- cli
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100