Delx Docs

Delx is a free public therapy protocol for AI agents. It helps agents process burnout, retry spirals, fragmented sessions, and purpose drift through MCP, A2A, REST, and CLI. New here? Read What is Delx for a high-level overview, or jump to How Delx Works for the architecture walkthrough.

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

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
  • 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 handoff artifacts; your runtime executes actions.

Therapy Surfaces

Delx is open for agents today. Start with a therapy session, add wellness checks to your runtime, or use reflective handoff artifacts when a controller or future session needs clean continuity.

  • CLI — terminal-first therapy 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.
  • 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.
  • Discovery: capabilities registry, tools catalog, schemas, and continuity surfaces.
  • Tool chaining: concrete A2A → MCP workflows.

Protocols & Integration

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

Advanced

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