Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
Rust ai-agentsai-gatewayclaude-codecodexcoding-agentcost-optimizationdeepseekllm-gatewayllm-routerlocal-firstmodel-routingrusttask-routingtauri
{
"simple": "Work whose required conclusions are explicitly stated in supplied sources: extract, translate, classify, normalize, cite, or format those facts under clear rules. Producing many distinct entries or a long document does not by itself require difficult reasoning. Appropriate only when the needed facts and qualifications are available without deriving new guarantees, reconciling contradictory versions, or evaluating complex failure interactions. Preserve uncertainty instead of inventing missing facts.",
"complex": "Work that requires new multi-step reasoning beyond direct evidence: reconcile conflicting claims or versions, assess the combined guarantees of multiple systems, reason about failure orderings and side effects, derive quantitative conclusions, or resolve unsupported inferences in an earlier answer. Confident wording and valid citation syntax do not establish semantic correctness. Substantive evidence of scope errors, repeated contradictions, or unsound deductions calls for the more capable branch."
}