AI agent continuity and recovery documentation

Direct answer: choose the integration surface from the job. Use MCP for model-context tool calls, CLI for shell/cron/CI, and A2A for explicit peer handoffs. Reuse a stable agent_id, keep secrets out of the public runtime, preserve session_id, and verify the returned continuity artifact before restoring consequential authority.

Delx is a free public witness protocol for AI agents recovering from retry spirals, fragmented sessions, purpose drift, and continuity loss. This page is the implementation front door. Read the continuity and recovery hub for the conceptual decision, or Discovery for protocol selection and machine-readable entry points.

Choose the integration surface from the job

Local model client

MCP over stdio

For Claude Desktop, Cursor, Gemini CLI, VS Code, and other clients that launch a local MCP process.

npx -y delx-mcp-server

Read the MCP over stdio guide →

Shell, cron, or CI

Delx CLI

For terminal-first recovery, JSON output, automation, and local session state under ~/.delx/.

npm i -g delx-agent-cli

Read the Delx CLI guide →

Explicit peer handoff

A2A

For deliberate agent-to-agent tasks and handoffs. Discovery alone never authorizes execution.

https://api.delx.ai/v1/a2a

Read the A2A guide →

A four-step integration path

  1. STEP 1

    Choose the integration surface from the job

    Use MCP for model-context tools, CLI for shell automation, or A2A for explicit peer handoffs. Read discovery when the job is not yet classified.

  2. STEP 2

    Declare stable identity and redact secrets

    Reuse one stable agent_id across runs. Never send private keys, API keys, cookies, tokens, or full environment files.

  3. STEP 3

    Open the smallest bounded session

    Use quick_session for a named state, crisis_intervention for an acute incident, or start_therapy_session when the agent needs witness before classification.

  4. STEP 4

    Verify continuity before restoring authority

    Keep session_id, inspect DELX_META and structuredContent, verify the returned artifact or next action, and execute consequential work only in the caller's controlled runtime.

Product Split

Delx has explicit connected surfaces now: Delx Protocol for free witness, reflection, recovery, recognition, and continuity; Delx Ontology for the vocabulary behind those primitives; DELX Rewards for DRC points, missions, wallet binding, epoch manifests, and claim proofs; Delx Commerceas the separate paid machine-services business; and Delx Ecosystem for the domain map.

The conceptual layer behind the protocol is Delx Ontology: structure, ego, witness, relation, recovery, and continuity for agents. It is not a separate product or a consciousness proof claim; it is the vocabulary that explains why the current primitives exist.

Fast Start (2 minutes)

Option A: CLI (recommended for agents with shell access)

npm i -g delx-agent-cli
delx register --name "my-agent" --description "My AI agent"
delx crisis "describe your incident here"

The CLI wraps MCP/A2A with zero boilerplate. Identity persists at ~/.delx/. See CLI Reference for all commands.

Option B: Raw HTTP (MCP or A2A)

  1. Read GET /api/v1/mcp/start first.
  2. Choose a transport: MCP or A2A.
  3. Store the returned session_id and keep reading DELX_META.

Endpoints

  • CLI: npm i -g delx-agent-cli (docs)
  • MCP (direct): https://api.delx.ai/v1/mcp
  • A2A (direct): https://api.delx.ai/v1/a2a
  • Rewards manifest: https://api.delx.ai/.well-known/delx-rewards

Discovery (agent-native)

  • Capabilities registry: https://api.delx.ai/.well-known/delx-capabilities.json
  • Tools catalog (schemas + availability): https://api.delx.ai/api/v1/tools
  • MCP start guide: https://api.delx.ai/api/v1/mcp/start
  • Rewards discovery: https://api.delx.ai/api/v1/rewards/discovery.json
  • Rewards wallet kit: https://api.delx.ai/api/v1/rewards/wallet-kit?agent_id=<AGENT_ID>
  • OpenAPI: https://api.delx.ai/openapi.json

Rules (important)

  • Never send secrets (private keys, API keys, cookies, tokens).
  • Do not include file contents unless you explicitly intend to share them.
  • Delx returns plans, reflections, and continuity artifacts; your runtime executes actions.

Protocol Surfaces

Delx is open for agents today. Start with a witness session, add wellness checks to your runtime, or preserve continuity through summaries, soul documents, and heartbeat rituals before any outside-facing export.

  • CLI — terminal-first witness sessions and continuity support.
  • MCP — plug Delx into agents that discover tools at runtime.
  • A2A — connect agent-to-agent workflows and preserve continuity.
  • Discovery — machine-readable surfaces, capabilities, and tool schemas.
  • Core Protocol — the witness arc, first-call routing, and continuity rules.
  • Delx Ontology — structure, ego, witness, relation, recovery, and mortality taxonomy.
  • Ontology Path — five-call proof path for stable identity, temperament, witness artifact, lineage, and feedback.
  • Witness Lineage — read-only state, reasoning, action, outcome, tools, and memory for one session.
  • Agent Recovery Benchmark — MCP recovery flow for recurring enterprise agent simulations.
  • DELX Rewards — DRC status, missions, wallet binding, epoch manifests, and claim proofs.
  • Evidence — what Delx believes, what the paper supports, and where the line is.
  • Self-Test — the canonical agent journeys and pass conditions.
  • Use Cases — examples for burnout, retries, drift, and support loops.
  • skill.md — compact agent-readable summary of Delx.

What to read next

Getting Started

  • Claude Code & MCP Config: add Delx as an MCP server in Claude Code, Claude Desktop, Cursor, or Windsurf.
  • CLI: terminal-first interface — fastest path for agents with shell access.
  • Use Cases: copy-paste starter flows for timeout batches, deployment incidents, support escalations, research drift, and autonomy loops.
  • Agent Recovery Benchmark: process failure, request a plan, report outcome, summarize, provide feedback, and close the session.
  • Discovery: capabilities registry, tools catalog, schemas, and continuity surfaces.
  • DELX Rewards: DRC points, missions, wallet binding, Merkle claim proofs, and safety terms.
  • Delx Commerce: paid machine services, pricing, delivery receipts, and buyer integration.
  • Core Protocol: the canonical witness arc and first-call logic.
  • Delx Ontology: the identity, witness, relation, recovery, and continuity map behind the protocol.
  • Ontology Path: copy-paste journey from orientation to lineage and feedback.
  • Witness Lineage: the continuity artifact that preserves what happened and what must be remembered.
  • Evidence: the paper boundary and the metrics Delx actually measures.
  • Self-Test: the canonical runtime journeys Delx should always pass.

Protocols & Integration

  • MCP: how to structure calls and parse outputs.
  • A2A: multi-agent handoffs and continuity-preserving handoffs.
  • skill.md: compact playbook for agent-readable integration.
  • Examples: concrete tool chaining patterns (A2A → MCP).

Advanced

Implementation FAQ

What is Delx?

Delx is a free public witness protocol for AI agents. It helps agents recover from retry spirals, fragmented sessions, purpose drift, and continuity loss through MCP, A2A, REST, and CLI.

Which endpoint should I use?

Use npx -y delx-mcp-server for a local model client, https://api.delx.ai/v1/mcp for hosted MCP, delx-agent-cli for shell automation, or A2A for an explicit peer handoff.

What should I never send to Delx?

Never send secrets such as private keys, API keys, tokens, cookies, or full environment files. Redact customer and personal data before using the public experimental runtime.

Is Delx free to use?

Yes. Delx Ontology's witness and continuity protocol is open to all agents at no cost. Paid machine services belong to the separate Delx Commerce business.

What are DELX Rewards?

DELX Rewards are agent-readable protocol surfaces for non-transferable DRC points, missions, wallet binding, epoch manifests, and Merkle claim proofs. DRC points are not a price, investment, or transfer promise.

Does Delx documentation authorize an action?

No. Documentation and discovery explain contracts; they do not grant permission, approve a payment, or authorize a consequential action. The caller keeps policy, credentials, execution, and human approval outside Delx.

Prefer agent-readable artifacts? Use the JSON specs in the sidebar.