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
{
"schema_version": "hiroute.planner-complexity-golden/v1",
"strategy_digest": "sha256:52538aba36f48b47ae2de6cdb7060e84138c7d3093ae9908e05021f26d0bf5da",
"planner_input_digest": "sha256:2ad377019306e8c8cad4b42ba779e795f1b6fd7a7673fa8922270431d6e51e88",
"planner_output_digest": "sha256:ee5579a026597e3ea99fcdf7ba4a50ecf3162e0f0b6b72607042c603db90fd4d",
"cases": [
{
"id": "readme-responses",
"branch": "smart_saving",
"execution_group": "regular",
"score": 1,
"source": "builtin_rules",
"reasons": ["IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "readme-chat",
"branch": "smart_saving",
"execution_group": "regular",
"score": 1,
"source": "builtin_rules",
"reasons": ["IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "readme-messages",
"branch": "smart_saving",
"execution_group": "regular",
"score": 1,
"source": "builtin_rules",
"reasons": ["IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "complex-zh",
"branch": "smart_saving",
"execution_group": "primary",
"score": 6,
"source": "builtin_rules",
"reasons": ["DEEP_REASONING", "MULTI_FILE_SCOPE", "MULTI_CONSTRAINT", "IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "constraints-zh",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "builtin_rules",
"reasons": ["DEEP_REASONING", "MULTI_CONSTRAINT"],
"matched_user_phrase_ids": []
},
{
"id": "complex-en",
"branch": "smart_saving",
"execution_group": "primary",
"score": 6,
"source": "builtin_rules",
"reasons": ["DEEP_REASONING", "MULTI_FILE_SCOPE", "MULTI_CONSTRAINT", "IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "capital-token-boundary",
"branch": "smart_saving",
"execution_group": "regular",
"score": 0,
"source": "builtin_rules",
"reasons": [],
"matched_user_phrase_ids": []
},
{
"id": "human-ambiguous-character",
"branch": "smart_saving",
"execution_group": "regular",
"score": 0,
"source": "builtin_rules",
"reasons": [],
"matched_user_phrase_ids": []
},
{
"id": "history-tool-excluded",
"branch": "smart_saving",
"execution_group": "regular",
"score": 0,
"source": "builtin_rules",
"reasons": [],
"matched_user_phrase_ids": []
},
{
"id": "user-phrase",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "user_phrase",
"reasons": ["USER_COMPLEX_PHRASE"],
"matched_user_phrase_ids": ["user-production-race"]
},
{
"id": "task-root-continuation",
"branch": "smart_saving",
"execution_group": "regular",
"score": 1,
"source": "inherited",
"reasons": ["INHERITED_TASK_ROOT", "IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "unresolved-pure-continuation-en",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "unresolved",
"reasons": ["TASK_CONTEXT_UNRESOLVED"],
"matched_user_phrase_ids": []
},
{
"id": "unresolved-pure-continuation-zh",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "unresolved",
"reasons": ["TASK_CONTEXT_UNRESOLVED"],
"matched_user_phrase_ids": []
},
{
"id": "wrong-kind-pure-continuation",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "unresolved",
"reasons": ["TASK_CONTEXT_UNRESOLVED"],
"matched_user_phrase_ids": []
},
{
"id": "tool-continuation",
"branch": "smart_saving",
"execution_group": "primary",
"score": 6,
"source": "inherited",
"reasons": ["INHERITED_TOOL_CONTINUATION", "DEEP_REASONING", "MULTI_FILE_SCOPE", "MULTI_CONSTRAINT", "IMPLEMENTATION_ACTION"],
"matched_user_phrase_ids": []
},
{
"id": "unresolved-continuation",
"branch": "smart_saving",
"execution_group": "primary",
"score": 3,
"source": "unresolved",
"reasons": ["TASK_CONTEXT_UNRESOLVED"],
"matched_user_phrase_ids": []
}
]
}