Stop Sending 93K Tokens of Schema to Your LLM Agent!
Dev.to AI
•
Generative AI
I've watched agents query information_schema over and over, spending 4-6 turns just to figure out which tables exist, what columns they have, and how they join. On a 500-table database, the full DDL is around 93,000 tokens. Most questions touch 3-5 tables. On a complex multi-table join, I measured a 64% token reduction by just giving the agent the schema upfront. That's what dbdense does. I built dbdense to fix this. What it does dbdense is a three-step offline pipeline: extract, compile, serve.