# Mecatl > A cloud-native harness for agentic systems - [The open source, cloud-native harness](/index.md) ## colophon Brand tokens, typefaces, and design decisions for mecatl.dev - [Colophon](/colophon.md): Brand tokens, typefaces, and design decisions for mecatl.dev ## docs Find the right guide for using, deploying, or building with Mecatl. - [Mecatl](/docs.md): Find the right guide for using, deploying, or building with Mecatl. ### mecatui Use mecatui to run local or remote sessions, inspect tools, and manage approvals. - [Use Mecatl](/docs/mecatui.md): Use mecatui to run local or remote sessions, inspect tools, and manage approvals. - [Use learning and memory commands](/docs/mecatui/commands-and-memory.md): Use mecatui commands to review learning, reflections, dreams, and stored memory. - [Customize mecatui](/docs/mecatui/customization.md): Customize mecatui's client settings while keeping embedded server settings separate. - [Work with delegated agents](/docs/mecatui/delegated-agents.md): Delegate investigations, implementation, and reviews from mecatui. Describe the outcome, steer delegation when needed, and supervise the work. - [Run your first local session](/docs/mecatui/getting-started.md): Run mecatui in a project and use an embedded Mecatl server for your first session. - [Install mecatui](/docs/mecatui/installation.md): Install mecatui with Homebrew, Conda-forge, a verified release archive, or a source build. - [Keybindings](/docs/mecatui/keybindings.md): Use mecatui keyboard shortcuts to send prompts, navigate chats, and inspect activity. - [Connect to a remote deployment](/docs/mecatui/remote-servers.md): Connect mecatui to a Mecatl service using details from your operator. - [Manage sessions](/docs/mecatui/sessions.md): Resume, browse, inspect, fork, and maintain Mecatl sessions from mecatui. - [Status line customization](/docs/mecatui/status-line.md): Customize mecatui's local header and footer status surfaces with templates or a command. - [Themes](/docs/mecatui/themes.md): Choose and configure mecatui's built-in terminal themes for light or dark displays. - [Troubleshoot mecatui](/docs/mecatui/troubleshooting.md): Diagnose mecatui startup, connection, authentication, TLS, and session problems. - [Work in the TUI](/docs/mecatui/using-the-tui.md): Work in the mecatui terminal interface, steer runs, review tools, and approve actions. ### building Embed the Go engine or integrate applications and CI through Mecatl APIs. - [Build with Mecatl](/docs/building.md): Embed the Go engine or integrate applications and CI through Mecatl APIs. - [API stability](/docs/building/api-stability.md): Understand the Go engine compatibility promise and plan dependency upgrades. - [CI integration](/docs/building/ci.md): Run a bounded agent task in CI and publish its patch and result safely. - [Embed the engine directly](/docs/building/embed-engine.md): Supply lifecycle, persistence, and adapters for an in-process Go agent. - [Extension points and ports](/docs/building/extension-points.md): Replace Mecatl providers, storage, policies, and other integrations through Go interfaces. - [Agent definitions](/docs/building/extension-points/agent-definitions.md): Define named specialists or supply them from a custom AgentDefSource. - [HookRunner](/docs/building/extension-points/hook-runner.md): Observe, transform, approve, or block agent lifecycle events with HookRunner. - [LLMProvider](/docs/building/extension-points/llm-provider.md): Implement LLMProvider to connect the Mecatl agent loop to a model backend. - [PermissionPolicy](/docs/building/extension-points/permission-policy.md): Implement custom authorization and approval decisions for Mecatl tool calls. - [Project rules](/docs/building/extension-points/project-rules.md): Supply trusted, optionally path-scoped project guidance through RulesSource. - [SessionLease](/docs/building/extension-points/session-lease.md): Prevent concurrent session writers with a cross-process SessionLease. - [SessionStore and EventLog](/docs/building/extension-points/session-store.md): Use built-in Go stores for session snapshots and durable event logs, or implement the persistence ports. - [Tool catalog](/docs/building/extension-points/tool-catalog.md): Add custom tools and instruction bundles to the Mecatl agent loop. - [See it in 60 seconds](/docs/building/getting-started/demo.md): Run the offline Mecatl demo to see tools, approvals, teams, and subagents in action. - [Build your first agent](/docs/building/getting-started/first-agent.md): Install the importable Mecatl engine and build a working Go agent. - [Use the TypeScript SDK](/docs/building/getting-started/typescript-sdk.md): Run your first Mecatl prompt from TypeScript against a private offline daemon. - [Build with the Go engine](/docs/building/go.md): Progress from a first Go agent to a production embedding and custom adapters. - [Connect with gRPC or HTTP](/docs/building/grpc-http.md): Choose a Mecatl client transport and find its API contracts. - [Host a private daemon from an application](/docs/building/local-daemon.md): Own mecated startup, readiness, and shutdown from an editor or wrapper. - [TypeScript SDK](/docs/building/typescript-sdk.md): Build Node.js, Bun, Deno, and browser applications that create and control Mecatl sessions. - [Register callback tools](/docs/building/typescript-sdk/callback-tools.md): Expose local Node.js or Bun handlers as tools on an SDK-owned Mecatl daemon. - [Connect an application](/docs/building/typescript-sdk/connect.md): Connect Node.js, Bun, Deno, or browser applications to an operator-owned Mecatl daemon. - [Resume durable activity](/docs/building/typescript-sdk/durable-activity.md): Replay and follow Mecatl run or session activity from an application-owned cursor. - [Run a private local daemon](/docs/building/typescript-sdk/local-daemon.md): Start and dispose a private Mecatl daemon from a Node.js, Bun, or Deno application. - [Enroll MCP workspace services](/docs/building/typescript-sdk/mcp-connectors.md): Inspect MCP connector availability and enroll workspace services from a TypeScript application. - [Handle permissions and plans](/docs/building/typescript-sdk/permissions-and-plans.md): Resolve Mecatl permission asks and continue approved plans from TypeScript. - [Inspect a server before creating a session](/docs/building/typescript-sdk/server-discovery.md): Check Mecatl compatibility and safe server identity before creating a session. - [Work with sessions and runs](/docs/building/typescript-sdk/sessions-and-runs.md): Inspect and manage Mecatl sessions, consume runs, retry failed model steps, send controls, and attach media. - [Engine, session, run, and environment](/docs/building/what-you-get/engine-and-session.md): Understand the Go objects that configure, persist, and execute an agent. ### features Understand Mecatl capabilities, shared behavior, and deployment availability. - [Capabilities](/docs/features.md): Understand Mecatl capabilities, shared behavior, and deployment availability. - [The agent loop](/docs/features/agent-loop.md): Understand how the Mecatl engine runs turns, dispatches tools, records events, and finishes sessions. - [Ask Mecatl about itself](/docs/features/ask-about-mecatl.md): Ask a running agent how Mecatl works and get an answer grounded in this documentation. - [Caller identity and OIDC](/docs/features/caller-identity.md): Configure authenticated caller identity and ownership boundaries for Mecatl sessions. - [Capability and deployment matrix](/docs/features/capability-matrix.md): Choose the Mecatl deployment that provides the capabilities you need. - [Choose models and providers](/docs/features/choose-models.md): Select the provider, model, and reasoning effort for a Mecatl session. - [Context windows](/docs/features/context-windows.md): Control how Mecatl resolves model context windows and compacts long sessions. - [Dreaming and memory consolidation](/docs/features/dreaming.md): Consolidate project memory and the user model with bounded, reviewed operations. - [Execution environments](/docs/features/execution-environments.md): Keep file operations, shell commands, forks, and resumed sessions in the correct workspace. - [Hook system](/docs/features/hooks.md): Understand hook phases and how hooks observe, transform, or block agent actions. - [Learning](/docs/features/learning.md): Configure evidence-backed learning, reflection, and learned-skill admission. - [MCP client](/docs/features/mcp-client.md): Connect Mecatl to streaming-HTTP MCP servers and expose their tools to the agent. - [MCP OAuth and credentials](/docs/features/mcp-oauth-and-credentials.md): Configure MCP OAuth profiles and protect the credentials they use. - [Memory and user model](/docs/features/memory.md): Retain project knowledge and operator preferences across Mecatl sessions. - [Multimodal input](/docs/features/multimodal-input.md): Send supported images and content blocks to models through Mecatl clients. - [Define named agents](/docs/features/named-agents.md): Define specialist agents with their own instructions, tools, and model settings. - [Permissions and posture](/docs/features/permissions-and-posture.md): Control approvals, project trust, guardrails, and autonomous Mecatl operation. - [Project instructions and rules](/docs/features/project-instructions-and-rules.md): Apply trusted project instructions and rules to Mecatl runs. - [Runtime behavior](/docs/features/runtime.md): Understand runtime diagnostics, model-call resilience, and telemetry. - [Observability and resilience](/docs/features/runtime/observability-and-resilience.md): Understand runtime signals, resilient model calls, and product metrics. - [Scheduled tasks](/docs/features/scheduled-tasks.md): Schedule recurring and one-shot Mecatl runs with durable delivery and recovery. - [Session continuity](/docs/features/session-continuity.md): Persist, resume, maintain, and recover Mecatl sessions across deployment options. - [Model routing](/docs/features/sessions/model-routing.md): Assign models to internal calls and delegated tasks, and diagnose routing. - [Skills, commands, and soul](/docs/features/skills-commands-and-soul.md): Shape Mecatl runs with reusable skills, slash commands, and a durable persona. - [Start and resume sessions](/docs/features/start-and-resume-sessions.md): Create, select, and resume Mecatl sessions from the terminal or a client. - [Subagents, teams, and parallel work](/docs/features/subagents-and-teams.md): Choose focused subagents, isolated parallel branches, or coordinated teams for delegated work. - [Core tools](/docs/features/tools.md): Understand Mecatl's built-in tools and the read-parallel, mutate-serial dispatch model. ### reference Look up Mecatl configuration and client API contracts. - [Reference](/docs/reference.md): Look up Mecatl configuration and client API contracts. - [Configuration reference](/docs/reference/configuration.md): Look up every operator settings key, type, default, and allowed tier. - [gRPC API reference](/docs/reference/grpc-api.md): Look up Mecatl gRPC services, methods, streams, and wire behavior. - [gRPC schema reference](/docs/reference/grpc-schema.md): Look up Mecatl gRPC services, RPCs, messages, enums, and fields. - [HTTP and SSE API reference](/docs/reference/http-sse-api.md): Look up Mecatl HTTP routes, SSE events, request bodies, and responses. - [Server CLI reference](/docs/reference/server-cli.md): Look up the flags registered by mecated and mecak8s. - [TypeScript SDK API reference](/docs/reference/typescript-sdk-api.md): Look up TypeScript SDK entry points, runtime support, methods, types, and errors. - [TypeScript SDK core API](/docs/reference/typescript-sdk-api/core.md): Look up the transport-neutral TypeScript SDK functions, methods, types, and errors. - [TypeScript SDK Deno API](/docs/reference/typescript-sdk-api/deno.md): Look up the Deno TypeScript SDK local-process functions, methods, and types. - [TypeScript SDK Node.js and Bun API](/docs/reference/typescript-sdk-api/node.md): Look up the Node.js and Bun TypeScript SDK functions, methods, and types. ### cloud-native-harness Understand how Mecatl separates the agent loop from the durable, governed services that let it run as a cloud-native application. - [What is a cloud-native harness?](/docs/cloud-native-harness.md): Understand how Mecatl separates the agent loop from the durable, governed services that let it run as a cloud-native application. ### operating Start a Mecatl service and operate a shared deployment for your team. - [Deploy and operate Mecatl](/docs/operating.md): Start a Mecatl service and operate a shared deployment for your team. - [Try Mecatl on Kubernetes](/docs/operating/kubernetes.md): Run mecak8s in a local Kind cluster and connect with mecatui. - [Cloud-native k8s with mecak8s](/docs/operating/mecak8s.md): Deploy a shared-team Mecatl service with Redis and Kubernetes Leases. - [Maintain the execution provider](/docs/operating/mecak8s/execution-provider-lifecycle.md): Rotate authority and safely upgrade or retire Kubernetes execution state. - [Secure mecak8s client access](/docs/operating/mecak8s/identity-and-client-access.md): Configure server TLS, verified caller identity, and global tool access. - [Configure Kubernetes execution](/docs/operating/mecak8s/native-execution.md): Provision session workspaces with the separate Kubernetes execution provider. - [Observe and troubleshoot mecak8s](/docs/operating/mecak8s/observe-and-troubleshoot.md): Inspect durable events, logs, and readiness for a Kubernetes deployment. - [Scale, recover, and upgrade mecak8s](/docs/operating/mecak8s/scale-recover-and-upgrade.md): Maintain replicas, routing, trusted configuration, and recovery on Kubernetes. - [Configure mecak8s state and execution](/docs/operating/mecak8s/state-and-execution.md): Choose durable state and filesystem access for Kubernetes sessions. - [Run mecated standalone](/docs/operating/mecated.md): Start a lightweight Mecatl server and connect a terminal client. - [Configure mecated providers and storage](/docs/operating/mecated/configure-providers-and-storage.md): Select server-side model access and durable session storage. - [Operate a mecated instance](/docs/operating/mecated/operate-instance.md): Configure, monitor, and recover a standalone Mecatl server. - [Secure and expose mecated](/docs/operating/mecated/secure-and-expose.md): Authenticate callers and encrypt access to a standalone Mecatl server. - [Single-shot CI with mecatequi](/docs/operating/mecatequi.md): Run one bounded Mecatl prompt in CI and produce a patch, summary, and exit status. - [Local microVM environments](/docs/operating/microvm-environments.md): Run filesystem and shell tools in a repository-scoped local microVM. - [Collect metrics, traces, and diagnostics](/docs/operating/observability.md): Collect operational metrics, traces, diagnostics, and tool audit records. - [Operate local session storage](/docs/operating/session-storage-operations.md): Inspect, clean up, and back up the local JSONL session store safely. - [Configure Mecatl](/docs/operating/settings.md): Choose the right settings file or flag for each way of running Mecatl. - [Mecatl Studio web UI](/docs/operating/studio.md): Deploy the early-access Studio browser client for your Mecatl service. Configure the signed image and OIDC browser login. ### roadmap See what Mecatl has shipped, what is in progress, and where the project is heading across identity, autonomy, durability, clients, and extensibility. - [Mecatl roadmap](/docs/roadmap.md): See what Mecatl has shipped, what is in progress, and where the project is heading across identity, autonomy, durability, clients, and extensibility. ## Optional - [Mecatl on GitHub](https://github.com/stacklok/mecatl): Source code for Mecatl. - [Community Discord](https://discord.gg/stacklok)