Latent Space ★ 88 4 min

Can a Cloud-Native Harness Make Agents Reliable Beyond the Desktop?

🔗 https://www.latent.space/p/stacklok

📌 Kubernetes 創辦人的新賭注:Agent Harness 能雲端化嗎?

TL;DR:Stacklok 由兩位 Kubernetes 創辦人打造開源「雲端原生」agent harness「Mecatl」,想把 coding agent 的執行環境從桌面搬進企業雲端治理。

Claude Code 一開始是 CLI 工具,Codex、Copilot 也都從桌面應用起家。但當企業想要「管理」而非「使用」agent 時,筆電上的那個行程反而成了瓶頸——這正是 Stacklok 這次訪談想回答的問題。

🤔 當「開著筆電」變成笑話:coding agent 的桌面困境

Latent Space 這篇訪談指出,多數 coding agent 的基本架構是「LLM 在迴圈中呼叫工具,同時攜帶上下文」,這種架構最容易在本機實作,因此早期的 harness 幾乎都長在桌面上。但 OpenAI 與 Anthropic 自 2025 年起都試圖把 harness 搬進雲端,過程中遇到 session 可靠性、工具執行隔離、上下文保存等挑戰。Stacklok 的創辦人 Craig McLuckie 與 Joe Beda(兩人皆為 Kubernetes 的共同創造者)認為,這與 2010 年代初期的容器編排困境如出一轍,而 Kubernetes 正是那個年代誕生的答案。

🧩 把迴圈、工具呼叫、狀態儲存通通拆開

Mecatl 是 Stacklok 今年 6 月開源的專案,名稱取自阿茲特克語「繩索」之意。Beda 認為,現有的桌面優先 harness 即便具備外掛性,架構上仍是「一個行程,或一組緊密耦合的行程」,就算用 VM、容器或 sandbox 做「搬移上雲」,agent 的生命週期管理與「quiesce」(安全暫停等待人類輸入)仍會出問題。

Mecatl 的做法是從頭重新設計:把 agent 迴圈與 client、model provider、state store、執行環境各自解耦。迴圈本身是「我們知道怎麼在雲端跑好的應用」,而 bash、工具呼叫這類敏感操作則被獨立出來;session 管理與記憶體也不再是本機的 JSONL 檔案,而是可被納管的系統。McLuckie 進一步提出的問題是:「為什麼 agent 迴圈要跟工具呼叫子系統如此緊密耦合?為什麼 agent identity 要套用人類身分系統的框架來思考?」

💡 K8s 的老路:用開源降低對大廠的依賴

Stacklok 在轉向 agent 基礎設施前,已推出開源的 ToolHive,用來在 Docker 容器中管理 MCP server,後續擴展為以 Kubernetes 為基礎的 gateway、registry 與 operator。McLuckie 直言,這整套思路「跟我們做 Kubernetes 時差不多」——目標是讓企業能在不綁定特定雲端或模型供應商的前提下運行 agent workload,降低對前沿實驗室與超大規模雲端業者(如 Codex、Claude Code、GitHub Copilot)的依賴。

商業模式上,ToolHive 與 Mecatl 皆為開源且可獨立使用,Stacklok 的商業產品是橫跨兩者的「企業骨幹」(enterprise spine):統一的身分、授權、政策與稽核控制平面。目前他們也在建構尚未開源的 AI Gateway,聚焦存取控制、預算與供應商路由,而非像某些同業那樣依任務動態選模型——McLuckie 認為語意路由更適合放在擁有完整上下文的 harness 內處理。主要客群為銀行、半導體公司、電信商等受監管產業。

⚠️ 故事夠精彩,但目前還沒看到效能數字

這篇報導完整呈現了 Stacklok 的架構哲學與商業邏輯,但目前未提供任何 benchmark、延遲、可靠性或實際企業部署規模的數據,Mecatl 本身也才剛開源不到半年,實際成效仍待觀察。

🎯 實務啟示

如果你的團隊已經用 Kubernetes 管理基礎設施,且正苦於桌面型 harness 難以集中治理、審計或跨團隊擴展,Mecatl 與 ToolHive 的解耦思路值得關注;但在導入前,建議先在小範圍驗證其 session 管理與 quiesce 機制是否真的比現有 VM/容器方案更穩定。

🔗 來源

#AgentHarness #CloudNative #Kubernetes #CodingAgents #Stacklok #MCP #AIInfrastructure #DevOps #OpenSource #EnterpriseAI

原始資料 Latent Space · 收集於 2026-10-07
來源原標題
Can a Cloud-Native Harness Make Agents Reliable Beyond the Desktop?
作者
Latent Space
原始標籤
blog
原始連結
https://www.latent.space/p/stacklok

摘要原文

At a high level, coding agents have a basic architecture: an LLM calls tools in a loop, while carrying forward the required context. Since that’s easiest to implement locally , many coding agents started out as terminal tools and then desktop apps (Claude Code famously began as a CLI tool). But as the open laptop meme illustrates, modern agent harnesses have frustrating limitations if they’re not able to be managed in the cloud . Since 2025, both OpenAI and Anthropic have been trying to shift their harnesses more into the cloud — but with varying levels of success. The challenges include keeping sessions reliable, isolating tool execution and preserving context. This sounds a lot like container orchestration in the early 2010s , from which emerged the open source Kubernetes in 2014. Kubernetes, developed by Google, became the dominant open source system for deploying and managing cloud applications at scale — it kickstarted the “cloud native” era of computing . Kubernetes uses control loops to keep applications running, recover from failures, and scale when needed. What if coding agents could be managed in the same way? That’s the bet that two Kubernetes creators, Craig McLuckie and Joe Beda , are making with Stacklok . Stacklok raised a $17.5 million Series A back in 2023 from Accel, Madrona and Bain Capital. Initially focused on software supply chain security , the company recently pivoted to Kubernetes-based agentic solutions . The most interesting product of Stacklok is Mecatl, a “cloud-native harness” begun in June as an open source project on GitHub . At first, I thought the name was pronounced “me-cattle” — a play-on-words referencing the ‘cattle vs. pets’ concept of Kubernetes, where you treat your servers, pods and clusters like cattle rather than pets. But no, the name is actually pronounced “MEH-kah-tl” and is an Aztec word meaning a cord or rope ! In any case, what does cloud-native mean in the context of a harness? It’s primarily about “moving the locus of value from the desktop to the cloud,” said McLuckie. He’s talking about “value” from an enterprise perspective — that the code and context are often derived from local environments. “That’s where the IP sits,” Beda chimed in. “And if you want to be able to actually bring that under management, it’s that much more difficult when it’s sitting on a desktop.” McLuckie added that a cloud native approach also allows Stacklok to ask some deeper questions about agentic coding. “Why is the agent loop so intricately coupled to the tool calling subsystems? Why is agent identity being reasoned about through the lens of human identity systems?” When it comes to open source agent harnesses, there are already well-regarded solutions — such as Pi , a “minimal agent harness” that projects like Flue have built on top of . We asked the Stacklok pair what makes their harness different? Beda didn’t mention Pi specifically, but he did say that in desktop-first harnesses, the loop, local execution and session state often begin inside the same process. “There are a ton of solutions in this space, but they’re all focused to essentially run on the desktop,” he said. “So even if they have pluggability, the architecture is still one process, or one set of tightly coupled processes, that are built to run on the desktop. ” But can’t enterprises use VMs, containers, or one of many different sandbox products to move their harness to the cloud? Beda says this “lift and shift” approach tends to create issues around the lifecycle of an agent or being able to quiesce it (safely pause it while it waits for human input). “Our thinking is, well, what if we rethought the harness from the ground up to actually run in the cloud?” One of the intriguing approaches of Mecatl is that it keeps the agent loop independent of the client, model provider, state store and execution environment . “This is an application that we know how to run in the cloud well,” said Beda, regarding the loop application. “What if we take that and we separate that out from the more sensitive operations , like tool calling and bash, and then also separate out things like session management and memory, so that these things are no longer stored as JSONL files sitting on disk, but can natively be put into manageable systems” A lot of you reading this will probably have very opinionated harnesses, customized for your own requirements. But Mecatl is designed to extend beyond a single-user, local harness into infrastructure that enterprises can operate centrally. Beda likened this to how enterprises manage email. “We think, in the future, interactions that you have with an agent while you’re working for an enterprise belong to that enterprise; and they’re going to want to manage that and govern that like they do email.” One of the main motivations of Stacklok is to help large enterprises lessen their dependency on frontier labs and hyperscalers , such as Codex, Claude Code and GitHub Copilot. This, suggested McLuckie, is similar to how Kubernetes helps companies reduce dependency on the big cloud providers. For McLuckie, the term “cloud native” came to represent a way to “run in a cloud that is decoupled from the specifics of the cloud provider. So a lot of what we’re trying to do [at Stacklok] is more or less what we did in the Kubernetes time.” After its pivot into agent infrastructure, Stacklok built ToolHive — an open-source platform for running and governing MCP servers. It initially began as a way to manage MCP servers running in Docker containers on the desktop. Then, said Beda, they expanded it into a “ Kubernetes-based gateway and other associated services — a registry and an operator helper for running and managing MCP servers and getting some of the input-output auth stuff right with those things.” The idea, as McLuckie put it, was to enable enterprises that already ran on Kubernetes to “start to bring agentic workloads into those environments .” Beda claims that many other agent tools were designed for individuals or small startup teams, which doesn’t fly for enterprise-scale companies. “We talk to larger organizations and they’re struggling with like, how do I take this thing that was built for a team of six people and deploy it for an engineering task force in the thousands or tens of thousands.” MCP was the first step. Next was building an LLM gateway , or “AI Gateway” as it’s called on the Stacklok’s website, to help companies control access and costs. “Most of our customers are banks, semiconductor companies, telcos…you know, people operating in relatively regulated industries,” McLuckie said. The AI Gateway is the one main product Stacklok hasn’t open sourced yet, but Beda says it’s “on our roadmap and we’re going to get there soon.” Unlike Glean’s solution , Stacklok’s AI Gateway does not currently choose a model based on the task. Instead, it focuses on access control, budgets, reporting and provider routing. “We prefer to see the semantic-routing model choice happening in an intelligent system that’s honed in the harness , because there’s just more context there,” McLuckie explained. Since both ToolHive (MCP platform) and Mecatl (the harness) are open source, what’s the business model for Stacklok? McLuckie replied that ToolHive and Mecatl are both intended to be independently useful, but that the company offers things like consistent identity, authorization, policy and auditing across the open source parts. “Our commercial product is the enterprise spine , the control plane that ties them all together,” he said. “The open source projects are relatively easy to get up and running for a small team,” Beda added. “But once you start scaling these things out to multiple clusters, multiple clouds, [...] all sorts of new problems crop up there. And that’s what we’re focused on solving.” Amazon introduced S3 and EC2 — the beginnings of the cloud era — in 2006 , but at first these products were mainly used by startups and individuals.

由 claude-code/sonnet 自動生成