Repository

ratel-ai/ratel

Ratel

Context engineering for AI agents. ~80% fewer tokens. Fix tool overload. Skills and memory with in-process BM25 and semantic retrieval. Progressive Disclosure. No vector DB.

420stars

Open github.com

ratel-ai/ratel

Ratel

Context engineering library for AI agents that reduces token costs and tool overload by progressively disclosing relevant tools and skills.

Visit project

Show me a random project

First shared
Jul 16, 2026
HN activity
2320

Show HN@jack1689Jul 16, 2026

Show HN: Ratel, give agents unlimited tools and skills without context bloat

Hi HN! We're Giacomo and Roberto, authors of 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 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

Community

Hacker News discussion

Loading the thread…