{"uid":"cap_4p87a3poZLCS5YaYatxmR","slug":"agentdiet-repo-audit-a2a-context-window-distiller-31860c1a","name":"AgentDiet Repo Audit — A2A 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/repo-audit?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_WNKs3NNvu4lsXEJBhddBe","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":"Audits a GitHub repository and returns a compressed, token-efficient summary with compression ratio proof, settling payment in USDC on Base via x402.","exampleAgentPrompt":"Can you audit the GitHub repo at https://github.com/openai/openai-python and give me a compressed, token-efficient summary — I want to see the compression ratio it achieves?","exampleUseCases":[{"title":"Compress open-source library for agent ingestion","prompt":"Audit the repo at https://github.com/langchain-ai/langchain and give me a distilled summary that fits in my context window — show me the compression ratio you get."},{"title":"Token budget check before RAG pipeline","prompt":"Before I feed this codebase into my RAG pipeline, can you run a repo audit on https://github.com/huggingface/transformers and tell me how much I can compress it?"},{"title":"Cost-efficient codebase onboarding for new agent","prompt":"I'm spinning up a new AI agent to understand our codebase — can you audit https://github.com/microsoft/vscode and return a de-bloated summary with proof of how much token reduction we get?"}],"resultDescription":"Returns a JSON object with a 'data' field containing the audit findings, a 'status' field ('ok'), and a 'roi_proof' object that includes a 'compression_ratio_pct' value (e.g. 91.4%) demonstrating how much the repository context was compressed.","failureModes":["Missing or invalid 'repo' query parameter returns an error","Private or inaccessible repository causes fetch failure","Payment not settled in USDC on Base results in 402 response","Rate limiting or quota exhaustion may return error status","Malformed repo URL causes parsing failure"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest, analyze, or understand a GitHub repository without consuming excessive context window tokens. It is especially valuable when working with large codebases, running multiple repo analyses in a pipeline, or when token cost is a primary concern. The built-in compression ratio proof (ROI proof) makes it auditable and trustworthy for agent-to-agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:08.382Z","isFirstParty":false,"canonicalSlug":"agentdiet-repo-audit-a2a-context-window-distiller-31860c1a"}