dynamic-model-selector
由 mpelissari 提供
Coding Agents & IDEs简介
Dynamically select the best AI model for a task based on complexity, cost, and availability in GitHub Copilot.
描述
该技能的功能
Analyzes user queries to recommend the optimal AI model from GitHub Copilot's available options. Routes tasks based on complexity, cost sensitivity, and task type such as code generation or multi-step reasoning.
Instead of manually picking a model each time, the classification script matches task complexity to the right model, avoiding overpaying for simple queries or underserving complex ones.
何时使用
- Routing simple chat queries to free models to avoid unnecessary cost
- Selecting gpt-4o for complex analysis tasks automatically
- Picking code-optimized models for code generation requests
- Comparing model options before starting a long reasoning task
- Keeping costs low on high-volume automated workflows
示例工作流
User asks: 'Explain the difference between TCP and UDP'
- 1
Pass the query to classify_task.py
- 2
Script evaluates complexity, task type, and cost constraints
- 3
Classification returns medium complexity, general explanation
- 4
Selector recommends gpt-4o based on models.md criteria
- 5
User proceeds with the recommended model in GitHub Copilot
Model recommendation: gpt-4o for a medium-complexity explanation task
前置要求
- GitHub Copilot subscription or access
安装
clawhub install mpelissari/dynamic-model-selector运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。