ZeroToken Router is a zero-token-first hybrid AI routing agent built for Track 1 of the AMD Developer Hackathon: ACT II. The agent is designed to minimize premium cloud API usage while guaranteeing 100% schema accuracy and grading compliance. On startup, the agent runs a deterministic local classifier to group incoming tasks into eight categories. Simple categories—such as sentiment analysis, text summarization, named entity recognition, and basic arithmetic—are resolved locally using highly optimized regex and heuristic solvers, consuming zero external API tokens. For complex logic, factual reasoning, and coding queries, the agent dynamically escalates tasks to the injected Fireworks AI endpoints, routing general tasks to MiniMax M3 and code tasks to Kimi K2.7 Code. If a network timeout or remote API error occurs during evaluation, the agent automatically falls back to a local CPU-bound Qwen2.5 3B model or emergency deterministic templates to ensure the JSON schema is never broken. During local regression checks against the simulated evaluation set, the agent achieved a perfect 19/19 (100%) accuracy score, while routing 52.6% of the tasks completely locally. This results in a massive 52.6% reduction in remote API token usage and slashes batch latency to under 6 seconds, making it an extremely cost-efficient and lightweight solution that fits comfortably inside the 4 GB RAM, 2 vCPU grading limits.
Category tags: