AI Model Selection & Routing

0•

Optimizes LLM performance and cost by automatically selecting the most appropriate AI model for specific agent tasks.

The Model Selection skill provides a sophisticated routing layer for AI agents, ensuring every task—from complex coding to simple documentation—is handled by the most efficient model. By implementing a five-layer resolution hierarchy, it balances user preferences, task requirements, and cost-effectiveness. It allows for persistent global or per-agent configurations via .squad/config.json, supports real-time session directives, and features robust fallback chains to ensure high availability without overspending on premium tokens. This skill is essential for developers looking to maximize the quality of their AI interactions while maintaining strict control over resource utilization.

Key Features

01Persistent Configuration: Saves global and per-agent model overrides in .squad/config.json for consistent behavior across sessions.
02Tier-Safe Fallback Chains: Automatically retries failed requests within the same model tier to maintain reliability.
03Task-Aware Auto-Selection: Automatically assigns Sonnet for code, Opus for visual tasks, and Haiku for documentation.
040 GitHub stars
05Natural Language Triggers: Set persistent preferences using phrases like 'always use Opus' or 'use Sonnet for this agent'.
065-Layer Resolution Hierarchy: Prioritizes persistent user settings over automated task-aware selection.

Use Cases

01Optimizing development budgets by routing routine documentation and planning tasks to faster, low-cost models like Haiku.
02Enforcing a 'High-Quality' mode by forcing all agents to use premium models like Claude 3.5 Opus for complex architecture.
03Configuring specific agents with specialized capabilities, such as a 'Security Auditor' agent always using the most advanced reasoning model.