Show HN: Ratel, give agents unlimited tools and skills without context bloat Giacomo and Roberto launched Ratel, an open-source library that dynamically loads only relevant tools and skills for AI agents per turn, reducing context bloat and token costs by up to 81% in production. The library supports keyword and semantic retrieval, is framework-agnostic, and is available for TypeScript and Python. Hi HN We're Giacomo and Roberto, authors of Ratel https://github.com/ratel-ai/ratel https://github.com/ratel-ai/ratel We used to help SaaS companies build agents on top of their products. Whenever we wanted to expand the agents’ complexity/scope, by adding more and more tools and instructions, we always run in the same issue: context bloat, with frequent hallucinations and sky high token bills. So we started constantly engineering the agents, dynamically loading tools, splitting them into subagents, inventing our own way to support skills And that's exactly when we started building Ratel: a library to let your agent keep its full catalog of tools and skills, but progressively disclosing only the few that actually matter for each turn. Now you can grow your agent's capabilities without breaking it or taking out a loan for it People are already using it in production, with a user cutting their token cost up to 81% in the first month without compromising the accuracy We support both keyword and semantic retrieval, all in-process and without any additional infra. Open source, framework-agnostic, exposes OpenTelemetry metrics, available for Typescript and Python Benchmarks: https://benchmark.ratel.sh https://benchmark.ratel.sh Some cool things we did with this: • One team's agent had up to 300+ tools dynamically loaded into context. Ratel cut their token cost 81% in month one. • Another team split into several subagents instead, one agent per task. It worked, until the swarm got slow and expensive. We fixed this with our skills. We're both here all day. Tear it apart, especially if you're an AI or SWE running agents in production Comments URL: https://news.ycombinator.com/item?id=48936491 https://news.ycombinator.com/item?id=48936491 Points: 4 Comments: 0