github / github/copilot-cli

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

Aberta
#3,452 0 comentários 0 reações 0 responsáveis Ver no GitHub
area:plugins
Linguagem predominante
Shell
Estrelas
11.2k
Forks
1.9k
Merge médio
14h 16min
PRs com merge (30d)
6

Descrição

## 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.

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece localizando as definições existentes das opções --disable-mcp-server e --disable-builtin-mcps e rastreie como a inicialização da sessão carrega os plugins. Defina o comportamento de flags --disable-plugin repetidas e de --no-plugins e adicione cobertura mostrando que os plugins desabilitados são ignorados sem alterar a configuração instalada.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
shell
Domínio
cli
Tipo de issue
Funcionalidade
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Pouca atividade
Clareza
Razoavelmente clara
Facilidade para iniciantes
48/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.