You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Model routing: pick provider/model per task by complexity and cost #246
Inspired by Cursor Router ('Auto' mode with cost/balance/intelligence tiers).
Given Solenta already spans claude/codex/kimi/grok/opencode, add a routing layer: classify a prompt (or let automations/orchestrators declare tier) and pick provider+model accordingly, e.g. cheap model for triage/reformat tasks, strong model for architecture. Show what was picked and why; expose routing preferences per project. Natural extension of #190 (named agent profiles).
Research note (Open WebUI arena): close the loop with feedback data. Best-of-N already runs candidates side by side; add one-click winner ratings and build a per-task-type ELO/preference table per project, then let routing use it. Casual preference clicks become routing data.
Research note (Cognition's 'smart friend' pattern): the version proven to work today is a capability router, not a difficulty escalator. When a thread gets stuck, let it call a stronger/different model as a tool with the FULL context forked (not a subset), broad questions encouraged ('what should I do?'), and over-scoped answers welcome ('go read X, then ask again'). Some models debug better, some write tests better; route by capability. Cross-frontier (Claude<->GPT) works today.
Deep-dive (Zed): per-feature model overrides — separate models for compaction, thread summaries, commit messages, subagents, inline assistant (agent.compaction_model, agent.thread_summary_model, agent.commit_message_model...). Routing is per-purpose, not just per-task.
Round 21: Kimi 0.36.0's subagent model pool is the worker-side of this ticket. Filed separately as #467 so the lead-thread router (#246) and the spawn menu stay distinct.
If you implement #246 first, leave a hook for a described candidate list — that is what #467 will attach to orchestration forks.
Windsurf/Devin "Adaptive" router (changelog 2026-04-06) is the shipped reference: one model option that picks the underlying model per task while billing at a fixed blended per-token rate, so the user never has to reason about which model their quota burns on. Their model picker shows per-model input/output/cache-read token prices inline, and a prompt-cache timer inside the context-window indicator. Pricing transparency in the picker is the trust feature here, not the routing itself.
Price signal this week: GPT-5.6 Sol API pricing cut 50% (OpenRouter, front page of HN 2026-08-18). Routing tables keyed on cost go stale fast; treat provider price lists as fetched data with a cache, not constants.
Caution from danluu's "The Benchmarkpocalypse" (HN front page 2026-08-18): public benchmark ranks are increasingly gamed/saturated. Do not route on benchmark tier alone; prefer Solenta's own ground-truth signals (merge rate, rework, cost per merged PR, cf. closed Agent fleet analytics from ground truth: merge rate, review tax, rework, cost per merged PR #375) as the routing objective.
Round 19: Cursor's answer to routing shipped 2026-07-22 as Cursor Router powering Auto mode. The UX simplification worth stealing: instead of exposing complexity scoring, they give the user three named optimization modes: Intelligence, Balance, Cost. Admin layer on top: per-team enablement, mode restrictions, and model allow/block lists (ties into #262). Between this and Windsurf's Adaptive (fixed blended rate, see earlier comment), every major player converged on "one Auto option + a cost/intelligence dial" rather than per-task model pickers. That is the shape #246 should ship.
Auto sets a pending route on the thread, and the first turn consumes it. A keyword/length heuristic classifies the prompt. The tier's profile then sets provider, model and effort, but never permission mode.
Declared tiers: automations have an optional tier, with their provider/model kept as the fallback. thread_fork takes tier, and a pinned pool still wins.
What and why: a transcript event such as Auto routing: fast (short "typo" task) → Scout, or the reason the model was kept.
Composer: an Auto row in the model picker before the first turn. Any manual pick clears it.
Not done: an LLM-based classifier (the heuristic is marked as the upgrade point) and cost tracking per tier.
Activity
currentbits commentedon Aug 17, 2026
Research note (Open WebUI arena): close the loop with feedback data. Best-of-N already runs candidates side by side; add one-click winner ratings and build a per-task-type ELO/preference table per project, then let routing use it. Casual preference clicks become routing data.
currentbits commentedon Aug 17, 2026
Research note (Cognition's 'smart friend' pattern): the version proven to work today is a capability router, not a difficulty escalator. When a thread gets stuck, let it call a stronger/different model as a tool with the FULL context forked (not a subset), broad questions encouraged ('what should I do?'), and over-scoped answers welcome ('go read X, then ask again'). Some models debug better, some write tests better; route by capability. Cross-frontier (Claude<->GPT) works today.
currentbits commentedon Aug 18, 2026
Deep-dive (Zed): per-feature model overrides — separate models for compaction, thread summaries, commit messages, subagents, inline assistant (agent.compaction_model, agent.thread_summary_model, agent.commit_message_model...). Routing is per-purpose, not just per-task.
currentbits commentedon Aug 18, 2026
Round 21: Kimi 0.36.0's subagent model pool is the worker-side of this ticket. Filed separately as #467 so the lead-thread router (#246) and the spawn menu stay distinct.
If you implement #246 first, leave a hook for a described candidate list — that is what #467 will attach to orchestration forks.
currentbits commentedon Aug 18, 2026
Round 18 intel:
currentbits commentedon Aug 18, 2026
Round 19: Cursor's answer to routing shipped 2026-07-22 as Cursor Router powering Auto mode. The UX simplification worth stealing: instead of exposing complexity scoring, they give the user three named optimization modes: Intelligence, Balance, Cost. Admin layer on top: per-team enablement, mode restrictions, and model allow/block lists (ties into #262). Between this and Windsurf's Adaptive (fixed blended rate, see earlier comment), every major player converged on "one Auto option + a cost/intelligence dial" rather than per-task model pickers. That is the shape #246 should ship.
currentbits commentedon Oct 11, 2026
Implemented on branch
coder/model-routing-pick-provider-model-per-ta-16ce1e(commit 13ac882).routeon the thread, and the first turn consumes it. A keyword/length heuristic classifies the prompt. The tier's profile then sets provider, model and effort, but never permission mode.thread_forktakestier, and a pinned pool still wins.Auto routing: fast (short "typo" task) → Scout, or the reason the model was kept.Not done: an LLM-based classifier (the heuristic is marked as the upgrade point) and cost tracking per tier.
Model routing: pick provider/model per task by tier (#246) (#1592)
currentbits commentedon Oct 11, 2026
Landed from Solenta thread "Model routing: pick provider/model per task by complexity an" (PR #1592). Closed on merge.
Model routing: pick provider/model per task by tier (#246)