[Feature]: On-demand Skill and MCP discovery to reduce context overhead
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start by tracing the CLI interactive TUI’s Skill catalog rendering and the runtime assembly of the MCP/tool catalog. Establish how direct selections, permissions, essential built-in tools, and discovery fallback currently work before choosing the discovery boundary. Done means relevant capabilities are loaded on demand, discovery is visible, explicit selections remain usable, and benchmarks cover token reduction, latency, and cache effects.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Product or interface
CLI - interactive TUI
Use case and problem
As MCode grows, enabled Skills and MCP tools can become a large capability catalog that is carried into model turns even when most of it is unrelated to the current task.
MCode currently renders the available Skills catalog into the system prompt, and its runtime assembles the active tool/MCP catalog for the model. With many Skills and MCP servers, this can add unnecessary input tokens, cache writes, context pressure, model attention, and repeated processing.
The goal is to keep MCode’s normal behavior and safety model, while making capability discovery demand-driven: keep a small stable base, discover what is relevant for the current task, and load only what is actually needed..
Desired behavior
Add an optional native on-demand discovery layer for both Skills and MCP tools.
user task → lightweight capability discovery → load only relevant Skill(s)/MCP tool(s) → main model does the work
instead of:
user task → send the whole Skill/MCP catalog → main model filters everything every turn
Keep direct Skill/MCP selection authoritative, preserve essential built-in tools, keep all permissions/safety unchanged, and safely fall back to the current full catalog when discovery is uncertain or unavailable.
For Skills, load only the relevant SKILL.md instructions. For MCPs, discover the relevant server/tools and expose only the needed tool schemas, lazily connecting where practical.
The discovery layer should work without requiring Jev or another paid API; a local/deterministic matcher can be the default, with optional pluggable fast rankers.
Acceptance ideas
Large Skill/MCP setups send materially fewer irrelevant catalog/schema tokens.
Explicitly named Skills/MCP tools always remain directly usable.
Discovery failure safely falls back instead of hiding capabilities.
Permissions and tool behavior remain unchanged.
MCode shows what was discovered/loaded.
Benchmarks measure token/context reduction, latency, and cache effects.
Platform
Multiple platforms
Alternatives and additional context
The safzanpirani/pi-jev-skill-picker experiment demonstrates the general idea for Skills: remove the repeated Skills catalog and use a small ranking step to load relevant Skills only when needed. Its benchmark numbers are specific to that setup and should not be treated as MCode results.
The same idea seems even more useful if MCP discovery is included as part of the same capability-routing problem.
This also complements #262:
This issue → reduce what enters context in the first place
#262 → preserve reusable cache when runtime changes later
Together:
smaller stable context → discover only what is needed → preserve cache whenever possible
- Ngôn ngữ chính
- TypeScript
- Star
- 1.3k
- Fork
- 141
- Merge trung bình
- 2 giờ 13 phút
- Pull request đã merge (30 ngày)
- 88
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MiniMax-AI/minimax-code
-
bug cli documentation needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
MiniMax-AI/minimax-code#299 · 3 bình luận ·
-
bug cli needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MiniMax-AI/minimax-code#128 · 2 bình luận ·
-
bug desktop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
MiniMax-AI/minimax-code#87 · 2 bình luận · 2 reaction ·
-
bug desktop needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
MiniMax-AI/minimax-code#80 ·
-
bug desktop needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MiniMax-AI/minimax-code#66 ·
Tất cả issue của MiniMax-AI/minimax-code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
looksLikeSlug() is ASCII-only, so non-Latin entity slugs (e.g. Korean) skip exact match and collapse Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TanStack/tanstack.com#1293 ·