
Why Coding Agents Need a Cloud-Native Harness — and What Mecatl Does About It
Cloud Platform EngineeringThe coding agent ecosystem has a monolith problem. Most agent harnesses — the infrastructure that runs the agent loop, manages tools, handles sandboxing, and talks to the model — are desktop applications. They bundle the UI, the agent reasoning loop, the execution sandbox, and the credential management into a single process running on a developer’s machine.
This works for a single developer. It breaks when an organization wants to run hundreds of sessions, apply governance policies uniformly, or survive infrastructure failures without losing work. Craig McLuckie from Stacklok makes the case in a CNCF blog post: the right response to this problem is cloud-native architecture, and they’ve built an open-source implementation called Mecatl.
The Monolith Problem in Agent Infrastructure
Desktop harnesses couple several things that should be independent:
- The UI (terminal, web interface, IDE extension)
- The agent loop (reasoning, tool dispatch, model calls, permissions)
- The execution environment (sandbox where code actually runs)
- Tool catalogs (what tools the agent can access)
- Credentials and secrets (how the agent authenticates to external systems)
When all of these live in one process, organizational deployment is structurally difficult. You can’t apply a governance policy to tool access without modifying each developer’s local setup. You can’t audit agent actions centrally without instrumenting individual machines. You can’t support a web UI, an API integration, and a Slack interface sharing the same underlying agent runtime. As McLuckie notes: “A monolith in a container is still a monolith.”
Mecatl’s Architecture
Mecatl separates the agent engine from everything it connects to. The engine — reasoning, tool dispatch, permissions — runs as a service. Clients (terminal, API, web UI, Slack) connect to it. Execution environments run separately and are assigned to sessions. Tool catalogs are managed externally and loaded at session initialization.
This decomposition enables several capabilities that monolithic harnesses can’t provide:
Distributed deployment: The engine runs identically in a terminal, as a microservice, or on Kubernetes. You don’t rewrite the agent to change where it runs — the execution environment changes, not the agent loop.
Session durability: Agent state persists in external storage with turn-level recovery. A session interrupted by infrastructure failure resumes from the last committed turn rather than restarting. For long-running agentic tasks — a refactor that spans multiple conversations or a research process across sessions — this is the difference between reliable and fragile.
Governed tool ecosystems: Instead of agents with unrestricted shell access, Mecatl implements purpose-built tools and integrations. The agent can call the tools that are registered to it; it can’t reach outside that catalog. This is the organizational control layer that lets platform teams define what agents are allowed to do before any developer-facing UX is built.
Multi-client support: The same agent runtime serves terminal sessions, API calls, and web UIs simultaneously. An agent managing a codebase can be interacted with through a developer’s terminal, a CI pipeline webhook, and a Slack integration — without running three different agent processes.
The Cloud-Native Framing
McLuckie positions Mecatl explicitly in the Kubernetes lineage: the same decomposition that turned monolithic web applications into scalable distributed services should apply to AI agent infrastructure. The analogy is apt — Kubernetes solved the “works on my machine, breaks at scale” problem for stateful services; Mecatl applies the same architectural pattern to agent loops.
The CNCF connection matters here beyond the publishing venue. Cloud-native infrastructure is defined by decomposed, portable, observable services with explicit APIs between components. Agent harnesses that follow this pattern are deployable, governable, and operable by platform teams rather than requiring per-developer setup and tribal knowledge.
What This Means for Platform Engineering Teams
The organizations that will benefit first from cloud-native agent harnesses are the ones that have already deployed coding agents at scale and hit the governance ceiling: multiple teams, each running their own local harness, with no central visibility into tool usage, no ability to update policies without per-machine changes, and no audit trail for the organization’s AI usage patterns.
For those teams, Mecatl (or the architectural pattern it implements) is the next step: separate the engine, define the tool catalog centrally, route all agent activity through an observable service layer. The developer experience doesn’t have to change — the terminal and IDE integrations work the same way — but the organizational infrastructure behind them is controllable.
For platform teams earlier in the maturity curve: this is the architecture to design toward. Running local harnesses while you’re small is fine; the technical debt comes when you scale without decomposing.
The So What
The cloud-native agent harness pattern is where the coding agent ecosystem is heading — not because it’s conceptually elegant, but because the operational requirements of enterprise deployment (governance, auditability, multi-client support, reliability) can’t be met by processes running on developer laptops. Mecatl is an early open-source implementation of that pattern from people who built Kubernetes-era platform infrastructure.
If you’re a platform engineering team deciding whether to invest in agent infrastructure now or wait for the market to consolidate: the architectural decisions you make today (monolith vs. decomposed, local vs. service-based) are the ones you’ll be undoing in 18 months. The pattern Mecatl implements is the one to build toward.
Source: CNCF Blog
Content created with AI assistance and reviewed for accuracy.
Join the conversation
Stack Insiders is our free community for readers who want to go deeper — share resources, ask questions, and connect with others across every vertical we cover.
Join Stack Insiders →