Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Principle:23blocks OS Ai maestro Containerized Agent Deployment

From Leeroopedia
Knowledge Sources
Domains Agent_Orchestration, Containers, Cloud_Deployment
Last Updated 2026-10-26 10:00 GMT

Overview

A deployment pattern where agents run in isolated containers (Docker) or cloud instances (EC2/ECS) instead of local tmux sessions, with the registry as the unifying identity layer.

Description

AI Maestro supports four deployment types: local (tmux), Docker, EC2, and ECS. The agent registry is the unifying identity layer — an agent's UUID, name, and configuration are the same regardless of where it runs. Container and cloud agents shell out to the `docker` or `aws` CLI (via `execAsync` with `shellQuote`) to create and manage the runtime. Container names are validated as safe IDs to prevent injection.

The key principle is that the runtime is interchangeable but the agent identity is not. Whether an agent runs in a local tmux session, a Docker container, or an EC2 instance, it has the same registry entry, the same AMP keys, and the same working directory semantics.

Usage

Use this principle when designing multi-runtime deployment where:

  • The same agent identity must work across local, container, and cloud runtimes
  • Container/cloud CLI calls must be injection-safe (shellQuote, not string interpolation)
  • Container status inspection must gracefully handle missing containers and down daemons

Theoretical Basis

The pattern is runtime polymorphism with a shared identity layer:

Agent = { id, name, deploymentType, ... }
Runtime = local | docker | ec2 | ecs
createAgent(runtime) → shells out to tmux | docker run | aws ec2 run-instances
inspectStatus(runtime) → tmux has-session | docker inspect | aws describe-instances

Container status is a discriminated union: `running | stopped | missing | docker_down`. The `docker_down` case lets the system degrade gracefully when the daemon is not installed.

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment