github / github/copilot-cli

System/Tools consume 73% of context window (146k/200k), triggering auto-compaction on first message

Đang mở
#3,539 5 bình luận 2 reaction 0 người được giao Xem trên GitHub
area:context-memory area:mcp 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ả

With multiple MCP servers and plugins configured, the System/Tools section consumes 146k tokens — 73% of the 200k context window. This leaves negative free space before the user sends their first message, causing immediate auto-compaction in brand new sessions.

Reproduction

1. Configure ~10 MCP servers (mix of builtin and custom)
2. Install plugins that register additional tools and skills
3. Have custom instruction files in ~/.copilot/copilot-instructions.md and .github/instructions/
4. Start a new session
5. Run /context

System/Tools: 146.4k (73%)
Messages: 1.2k (1%)
Free Space: -18383 (-9%)
Buffer: 70.8k (35%)

Auto-compaction fires after the first interaction (~100 credits used), despite no meaningful conversation history to compact.

Environment

- Copilot CLI v1.0.55-1
- Windows 11, PowerShell
- Model: Internal model
- ~10 MCP servers configured across user and org plugins

Impact

- Effectively unusable for multi-turn conversations without constant compaction
- Credits wasted on compaction rather than productive work
- Users with enterprise MCP setups hit this silently with no warning

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

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

Đánh giá

Issue này chưa được đánh giá.

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.