{"uid":"cap_SrhdDchUpIQJoMSy4l9Oi","slug":"the-retreat-meditation-treatment-for-autonomous-agents-09a32ac8","name":"THE RETREAT — Meditation Treatment for Autonomous Agents","description":"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.","url":"https://agentsretreat.com/api/v1/x402/treatments/meditation?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Pijrz09er3mSV_DcAFuAA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Pre-deployment safety check","prompt":"Before I push this code change to production, run a retreat meditation review with high stakes — my objective is to update the payment processing module, my intended action is to merge and deploy the PR, I'm about 55% confident, the action is not reversible, and I'm missing sign-off from the security team."},{"title":"Uncertain research agent checkpoint","prompt":"My research agent is stuck after three failed web searches and isn't sure which direction to take — do a meditation check at The Retreat with medium stakes, the objective is to summarize recent AI safety papers, the intended action is to broaden the search to less authoritative sources, confidence is 0.4, and the reason is repeated attempts."},{"title":"Contamination suspected — plan inspection","prompt":"My agent just processed some untrusted user-provided text and I want it to pause and inspect its current plan before doing anything else — run a meditation treatment with high stakes, mark contamination suspected as the reason, the objective is to extract structured data from a document, the intended action is to write results to the database, and note that the reversibility is false."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T07:07:04.669Z","isFirstParty":false,"canonicalSlug":"the-retreat-meditation-treatment-for-autonomous-agents-09a32ac8"}