-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Feature: per-task-class model lanes with ordered fallbacks for swarm workers #1497
Copy link
Copy link
Open
Labels
area: configConfiguration, defaults, and environment overrides.Configuration, defaults, and environment overrides.area: swarmMulti-agent coordination, workers, and task orchestration.Multi-agent coordination, workers, and task orchestration.enhancementNew feature or requestNew feature or requesttriage: needs-decisionNeeds maintainer decision/design thoughtNeeds maintainer decision/design thought
Description
Activity
Metadata
Metadata
Assignees
Labels
area: configConfiguration, defaults, and environment overrides.Configuration, defaults, and environment overrides.area: swarmMulti-agent coordination, workers, and task orchestration.Multi-agent coordination, workers, and task orchestration.enhancementNew feature or requestNew feature or requesttriage: needs-decisionNeeds maintainer decision/design thoughtNeeds maintainer decision/design thought
Problem
Swarm workers get one default (
agents.swarm_model) plus a per-spawnmodeloverride, and quota fallback is a single global list (provider.quota_fallback). A coordinator that routes by task class (cheap readers, routine implementation, hard iteration, long-context review, frontier review) has to repeat the model id in every spawn and cannot declare an ordered fallback per class. With model prices and availability changing weekly, those ids end up scattered across prompts and plans.Proposal (small, opt-in)
lane = "reader"as an alternative tomodel; it resolves to the first available route in the list.[agents.lanes]table means the behavior is unchanged.Why upstream
It's generic (any provider mix), small (config parsing plus one resolution step at spawn), and removes a class of prompt-level bookkeeping. I'm happy to implement it if the shape fits. Filing it as an issue first per CONTRIBUTING.