github / github/copilot-cli

Feature Request: Configurable system prompt - allow users to slim down fixed token overhead

Ouverte
#2,627 4 commentaires 19 réactions 0 personnes assignées Voir sur GitHub
area:configuration area:context-memory
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

### Problem

The Copilot CLI system prompt consumes ~20,500 tokens at session start before any user content is loaded. On a 200K context window, that's ~10% consumed by instructions the user may not need. Combined with tool definitions (~8,500 tokens for tool usage guidelines alone), a significant portion of the context window is unavailable for actual work.

For comparison, [pi](https://github.com/badlogic/pi-mono) achieves robust agent behavior with a system prompt around ~1,000 tokens — roughly 20x smaller. I understand Copilot CLI's system prompt is intentionally comprehensive to ensure consistent, high-quality behavior across diverse user skill levels and use cases, and that's a reasonable design choice. But for power users in long sessions with large codebases, the overhead is noticeable.

### Proposal

Allow users to configure which system prompt sections are loaded, similar to how `--disable-builtin-mcps` lets users opt out of MCP servers. Ideas:

1. **`--slim-prompt` flag** — Load a minimal system prompt (core instructions only, skip verbose tool guidelines)
2. **`--disable-prompt-sections` flag** — Selectively disable sections (e.g., `--disable-prompt-sections plan-mode,git-rules`)
3. **Tiered prompts** — `--prompt-level minimal|standard|full` with increasing detail
4. **Lazy tool guidelines** — Load tool usage guidelines on first use of that tool rather than at session start (highest-impact single change)

### Impact

For power users who already know the tool conventions, trimming verbose guidelines could save 5,000-8,000 tokens — meaningful headroom for longer sessions and larger codebases. This would let Copilot CLI preserve its comprehensive defaults while giving experienced users an opt-in path to leaner sessions.

### Environment
- Copilot CLI v1.0.22
- Claude Opus 4.6
- Windows 11

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

No files, tests, or implementation entry points are named. First locate where the Copilot CLI assembles the system prompt and tool guidelines, then clarify which proposed configuration model should be implemented. Done should include an opt-in way to reduce prompt overhead while preserving the default behavior.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
shell
Domaine
ai, cli
Type d'issue
Fonctionnalité
Difficulté
5/5
Temps estimé
Plus d'une semaine
Activité
Active
Clarté
À clarifier
Accessibilité débutants
42/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.