HNHacker News
TopNewBestAskShowJobs

thebeas

2 karma · joined March 13, 2026

submissionscomments
thebeas··on Show HN: Context Gateway – Compress agent context before it hits the LLM
The "infinite context soon" concern comes up a lot — but even at 1M+ tokens, agents still hit limits on long enough tasks, and cost scales linearly with context size.

The compression models are the product, not the proxy. The gateway is open-source because it's the distribution layer. Anthropic, Codex, and others are iterating on this too — but each only for their own agent. We're fully agent-agnostic and solely focused on compression quality, which is itself a hard problem that needs dedicated iteration.

Try it out and let us know how to make it better!

thebeas··on Show HN: Context Gateway – Compress agent context before it hits the LLM
We provide the model with a tool, we call expand() that allows the model to get access to more context if needed by using it.

We state this directly appended into the outputs so the model knows exactly where the lines were removed from.

thebeas··on Show HN: Context Gateway – Compress agent context before it hits the LLM
We do both:

We compress tool outputs at each step, so the cache isn't broken during the run. Once we hit the 85% context-window limit, we preemptively trigger a summarization step and load that when the context-window fills up.

thebeas··on Show HN: Context Gateway – Compress agent context before it hits the LLM
That's why give the chance to the model to call expand() in case if it needs more context. We know it's counterintuitive, so we will add the benchmarks to the repo soon.

Given our observations, the performance depends on the task and the model itself, most visible on long-running tasks