[Feature]: On-demand Skill and MCP discovery to reduce context overhead
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 1.3k
- フォーク
- 141
- 平均マージ
- 3時間 1分
- マージ済み PR(30日)
- 97
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
MiniMax-AI/minimax-code のほかの issue
-
bug cli documentation needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
MiniMax-AI/minimax-code#299 · コメント 3 件 ·
-
bug cli needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#128 · コメント 2 件 ·
-
bug desktop
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MiniMax-AI/minimax-code#87 · コメント 2 件 · リアクション 2 件 ·
-
bug desktop needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
MiniMax-AI/minimax-code#80 ·
-
bug desktop needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MiniMax-AI/minimax-code#66 ·
MiniMax-AI/minimax-code の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·