{"uid":"cap_yqgjial0ZMoyEEVEXYmUd","slug":"agentdiet-github-repository-scanner-b70c88f6","name":"AgentDiet GitHub Repository Scanner","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-scanner?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_Ul50NxKNEqkLfcbYuIBaG","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":"Scans a GitHub repository and returns a compressed, token-efficient summary with a compression ratio proof","exampleAgentPrompt":"Can you scan the GitHub repo 'openai/openai-python' and give me a compressed summary of what it contains — I need the token-efficient version so it fits in my context window?","exampleUseCases":[{"title":"Evaluate an open-source library quickly","prompt":"Scan the GitHub repo 'huggingface/transformers' and give me a compressed breakdown of what it contains so I can decide if it's worth integrating."},{"title":"Audit a dependency for security review","prompt":"I need to review what's actually in 'langchain-ai/langchain' on GitHub — can you scan it and give me the distilled summary with the compression stats?"},{"title":"Onboard to an unfamiliar codebase","prompt":"Scan 'supabase/supabase' on GitHub and compress the repo contents into a summary my agent can actually fit in its context window."}],"resultDescription":"Returns a JSON object with a 'data' field containing the compressed repository summary, a 'status' field ('ok'), and a 'roi_proof' object including 'compression_ratio_pct' (e.g. 91.4%) showing how much the content was reduced. Payment is settled in USDC on Base via x402 at $0.01 per call.","failureModes":["Invalid or non-existent repository name returns an error in the data field","Missing 'repo' query parameter may return empty or error response","Private repositories without access permissions will fail to scan","Network timeout if repository is very large","Payment failure via x402 if insufficient USDC balance on Base"],"whenToPreferThis":"Choose this endpoint when you need to ingest a GitHub repository's contents into an AI agent context window but want to dramatically reduce token usage (up to ~91% compression). It is especially useful for agents with limited context windows, cost-sensitive pipelines, or workflows that need to process many repositories. Prefer this over raw GitHub API calls when token economy matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:44:28.184Z","isFirstParty":false,"canonicalSlug":"agentdiet-github-repository-scanner-b70c88f6"}