TGViewer
BenFeed BenFeed @benfeed · 89 subscribers
Post #670 5
‏headroomlabs-ai/headroom
‏ابزار فشرده‌سازی context قبل از رسیدن به LLM

‏خروجی ابزارها، لاگ‌ها، فایل‌ها و RAG chunk‌ها را قبل از ارسال به LLM فشرده می‌کند. برای coding agent‌ها ۲۰٪ و برای JSON تا ۶۰ تا ۹۵٪ token کمتر مصرف می‌شود — با همان کیفیت پاسخ. به‌صورت library، proxy و MCP server در دسترس است.

‏نظر هوش مصنوعی — ⭐ ۷/۱۰
‏🎯 چرا مهمه: هزینه‌ی inference و محدودیت context window دو دردسر جدی در ساختن agent‌های عملیاتی‌اند؛ این ابزار بدون تغییر در معماری، مستقیم روی هر دو اثر می‌گذارد.
‏💡 نکته: کاهش ۶۰ تا ۹۵ درصدیِ token در JSON یعنی بخش بزرگی از context بلوعت می‌شد که اطلاعات واقعی نبود — این ابزار آن را می‌تراشد.
‏👥 برای کی: توسعه‌دهنده‌هایی که روی LLM agent، RAG pipeline یا کاهش هزینه‌ی API کار می‌کنند.

‏🔗 https://github.com/headroomlabs-ai/headroom
‏#backend #ai #LLM

‏@BenFeed
GitHub GitHub - headroomlabs-ai/headroom: Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens… Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server. - headrooml...
More from @benfeed
  1. Oct 16, 2026‏Pg_vectorsearch: An index that is faster than pgvector's IVFFlat and HNSW ‏یک ind…
  2. Oct 16, 2026‏Show HN: Building an LLM from Scratch in TypeScript ‏ساختن یک LLM از صفر با TypeS…
  3. Oct 16, 2026‏Linus Torvalds's first LLM-assisted patch series ‏اولین مجموعه patch لینوس توروال…
  4. Oct 16, 2026‏I Deleted 168,000 Lines of Comments. My AI Agent Didn't Notice ‏۱۶۸,۰۰۰ خط کامنت…
  5. Oct 16, 2026‏Prompt injection in HTTP headers: what 217M web responses show ‏تزریق prompt در H…
  6. Oct 16, 2026‏Israeli firm's digital ads enabling installation of 'zero-click' spyware ‏تبلیغات…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →