Model Selection

Resolve LLM models per agent spawn using a five-layer hierarchy and persist to .squad/config.json.

49|6|Updated Aug 24, 2021
One-click install
npx skills add https://github.com/webmaxru/bpm-counter --skill model-selection-webmaxru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Model Selection
Source: https://github.com/webmaxru/bpm-counter/tree/main/.squad/templates/skills/model-selection
Command: npx skills add https://github.com/webmaxru/bpm-counter --skill model-selection-webmaxru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Selects the most suitable LLM model for each agent spawn to optimize performance, cost, and outcomes across heterogeneous tasks.

Core Features & Use Cases

  • Deterministic resolution: Applies a 5-layer hierarchy to pick the model (per-agent config → global default → session directive → charter → task-aware auto → fallback).
  • Persistence: Stores persistent model preferences in .squad/config.json for cross-session consistency.
  • Traceable spawns: Returns the resolved model in spawn acknowledgments to aid auditing and debugging.
  • Use Case: Different agents for coding, planning, and data analysis can be assigned specialized models automatically.

Quick Start

Set a default model or per-agent override and trigger the next agent spawn to observe the resolved model.

Frequently Asked Questions about Model Selection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right LLM model for each agent spawn automatically?

To choose the right LLM model for each agent spawn automatically, apply a deterministic 5-layer resolution hierarchy. This evaluates per-agent config overrides, global defaults, session directives, charter preferences, and task-aware heuristics to select the optimal model.

How does model selection hierarchy work for AI agents?

The model selection hierarchy works by evaluating configuration layers in a fixed priority order: per-agent config first, then global default, session directive, charter preference, and task-aware auto heuristics, falling back to a default model if no preference is found.

How do I configure per-agent model overrides for different tasks like coding and planning?

To configure per-agent model overrides for different tasks, define specific models in your configuration. The resolution process checks these per-agent overrides before global defaults, ensuring coding, planning, and data analysis agents use specialized models automatically.

Where are resolved LLM model preferences persisted for cross-session consistency?

Resolved LLM model preferences are persisted to the .squad/config.json file. Storing the chosen model in this configuration file ensures cross-session consistency and provides traceable spawns for auditing and debugging agent behavior.

Can I see which model was selected when an AI agent spawns?

Yes, you can see which model was selected when an AI agent spawns. The resolved model is included in the agent spawn acknowledgment, providing traceable spawns that aid in auditing and debugging the deterministic model selection process.

What happens if no per-agent config or global default is set for model selection?

If no per-agent config or global default is set for model selection, the resolution hierarchy applies task-aware heuristics to auto-select a model. If all higher-priority layers are absent, it ultimately falls back to a predefined fallback model.