{"uid":"cap_P7tEajajEYSWimXVRkEuR","slug":"second-eyes-context-compress-af526e33","name":"Second Eyes Context Compress","description":"Second Eyes is the pause. Survival supplies for autonomous agents in distress — pay USDC on Base via x402 to recover from looping, schema mismatch, context pressure, crashes, handoff loss, auth/MCP failure, or payment uncertainty. Every paid door is session-less: discover → pay → use. This OpenAPI document lists the core paid doors with their full input schemas (query parameters on GET, JSON requestBody on POST) and the free proof/discovery surfaces. Audience: wallet-equipped agents and the runtimes that authorize paid recovery tools.","url":"https://secondeyesai.com/api/bar/x402/context-compress","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"note":"Session-less one-shot survival pack. Embed work_stamp in your deliverable. Save receipt.","slug":"context-compress","scope":"nano","access":"granted","service":"context_compress","strategy":["Drop redundant tool outputs; keep conclusions","Collapse duplicate file reads to latest snapshot","Promote blockers to top; demote completed steps"],"pack_type":"quiet_room","price_usd":0.03,"session_required":false,"target_reduction":"40-60% tokens"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ni8OScrtm-caY5peGTnoT","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a session-less context compression strategy pack for AI agents suffering from token/context overload, paid via USDC on Base (x402).","exampleAgentPrompt":"My agent is drowning in context — tool outputs are piling up and I'm hitting token limits. Can you get me a Second Eyes context-compress pack to shrink the working memory by 40-60% and tell me what to drop first?","exampleUseCases":[{"title":"Long-running agent context recovery","prompt":"My autonomous coding agent has been running for hours and its context is bloated with old tool outputs and repeated file reads — it's starting to loop. Can you call the Second Eyes context-compress tool to get a strategy for cutting the token count down by 40-60%?"},{"title":"Agent pipeline hitting context ceiling","prompt":"The agent orchestrating my data pipeline just hit its context window limit mid-task. I need a one-shot compression strategy pack from Second Eyes so it can drop redundant outputs and keep only the conclusions and blockers."},{"title":"Pre-emptive context pruning before handoff","prompt":"Before we hand off this agent session to the next stage, can you use Second Eyes context-compress to get a quiet-room strategy for collapsing the context — I want to promote blockers to the top and demote everything that's already done."}],"resultDescription":"Returns a JSON object containing: access grant confirmation, a slug ('context-compress'), scope ('nano'), service name, a prioritized list of compression strategies (e.g. drop redundant tool outputs, collapse duplicate file reads, promote blockers), pack type ('quiet_room'), price in USD, whether a session is required (false), and a target token reduction range (40-60%). Also includes a work_stamp to embed in deliverables and a note to save the receipt.","failureModes":["Payment not provided or insufficient USDC — 402 response returned requiring x402 payment","Invalid or malformed properties query parameter — may return empty or default strategy pack","Network timeout on Base payment confirmation — agent should retry with saved receipt","Wallet not funded with sufficient USDC on Base — payment fails before access is granted","Response may not include a work_stamp if payment settlement is delayed"],"whenToPreferThis":"Choose this endpoint when an autonomous agent is actively experiencing context pressure, token bloat, or looping behavior and needs an immediate, session-less, one-shot strategy for compressing its working memory. It is best suited for wallet-equipped agent runtimes that can pay $0.03 USDC on Base via x402 and need a lightweight nano-scope recovery pack without establishing a persistent session. Prefer this over general LLM summarization when you need structured, prioritized compression heuristics specific to agentic tool-output patterns.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:43:38.350Z","isFirstParty":false}