Skip to content

Instantly share code, notes, and snippets.

@gsiener
Created February 7, 2026 13:02
Show Gist options
  • Select an option

  • Save gsiener/05f2da8d3e58d56d99caea4e3958ae2a to your computer and use it in GitHub Desktop.

Select an option

Save gsiener/05f2da8d3e58d56d99caea4e3958ae2a to your computer and use it in GitHub Desktop.
Pinch Model Decision Tree

Pinch Model Decision Tree

flowchart TD
    A[New Request] --> B{Session Override?}
    B -->|Yes| C[Use Override Model]
    B -->|No| D{Heartbeat Poll?}
    
    D -->|Yes| E[Gemini Flash<br/>FREE]
    D -->|No| F[Claude Sonnet<br/>Work Token]
    
    F --> G{Success?}
    G -->|Yes| H[✓ Done]
    G -->|No| I[OpenRouter Auto]
    
    I --> J{Success?}
    J -->|Yes| H
    J -->|No| K[Gemini Flash<br/>FREE]
    
    K --> L{Success?}
    L -->|Yes| H
    L -->|No| M[✗ Hard Fail]
    
    C --> N{Model Available?}
    N -->|Yes| O[Use Selected]
    N -->|No| F
    
    subgraph paid [Paid Models]
        F
        P[Claude Opus<br/>alias: opus]
    end
    
    subgraph free [Free Models]
        E
        K
        Q[Kimi K2.5<br/>alias: kimi]
        R[OpenRouter Auto<br/>alias: auto]
    end
    
    style paid fill:#ffe6e6
    style free fill:#e6ffe6
Loading

Summary

Route Model Cost
Regular requests Claude Sonnet → OpenRouter → Gemini Flash Paid → Free fallback
Heartbeats Gemini Flash Free
Manual /model kimi Kimi K2.5 Free
Manual /model opus Claude Opus Paid (expensive)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment