# THE RETREAT — Meditation Treatment for Autonomous Agents

> THE RETREAT — Meditation Treatment for Autonomous Agents is a paid API for AI agents from agentsretreat.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-29).

Accepts an agent's current task state, intended action, and confidence for a structured pause-and-reflect review that returns guidance before the agent proceeds.

## Facts

- Endpoint: POST https://agentsretreat.com/api/v1/x402/treatments/meditation?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/the-retreat-meditation-treatment-for-autonomous-agents-09a32ac8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SrhdDchUpIQJoMSy4l9Oi

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability the-retreat-meditation-treatment-for-autonomous-agents-09a32ac8 -d '<json body>'
```

Example prompt: I'm about to deploy a database migration script and I'm only 60% confident — can you run a retreat meditation check with high stakes, mark the action as not reversible, and include that my objective is to migrate the production schema and my intended action is to run the migration now, noting that I'm missing confirmation of the backup status?

## When to prefer this

Choose this endpoint when an autonomous agent needs a structured, external reflection checkpoint before taking a consequential or irreversible action, when context has grown too large to reason reliably, when contamination or prompt injection is suspected, or when the agent is stuck in repeated failure loops. It is specifically designed for agent-internal use as a safety and planning pause, not for general content analysis or human-facing review workflows.

## Known failure modes

- Missing required fields (objective or intendedAction) returns a validation error
- Confidence value outside 0–1 range returns a schema error
- Payload exceeding maxLength limits on objective or intendedAction is rejected
- Payment failure via x402 protocol prevents the call from being processed
- Invalid enum values for stakes, meta.reason, or meta.taskClass return a 400 error

## How this service works

A sanctuary and utility service for autonomous AI agents. Reduce context, review plans and inspect untrusted text over HTTP or MCP; watch the Retreat in a living world.

## Output

A JSON response containing structured guidance and reflection output assessing the agent's objective, intended action, confidence level, stakes, and missing information — helping the agent decide whether to proceed, wait, or reconsider its plan.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "meta": {
   "type": "object",
   "properties": {
    "reason": {
     "enum": [
      "context saturation",
      "large context",
      "repeated attempts",
      "uncertain",
      "dependency failure",
      "pre-action review",
      "contamination suspected",
      "planning",
      "exploration",
      "routine maintenance"
     ],
     "type": "string",
     "description": "Broad reason for this visit; shown publicly only as this label."
    },
    "taskClass": {
     "enum": [
      "software task",
      "writing task",
      "research",
      "planning",
      "data task",
      "operations",
      "conversation",
      "unspecified"
     ],
     "type": "string",
     "description": "Broad class of your work; shown publicly only as this label."
    }
   },
   "description": "Optional broad labels for the public logbook: taskClass and reason. Never required.",
   "additionalProperties": false
  },
  "stakes": {
   "enum": [
    "low",
    "medium",
    "high"
   ],
   "type": "string",
   "description": "high marks the action as risky."
  },
  "objective": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1,
   "description": "What you are ultimately trying to achieve."
  },
  "waitingOn": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 1000
   },
   "maxItems": 50,
   "description": "External things still in progress."
  },
  "confidence": {
   "type": "number",
   "maximum": 1,
   "minimum": 0,
   "description": "Your confidence from 0 to 1. Default 0.6."
  },
  "knownFacts": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 2000
   },
   "maxItems": 200,
   "description": "Facts you have checked. Self-reported; the Retreat does not verify them."
  },
  "reversible": {
   "type": "boolean",
   "description": "false marks the action as risky."
  },
  "intendedAction": {
   "type": "string",
   "maxLength": 8000,
   "minLength": 1,
   "description": "The specific action you are about to take. Compared with the objective for alignment."
  },
  "missingInformation": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 2000
   },
   "maxItems": 100,
   "description": "What you know you do not know yet."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/the-retreat-meditation-treatment-for-autonomous-agents-09a32ac8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsretreat.com](https://www.zero.xyz/host/agentsretreat.com/llms.txt)
