云原生 harness 能否让智能体超越桌面端而可靠运行?
Latent Space 报道 Stacklok 推出云原生 harness Mecatl,由两位 Kubernetes 创始人打造,主张把智能体价值从桌面移向云端。
中文处理结果
从高层看,编码智能体有一个基本架构:LLM 在循环中调用工具,同时携带所需的上下文。由于这在本地最容易实现,许多编码智能体最初是终端工具,随后才成为桌面应用(Claude Code 就以 CLI 工具起家而闻名)。但正如“打开的笔记本电脑”梗所示,现代智能体 harness 若无法在云端管理,就存在令人沮丧的局限。
自 2025 年以来,OpenAI 和 Anthropic 都在尝试把各自的 harness 更多转向云端——但成功程度不一。挑战包括保持会话可靠、隔离工具执行以及保留上下文。
这听起来很像 2010 年代初的容器编排,2014 年开源 Kubernetes 正由此诞生。由 Google 开发的 Kubernetes 成为大规模部署和管理云应用的主导开源系统——它开启了计算的“云原生”时代。
Kubernetes 使用控制循环来保持应用运行、从故障中恢复并在需要时扩缩容。如果编码智能体也能以同样方式管理呢?
这正是两位 Kubernetes 创造者 Craig McLuckie 和 Joe Beda 在 Stacklok 所下的赌注。
Stacklok 架构;图示来自 Stacklok
Stacklok 曾在 2023 年从 Accel、Madrona 和 Bain Capital 获得 1750 万美元 A 轮融资。公司最初聚焦软件供应链安全,最近转向基于 Kubernetes 的智能体方案。
Mecatl:为云打造的 harness
Stacklok 最有趣的产品是 Mecatl,一个 6 月作为 GitHub 开源项目启动的“云原生 harness”。起初我以为这个名字读作“me-cattle”——一个呼应 Kubernetes“cattle vs. pets”概念的谐音梗,即把服务器、pod 和集群当作牛群而非宠物来对待。但并非如此,这个名字实际读作“MEH-kah-tl”,是阿兹特克语词,意为绳索或绳子!
无论如何,在 harness 语境下云原生意味着什么?
McLuckie 说,这主要是“把价值所在从桌面移到云端”。他谈的是企业视角的“价值”——代码和上下文往往源自本地环境。“知识产权就在那里,”Beda 插话道。“而如果你想真正把它纳入管理,当它待在桌面上时就困难得多。”
McLuckie 补充说,云原生方法还让 Stacklok 能就智能体编码提出一些更深层的问题。
“为什么智能体循环与工具调用子系统耦合得如此紧密?为什么智能体身份要通过人类身份系统的视角来推理?”
图示来自 Mecatl GitHub
在开源智能体 harness 方面,已有一些广受认可的方案——例如 Pi,一个“极简智能体 harness”,Flue 等项目在其之上构建。我们问 Stacklok 这两位,他们的 harness 有何不同?
原始正文
Can a Cloud-Native Harness Make Agents Reliable Beyond the Desktop?
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 architecture; diagram via 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.
Mecatl: a harness built for the cloud
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?”
Diagram via Mecatl GitHub
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.”
A Kubernetes deployment of Mecatl; via GitHub
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?”
Separating the agent loop from execution
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”
Mecatl architecture; diagram via the project GitHub
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.”
Decoupling AI agents from frontier labs
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.”
Diagram via project GitHub
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.”
Stacklok’s LLM gateway
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.
Stacklok’s “AI Gateway” a.k.a. LLM gateway
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.
The enterprise spine
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.
From a Stacklok survey of “520 leaders who are responsible for their organization’s use of large language models and/or AI agents.”
“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.”
The cloud native era for AI?
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. It took several years for enterprise solutions like Windows Azure to emerge, and then in 2014 Kubernetes arrived to manage containerized applications at scale.
We’re starting to see that same pattern play out with agentic technology. Enterprises don’t necessarily want to allow their employees to customize an open source harness, or even use frontier lab harnesses that run on their personal computers. Stacklok — built by two kings of cloud native — aims to solve those problems by bringing agent harnesses fully to the cloud.