
Local-First AI Coding: Routing Simple Tasks to Qwen3.8-27B, Hard Ones to Qwen4-Max with d3 Decision Model
The author integrates vLLM's d3 decision model with HiRoute gateway to route coding tasks between a local Qwen3.8-27B and cloud Qwen4-Max. In an 11-turn session, 7 turns stayed local for file operations, while 4 difficult turns went to the cloud. The local decision model evaluates task difficulty and prior performance, keeping routing decisions on-premises.