# Declarative model roles, tiers, pools, cycle order, and fallback chains.
routing:
  tiers:
    google_gemini: google-antigravity/gemini-3.7-flash
    google_gemini_high: google-antigravity/gemini-3.7-flash:high
    google_gemini_medium: google-antigravity/gemini-3.7-flash:medium
    google_opus_high: google-antigravity/claude-opus-4-6:high
    google_sonnet_medium: google-antigravity/claude-sonnet-4-6:medium
    google_sonnet_low: google-antigravity/claude-sonnet-4-6:low

    openai_luna_high: openai-codex/gpt-5.6-luna:high
    openai_luna_max: openai-codex/gpt-5.6-luna:max

    openrouter_ox: "@account.openrouter.1/stealth/ox-alpha"
    openrouter_free: "@account.openrouter.1/openrouter/free"
    
    gateway_deepseek: "@account.custom-gateway.1/deepseek-v4-flash"
    gateway_sol: "@account.custom-gateway.1/gpt-5.6-sol"

    zen_x_preview: opencode-zen/x-preview-f-free
    zen_nemotron: opencode-zen/nemotron-3.5-lightning-free
    zen_muse: opencode-zen/muse-spark-1.2-contributor-free

  pools:
    openrouter_auto:
      - "@account.openrouter.1/stealth/ox-alpha"
      - "@account.openrouter.2/stealth/ox-alpha"
      - "@account.openrouter.1/openrouter/free"
      - "@account.openrouter.2/openrouter/free"
    gateway_pool:
      - "@account.custom-gateway.1/deepseek-v4-flash"
      - "@account.custom-gateway.2/deepseek-v4-flash"

  modelRoles:
    default: google-antigravity/gemini-3.7-flash
    plan: openai-codex/gpt-5.6-luna:high
    slow: openai-codex/gpt-5.6-luna:max
    advisor: "@tier.google_sonnet_medium"
    task: "@tier.google_sonnet_low"
    vision: google-antigravity/gemini-3.7-flash:high
    smol: "@tier.openrouter_ox"
    commit: "@tier.openrouter_ox"
    tiny: "@tier.openrouter_ox"

  cycleOrder:
    - default
    - slow

  fallbackChains:
    default:
      - "@pool.openrouter_auto"
      - "@tier.google_sonnet_medium"
      - "@tier.openai_luna_high"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
      - "@pool.gateway_pool"
    plan:
      - "@tier.google_opus_high"
      - "@tier.google_gemini_high"
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
    slow:
      - "@tier.google_opus_high"
      - "@tier.google_gemini_high"
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
    smol:
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
    advisor:
      - "@tier.google_gemini_medium"
      - "@tier.openai_luna_high"
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
    task:
      - "@tier.google_gemini_medium"
      - "@tier.openai_luna_high"
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@pool.gateway_pool"
    commit:
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
    tiny:
      - "@pool.openrouter_auto"
      - "@tier.zen_x_preview"
      - "@tier.zen_nemotron"
      - "@tier.zen_muse"
