stacklok/mecatl

Open source agent harness, built from the ground up for cloud-native production workloads on infrastructure you control. Run the same provider-agnostic loop locally, remotely, or on Kubernetes, with durable state, permissions, and gRPC/HTTP-SSE APIs.

What it solves

Mecatl addresses the challenge of running AI agents as reliable, production-grade workloads. Traditional agent setups often tightly couple the user interface, execution logic, and AI models into a single, rigid system. Mecatl decouples these components, allowing developers to maintain a consistent agent "loop" while swapping out model providers, infrastructure, and clients to fit their specific operational needs.

How it works

At its core, Mecatl provides an agent runtime that manages tool dispatch, permissions, event logging, and session state. Because it uses explicit interfaces, the engine remains independent of the underlying infrastructure. It supports durable sessions by offloading state to external stores (like Redis), enabling agents to recover work after process restarts or scale across Kubernetes replicas. It also includes security features like audit trails, permission-based tool access, and optional isolated microVM environments for running code safely.

Who it’s for

This project is for developers and infrastructure engineers who need to deploy AI agents in production environments where reliability, auditability, and infrastructure control are critical. It is designed for those who want to build or manage agentic systems that can scale, survive infrastructure failures, and integrate with existing enterprise security and deployment workflows.

Highlights

  • Cloud-Native Design: Built to run on Kubernetes with support for durable state, session leases, and pod-drain handling.
  • Modular Architecture: Decouples the agent loop from model providers, state stores, and UI clients, allowing for flexible, vendor-neutral deployments.
  • Security-First Execution: Includes deny-dominant permissions, secret-scrubbed environments, and optional local microVM isolation for running untrusted code.
  • Developer Tooling: Provides a terminal client (mecatui), a TypeScript SDK, and gRPC/HTTP integration for connecting custom applications.
  • Auditability: Maintains an append-only event log and attribution records for every agent action.

Related

  • Project
  • Project
  • Project
  • Project