Skip to content

Model routing: pick provider/model per task by complexity and cost #246

Closed

Description

@currentbits

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).

Activity

  1. added
    enhancement
    plan:todo
    on Aug 17, 2026
  2. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    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.

  3. currentbits commented on Aug 17, 2026

    @currentbits
    OwnerAuthor

    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.

  4. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    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.

  5. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    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.

  6. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    Round 18 intel:

    • 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.
  7. currentbits commented on Aug 18, 2026

    @currentbits
    OwnerAuthor

    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.

  8. added
    plan:doing
    and removed
    plan:todo
    on Oct 11, 2026
  9. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Implemented on branch coder/model-routing-pick-provider-model-per-ta-16ce1e (commit 13ac882).

    • Tiers are fast, balanced and strong. Each project maps every tier to an agent profile (Named agent profiles (provider + model + effort + permission presets) #190 profiles) in Edit project → Model routing, and can turn on "Start new threads on Auto".
    • 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.

  10. added
    plan:done
    and removed
    plan:doing
    on Oct 11, 2026
  11. currentbits commented on Oct 11, 2026

    @currentbits
    OwnerAuthor

    Landed from Solenta thread "Model routing: pick provider/model per task by complexity an" (PR #1592). Closed on merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions