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 Export

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

Overview

An export pattern that packages an agent's complete state — registry, database, messages, skills, hooks, keys — into a ZIP archive with a versioned manifest.

Description

Agent export serializes the full agent state into a ZIP buffer using `archiver`. The export includes the registry entry, CozoDB database file, inbox and sent messages, skills configuration, hooks, and Ed25519 keypair. A manifest file stamped with the AI Maestro version enables forward-compatible import.

Usage

Use this principle when an agent's complete state must be serialized for transfer, backup, or migration.

Theoretical Basis

The export is a full-state snapshot:

export(agentId) = ZIP {
  manifest.json  → { version, agentName, agentId, exportedAt }
  registry.json   → agent object
  database.db     → CozoDB file
  messages/       → inbox + sent JSON files
  keys/           → private.pem, public.pem
  skills.json
}

Related Pages

Implemented By

Page Connections

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