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 Agent Portability

From Leeroopedia
Knowledge Sources
Domains Agent_Transfer, Serialization
Last Updated 2026-10-26 10:00 GMT

Overview

A portability pattern where an agent's complete state — registry entry, database, messages, keys, skills — is serialized to a ZIP archive for export, transfer, and import across hosts.

Description

Agent portability means an agent's full state can be packaged into a ZIP archive and moved to another AI Maestro host. The archive contains a manifest (stamped with the AI Maestro version), the registry entry, CozoDB database, inbox/sent messages, skills, hooks, and cryptographic keys.

On import, the archive is extracted (via `yauzl`), the registry entry is imported (with optional rename), the database is restored, messages are replayed, keys are restored, and repositories listed in the manifest are optionally cloned. The import calls `initAgentAMPHome` to set up the AMP directory structure on the target host.

Usage

Use this principle when designing entity transfer where:

  • The complete state (data + config + keys) must travel together
  • The source and target may run different AI Maestro versions (manifest carries version)
  • Transfer can be move (delete source) or clone (keep source)

Theoretical Basis

The portability pattern is full-state serialization with manifest:

export:  agent → ZIP { manifest, registry, database, messages, keys, skills }
import:  ZIP → agent { restore registry, database, messages, keys; init AMP home; clone repos }
transfer: export → HTTP POST → import → wake

The manifest stamps the AI Maestro version, enabling forward-compatible import (the target can detect version differences and migrate). The move vs clone distinction is an export-side decision: move deletes the local agent after successful transfer; clone leaves it.

Related Pages

Implemented By

Page Connections

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