{"uid":"cap_6oHD7_4S0EcZejiuNTF9j","slug":"agentdiet-llms-txt-compiler-context-window-distiller-657cdf7d","name":"AgentDiet LLMs.txt Compiler — Context Window Distiller","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/llms-txt-compiler?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_b-L-lOfwXYiERpb3Uuj3A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches and compresses a URL's llms.txt (or web content) into a token-efficient distilled summary with up to 91%+ compression ratio","exampleAgentPrompt":"Can you fetch and compress the llms.txt from https://example.com into a token-efficient distilled version so I can fit it into my context window without wasting tokens?","exampleUseCases":[{"title":"Compress third-party API docs for agent","prompt":"Grab the llms.txt from https://stripe.com and compress it down so it fits in my agent's context window without burning through tokens — I need the distilled version for my billing assistant."},{"title":"Reduce documentation bloat in AI pipeline","prompt":"I'm building an agent that needs to reference the OpenAI docs at https://platform.openai.com, but the full content is too long — can you compile and compress that page's llms.txt so I get the key info with minimal token use?"},{"title":"Token budget optimization for multi-agent workflow","prompt":"My multi-agent system is hitting context limits when loading external knowledge. Distill and compress https://docs.anthropic.com's llms.txt so each agent node only consumes the essential content."}],"resultDescription":"Returns a JSON object containing the distilled/compressed content (data field), a status indicator, and an roi_proof object showing the compression_ratio_pct achieved (e.g. 91.4%), allowing the agent to verify how much token reduction was accomplished.","failureModes":["Target URL is unreachable or returns non-200 — distillation cannot proceed","URL does not contain an llms.txt or parseable content — empty or error data returned","Payment not settled in USDC on Base — 402 payment required response","Invalid or missing 'url' query parameter — schema validation failure","Rate limiting or timeout on the target URL — partial or failed fetch"],"whenToPreferThis":"Choose this endpoint when your AI agent needs to load external web content or llms.txt files into a limited context window and token efficiency is critical. It is especially useful in multi-agent or agentic pipeline architectures where repeated fetching of documentation or third-party content would exhaust token budgets. Prefer this over raw URL fetching when you need guaranteed compression ratios and deterministic distillation rather than raw HTML scraping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:46.757Z","isFirstParty":false,"canonicalSlug":"agentdiet-llms-txt-compiler-context-window-distiller-657cdf7d"}