TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: archgw: open-source, intelligent proxy for AI agents, built on Envoy

20 点作者 adilhafeez6 个月前
Hi HN! This is Adil, Salman, Co and Shuguang and we&#x27;re excited to introduce archgw [1], an open source intelligent proxy for agents built on Envoy [2]. Arch moves the critical but crufty work around safety, observability, and routing of prompts outside business logic. Arch is a uniquely intelligent infrastructure primitive, engineered with purpose-built fast LLMs [3] for tasks like intent detection over multi-turn, parameter identification and extraction, triggering single&#x2F;multiple function calls, and offers convenience features to auto dispatch LLM calls for summarization based on data from your APIs via system prompts configured in archgw.<p>Today, the approach to build a smart production-ready agent is weaving together a large set of mono-functional opinionated libraries, adding extra layers like LLM-based preprocessing to determine things like relevance and safety of the user&#x27;s prompt (e.g. applying governance and guardrails). Once past that stage, developers must extract relevant information from the user prompt to determine intent, extract parameters as necessary, package relevant tools calls to an LLM to trigger a backend API to execute particular domain-specific task. etc. After all that is done then only are developers ready to trigger an LLM call for summarization and must manage upstream error handling and retry logic themselves. Not to mention, if they want to experiment with multiple LLMs or move between LLM versions, they have to write crufty undifferentiated code. This entire experience is slow, error prone, cumbersome, and not specifically unique.<p>Prior to building archgw, the team spent time building Envoy [2] at Lyft, API Gateway at AWS, specialized search and intent models at Microsoft Research and worked on safety at Meta. archgw was born out of the belief that several rules based mono-functional tools should be converged into a multi-functional infrastructure primitive designed for prompts and agents. We built archgw on the highly popular, battle-tested open source proxy Envoy and re-imagined it for prompts and agents. For this we had to build blazing fast LLMs [3] that can handle crufty, ahead-in-the-request-path type of work in handling and processing prompts that are sent to an agent, so that developers can focus on what matters most: building fast personalized agents without the unnecessary prompt engineering and systems integration work needed to get there.<p>Here are some additional details about the open source project. arghw is written in rust, and the request path has three main parts:<p>* Listener subsystem which handles downstream (ingress) and upstream (egress) request processing.<p>* Prompt handler subsystem. This is where archgw makes decisions on the safety of the incoming request via its prompt_guard primitive and identifies where to forward the conversation to via its prompt_target primitive.<p>* Model serving subsystem is the interface that hosts all the lightweight LLMs engineered in archgw and offers a framework for things like hallucination detection of our these models<p>We loved building this open source project, and our belief is that this infra primitive would help developers build faster, safer and more personalized agents without all the manual prompt engineering and systems integration work needed to get there. We hope to invite other developers to use and improve Arch. Please give it a shot and leave feedback here, or at our discord channel [4]<p>Also here is a quick demo of the project in action [5]. You can check out our public docs here at [6]. Our models are also available here [7].<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;katanemo&#x2F;archgw">https:&#x2F;&#x2F;github.com&#x2F;katanemo&#x2F;archgw</a><p>[2] <a href="https:&#x2F;&#x2F;www.envoyproxy.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.envoyproxy.io&#x2F;</a><p>[3] <a href="https:&#x2F;&#x2F;huggingface.co&#x2F;collections&#x2F;katanemo&#x2F;arch-function-66f209a693ea8df14317ad68" rel="nofollow">https:&#x2F;&#x2F;huggingface.co&#x2F;collections&#x2F;katanemo&#x2F;arch-function-66...</a><p>[4] <a href="https:&#x2F;&#x2F;discord.com&#x2F;channels&#x2F;1292630766827737088&#x2F;1292630768283029638" rel="nofollow">https:&#x2F;&#x2F;discord.com&#x2F;channels&#x2F;1292630766827737088&#x2F;12926307682...</a><p>[5] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I4Lbhr-NNXk" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I4Lbhr-NNXk</a><p>[6] <a href="https:&#x2F;&#x2F;docs.archgw.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.archgw.com&#x2F;</a><p>[7] <a href="https:&#x2F;&#x2F;huggingface.co&#x2F;katanemo" rel="nofollow">https:&#x2F;&#x2F;huggingface.co&#x2F;katanemo</a>

7 条评论

mudassaralam6 个月前
why didn’t you build your own gateway from ground up? especially when rust runtime in envoy is not production ready yet. From envoyproxy,<p>… This extension is functional but has not had substantial production burn time, use only with this caveat.<p>This extension has an unknown security posture and should only be used in deployments where both the downstream and upstream are trusted.
评论 #42188397 未加载
naveed1746 个月前
For complex agent scenarios where there might be COT reasoning needed how does archgw work in that scenario? BTW nice detailed post. And congratulations on the launch.
评论 #42189001 未加载
herewhere6 个月前
I am interested in knowing how the arch would run? Is it a library that I need to add in my code to make it work? Or do I need to deploy some sort of service in my infrastructure?
评论 #42189763 未加载
fahimulhaq6 个月前
Hey Adil, Thanks for sharing and congratulations on launch.<p>Can I just use arch for routing between LLMs? And what LLMs do you support? And what about key management? Do I manage access keys myself?
评论 #42187380 未加载
mikram6 个月前
Congrats Adil! Interested idea with lot of potential.<p>Do you have to use envoyproxy to use archgw? Can archgw be used for LLM routing without using envoyproxy?
评论 #42187472 未加载
Nomi216 个月前
This is honestly quite a detailed and thoughtfully put together post. I do have some questions and would love to hear your thoughts on those. First off, can I use just the model itself? Do you have models hosted somewhere or they run locally? If they run locally what are the system requirements? Can I build RAG based applications on arch? And how do you do intent detection in multi-turn dialogue? How does parameter gathering work, is the model capable of conversing with the user to gather parameters?
评论 #42188057 未加载
评论 #42187951 未加载
honorable_judge6 个月前
With all the focus on language specific frameworks - this out of process architecture choice is an interesting one. On one hand, it helps you side step the &quot;is this functionality available on js, java, etc&quot; question, and on the other it means its not as easy as `import archgw` in python. Good luck though, feels like an interesting project