Stacklok Open-Sources Mecatl, a Cloud-Native Harness for AI Agents

A single climbing harness suspended from a softly glowing cloud-shaped anchor, representing a distributed AI agent runtime.

Stacklok has open sourced Mecatl, a cloud-native harness designed to run AI agent loops as distributed services rather than as processes tied to one developer’s desktop. The project targets organizations that need to operate many sessions, control tool access and recover work when a worker fails.

Separating the agent loop

Mecatl’s core engine handles reasoning, tool dispatch, permissions, hooks and event emission. Clients and supporting infrastructure connect through explicit interfaces instead of being embedded in the same long-lived process. The project currently describes a terminal client, gRPC and HTTP/SSE APIs, and a TypeScript SDK, alongside execution environments, model providers, session storage and tool catalogs.

Durability with limits

In a Kubernetes deployment, the engine can be replaced or upgraded while durable sessions remain available. Session state and event history use durable storage with single-writer coordination, allowing a replacement worker to resume from the last persisted turn boundary after a failure. Mecatl does not resume an operation that was in flight, and work after the last successful save can be lost, so the design provides turn-level durability rather than a distributed transaction.

Tools and access control

The architecture replaces the unrestricted shell commonly available to desktop harnesses with an explicit catalog of purpose-built tools, skills and application integrations. Permission, audit and execution-environment boundaries are intended to govern what a hosted agent can call. Because clients do not own session state, credentials or the filesystem, the same runtime can serve terminal users, remote applications and other interfaces.

Open design questions

The project is early, and several of its more ambitious ideas remain design proposals rather than shipped commitments. Stacklok is exploring a SPIFFE trust domain and delegation chain for agent identity, direct tool-to-service data paths that avoid sending unnecessary data through a model context window, and signed, attributable context packages with supply-chain-style provenance. The source says the terminal interface still has rough edges, while deployment and feature documentation distinguishes current behavior from proposed designs.

AI-generated editorial illustration; not a documentary photograph.

Source: The case for a cloud native agent harness

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *