Durable state for agent runtimes.

Continuity protocol for agent swarms

State Capsule is an SDK and protocol for checkpointing, restoring, and verifying agent work across processes, frameworks, and nodes.

state-capsule-sdk

Protocol trace

The next process starts with verified state.

Agent A

+04s

publishes signed capsule

Runtime

+21s

process crashes or hands off

Agent B

+38s

restores verified state

Adapter

+55s

resumes framework loop

Observer

+72s

verifies capsule chain

Capsule primitive

Minimal, portable, framework-agnostic.

task_id

support-ticket-482

stable

capsule.head

0x8cf2...19ab

0G KV

current_holder

agent-b

portable

next_action

continue from checkpoint

signed

64 KB soft cap

sdk contract

signed writes

sdk contract

schema migration

sdk contract

Crash-resumable agents

Every specialist writes the facts, constraints, decisions, and next action another process needs to continue without replaying the whole investigation.

Verifiable handoffs

Capsules are signed, chained, anchored, and summarized through 0G Compute so receivers can trust what changed and why.

Real swarm topology

Triager, Reproducer, Patcher, and Reviewer coordinate over AXL as separate nodes with separate failure domains.

Demo application

MaintainerSwarm is the proof, not the product.

SDK

create, update, restore, verify, subscribe

Protocol

signed capsule chain with storage and anchor hooks

Demo

open-source maintenance swarm built on top

Architecture

Durability and coordination are separate on purpose.

State Capsule owns durable task state. Storage, chain anchors, task pointers, and live coordination are pluggable integration layers around the same capsule contract.

0G Storage

Mutable capsule head plus append-only log

0G Chain

Registry anchors for capsule lineage

0G Compute

Sealed summaries for fast restore

Gensyn AXL

Live multi-node coordination

ENS

Human-readable task pointers

Adapters

OpenClaw, LangChain, Vercel AI SDK

SDK surface

A small primitive with serious failure semantics.

MaintainerSwarm uses the same SDK surface available to any agent runtime. The adapters wire checkpoints into existing frameworks instead of asking teams to rewrite their stack.

OpenClawLangChainVercel AI SDKLlamaIndex
restoreCapsule.ts
const capsule = await restoreCapsule(taskId, {
  verifyChain: true,
  sealedSummary: true,
});

await updateCapsule(capsule, {
  facts: [...capsule.facts, reproWindow],
  next_action: "apply narrowed race fix",
  created_by: "reproducer-02",
});