Context Gateway
Compress agent context before it hits the LLM
Details
- External ID
- 47367526
- Source
- HN
- Company
- —
- Product
- Context Gateway
- Website domain
- github.com
- Launched
- March 13, 2026
- Cohort
- —
- Upvotes
- 97
- Upvotes percentile
- 0.9083640836408364
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
We built an open-source proxy that sits between coding agents (Claude Code, OpenClaw, etc.) and the LLM, compressing tool outputs before they enter the context window.Demo: https://www.youtube.com/watch?v=-vFZ6MPrwjw#t=9s.Motivation: Agents are terrible at managing context. A single file read or grep can dump thousands of tokens into the window, most of it noise. This isn't just expensive — it actively degrades quality. Long-context benchmarks consistently show steep accuracy drops as context grows (OpenAI's GPT-5.4 eval goes from 97.2% at 32k to 36.6% at 1M https://openai.com/index/introducing-gpt-5-4/).Our solution uses small language models (SLMs): we look at model internals and train classifiers to detect which parts of the context carry the most signal. When a tool returns output, we compress it conditioned on the intent of the tool call—so if the agent called grep looking for error handling patterns, the SLM keeps the relevant matches and strips the rest.If the model later needs something we removed, it calls expand() to fetch the original output. We also do background compaction at 85% window capacity and lazy-load tool descriptions so the model only sees tools relevant to the current step.The proxy also gives you spending caps, a dashboard for tracking running and past sessions, and Slack pings when an agent is sitting there waiting on you.Repo is here: https://github.com/Compresr-ai/Context-Gateway. You can try it with: curl -fsSL https://compresr.ai/api/install | sh Happy to go deep on any of it: the compression model, how the lazy tool loading works, or anything else about the gateway. Try it out and let us know how you like it!
Enrichment
- Theme
- AI agent frameworks and developer tools
- Vertical
- Horizontal
- Function
- Model & infra
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Commercial product
- Normalized one-liner
- context compression for llm agents
- Manually corrected
- False
Could you build this?
Yes It is an HTTP proxy server that intercepts JSON payloads, applies heuristics or text truncation/summarization to tool output fields, and forwards requests to an LLM provider.
Discussion
20 comments analyzed.
Competitors mentioned: std_slop (local SLM approach), Swival (context management), Anthropic's auto-compact, Local SLMs (~1B range)
Concerns raised: Security risk: compression may interleave adversarial/untrusted content with system instructions before injection detection, Unclear differentiation from Anthropic's auto-compact feature, Product stickiness uncertain as compression may become embedded feature in models/frameworks, Context rot/aggregation challenges not fully solved; benchmark is literal matching task, Viability questioned with rapidly changing AI landscape and upcoming model updates
Feature requests: Demonstrate compression differs from summarization with concrete examples, Provide before/after token usage comparisons vs. auto-compact, Support scan-then-compress pipeline for untrusted external content, Agent batching and interoperability for better token/session utilization
Competitors
Other products that read as similar to this one — 212 launches clear the similarity bar, closest 8 shown.
Attention rank: #27 of 213 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 127 days after the earliest competitor.
- Context-compact · hn · 2026-03-07 · 6 upvotes · similarity 0.56
- Deepcon · hn · 2025-11-06 · 7 upvotes · similarity 0.48
- A Context Registry for AI coding agents · hn · 2026-09-03 · 9 upvotes · similarity 0.48
- OpenSkills · hn · 2026-01-22 · 9 upvotes · similarity 0.48
- Context Surgeon · hn · 2026-04-13 · 5 upvotes · similarity 0.47
- Morph Reflexes · hn · 2026-06-30 · 20 upvotes · similarity 0.46
- ContextPool · ph · 2026-04-13 · 179 upvotes · similarity 0.45
- CodeRLM · hn · 2026-02-11 · 81 upvotes · similarity 0.45
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a model & infra tool for Fintech yet.