FireCascade Agent

Created by team Ascended on July 06, 2026
Hybrid Token-Efficient Routing Agent

This project is a Dockerized general-purpose AI agent built for Track 1 of the AMD Developer Hackathon: ACT II. It reads batches of natural language and coding tasks from /input/tasks.json and writes structured answers to /output/results.json, handling all eight required capability categories factual knowledge, mathematical reasoning, sentiment classification, text summarization, named entity recognition, code debugging, logical/deductive reasoning, and code generation. The agent's core design goal is token efficiency without sacrificing accuracy. Each incoming task is classified into its category using a fast, dependency-free heuristic classifier. Easy categories (factual knowledge, sentiment, summarization, NER) are first attempted using the cheapest capable model from the allowed Fireworks model set, escalating to a stronger model only on validation failure. Harder categories that reliably require more reasoning power mathematical reasoning, logical/deductive reasoning, code debugging, and code generation are routed directly to the most capable allowed model for that task type, avoiding wasted attempts on weaker models. All remote inference is routed exclusively through the harness-provided FIREWORKS_BASE_URL using models read dynamically from the ALLOWED_MODELS environment variable at runtime no model IDs or credentials are hardcoded. The agent includes per-category output validators (JSON schema checks for entity extraction, label-set checks for sentiment, length constraints for summarization, syntax checks for code), resilient error handling with automatic retries on transient API failures, and safeguards to guarantee every task receives a valid answer even under network issues, ensuring the container always exits cleanly with valid JSON output. The container is built for linux/amd64, stays well under the 10GB image size limit, starts in under 60 seconds, and completes each task well within the 30-second per-task limit and 10-minute total batch limit.

Category tags: