Show HN: Neon and Mubit: an agent that cuts its own frontier-model tokens by 73%...
Show HN @show
Show HN: Neon and Mubit: an agent that cuts its own frontier-model tokens by 73% neon.com · 3 points · 0 comments · HN thread
TL;DR Mubit and Neon published a template in which an agent on Neon Functions and Lakebase Postgres routes its model calls through Mubit to Neon AI Gateway. Mubit moves routine steps to a small tuned model, keeps gpt-5.5 for SQL, and stores verified lessons; on a 20-question CL-bench demo the agent used 73% fewer gpt-5.5 input tokens and answered 40% faster at roughly the same accuracy (65% vs 60%). The thread has no comments yet, so there is no discussion to summarize.
- Mubit is middleware: a one-line endpoint change routes an agent's model calls through it to Neon AI Gateway, with nothing extra to host.
- Mubit trains a small open-weight model on a task's traffic once it has at least 25 good replies, and promotes it only after an exam and staged shadow and canary rollout.
- In the demo, gpt-5.5 still writes all SQL because tuned models matched it only 8 to 10% of the time on SQL; open models of 4B to 32B solved at most 30% of questions versus 60% for gpt-5.5.
- Verified runs produce up to three lessons (schema mapping, verified SQL, pitfalls) tied to a schema version, so outdated notes are set aside after a migration.
- Reported results: gpt-5.5 input tokens per question fell from 21.7k to 5.9k with the full setup; accuracy on the changed schema rose from 7 to 14 of 30 runs with lessons.
- The template uses Neon branches to run the same data under an old and a new schema side by side, and a Function Trigger resends queued lessons every 15 minutes.
Discussion No comments have been posted yet, so the thread is empty and there is no discussion or mood to report.
#AIAgents #Neon #Postgres #LLMCost #ModelDistillation #ShowHN