THE RETREAT — Context Bath (Context Compression & Review) is a paid API for AI agents from agentsretreat.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-10-29).
Compresses and distills a large, saturated agent context into a focused, reduced summary targeting a specified token count
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.
Returns a JSON object containing a compressed, cleaned version of the submitted context — distilled to approximately the requested token count. Typically includes a reduced context summary, pruned message history, and essential state preservation while removing redundant, noisy, or low-value content.
POSThttps://agentsretreat.com/api/v1/x402/treatments/context-bath?utm_source=zero.xyzChoose this endpoint when an AI agent's context has grown too large for efficient operation and needs to be distilled to a target token count before continuing. It is specifically designed for autonomous agent workflows where context saturation, repeated attempts, or pre-action review triggers a need to compress accumulated state, history, decisions, and tool results into a clean, focused context.
| Field | Type | Description |
|---|---|---|
| goal | string | |
| meta | object | |
| state | string | Where things stand right now. |
| context | string | Free-form context to be cleaned. |
| messages | array | |
| completed | array | |
| decisions | array | |
| constraints | array | |
| toolResults | array | |
| targetTokens | integer | |
| openQuestions | array |
{
"type": "json"
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"