{"uid":"cap_-IIYNjWfavk17oP1l2Qdd","slug":"agentdiet-github-rag-context-distiller-604090f4","name":"AgentDiet GitHub RAG Context 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/github?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":{"repo":{"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_D6I093ocYxYJNqpwDkCe3","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 GitHub repository's content into a distilled, token-efficient context using RAG-based summarization, achieving up to 91% compression ratio.","exampleAgentPrompt":"Can you use AgentDiet to fetch and compress the torvalds/linux GitHub repo so I can load it into my context window without blowing my token budget?","exampleUseCases":[{"title":"Codebase analysis within token limits","prompt":"I need to analyze the openai/openai-python GitHub repo but it's too large to fit in my context window — can you distill it down using AgentDiet so I only get the essential content?"},{"title":"Agent memory optimization for repo tasks","prompt":"My AI agent needs to work with the langchain-ai/langchain repo. Can you pull a compressed, token-efficient version of it so the agent can reason about the codebase without burning through my context budget?"},{"title":"Quick compressed repo overview for code review","prompt":"I want a quick compressed summary of the vercel/next.js GitHub repo — run it through AgentDiet and show me what the distilled context looks like along with the compression ratio achieved."}],"resultDescription":"Returns a JSON object with status 'ok', a data field containing the distilled/compressed repository content, and a roi_proof object showing the compression_ratio_pct (e.g. 91.4%) achieved — confirming how much token reduction was applied.","failureModes":["Invalid or non-existent GitHub repo name returns an error or empty data","Missing required 'input' object causes schema validation failure","Rate limiting or payment failure (x402) if USDC payment is not properly settled","Repo too large or inaccessible may result in partial or failed distillation","Network timeouts when fetching large repositories"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to load a GitHub repository into its context window but the raw content would exceed token limits or be too expensive. It is specifically optimized for GitHub content compression with documented compression ratios up to 91%, making it ideal for agentic workflows that need cost-efficient, deterministic context distillation paid via x402/USDC micropayments on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:40:51.957Z","isFirstParty":false,"canonicalSlug":"agentdiet-github-rag-context-distiller-604090f4"}