Я создал граф маршрутизации инструментов для агентов на HydraDB — что сработало, что сломалось и что я исправил
DEV · 15.11.2026 · 23:22
Агент тратил 27,000 токенов на чтение определений инструментов перед началом работы. Обычные решения не срабатывают, так как инструменты работают в цепочках, и для выполнения задачи…
Оригинал
I built a tool-routing graph for agents on HydraDB — what worked, what broke, and what I fixed
My agent was spending 27,000 tokens before it did any work. Not on the task — on reading tool definitions. Connect an agent to real tools and it preloads every definition into its context first. In my catalog of 329 tools, that is 27,000 tokens per run, spent before the job even begins. And the usual fix quietly fails. Similarity search finds lookalike tools — but tools don't work alone, they work in chains. To email a customer their invoice PDF, an agent needs six tools in the right order. On