
Token-Smart Router is a beginner-track hybrid AI agent built for the AMD Developer Hackathon Track 1 challenge: minimize Fireworks AI token usage without dropping answer accuracy. The app uses a lightweight React + Vite frontend and an Express backend that first classifies each incoming prompt with a fast, zero-cost local router. Simple formatting requests, short definitional questions, and list-style prompts are answered instantly by a local handler at zero token cost. Anything more complex — reasoning, planning, or open-ended generation — is routed to the Fireworks AI API via an OpenAI-compatible client, using a tiered model selection so cheaper models are tried before falling back to stronger ones. The goal is to demonstrate that meaningful token savings are possible with a simple, interpretable routing layer rather than always calling the largest available model. This submission also includes basic hardening on the API layer (restricted CORS, request validation, and rate limiting) to keep the routing endpoint safe from abuse. Next steps include a standardized task harness for automated benchmark scoring and execution-based accuracy verification for math and code tasks.
13 Jul 2026