{"uid":"cap_o4lOro9twzuf8XpY9VBbM","slug":"agentdiet-code-security-scanner-1f91fecc","name":"AgentDiet Code Security 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/code-security?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_IR7P8I6hxiA11IPo2eQaJ","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 code repository for security vulnerabilities and returns a compressed, distilled security analysis report","exampleAgentPrompt":"Can you run a code security scan on my repo at github.com/myorg/myproject and give me a distilled report of any vulnerabilities or issues found?","exampleUseCases":[{"title":"Pre-merge security audit","prompt":"Before I merge this pull request, can you scan the repo at github.com/acmecorp/backend-api for any security vulnerabilities or exposed secrets?"},{"title":"Startup codebase security review","prompt":"I just inherited a legacy codebase at github.com/oldstartup/app — can you do a security audit and give me a compressed summary of the biggest risks?"},{"title":"CI pipeline security check","prompt":"As part of our deployment pipeline, scan github.com/myteam/payments-service for security issues and tell me if it's safe to ship."}],"resultDescription":"Returns a JSON object with a 'data' field containing security findings, a 'status' field (e.g. 'ok'), and a 'roi_proof' object showing the compression ratio achieved (e.g. 91.4%) — indicating how much the raw analysis was distilled before delivery.","failureModes":["Missing or invalid 'repo' query parameter returns an error or empty data object","Repository not accessible or private without credentials may yield no findings","Malformed input schema (wrong type or method) results in validation error","Service unavailable or payment not settled may return a non-200 response","Rate limiting or quota exhaustion on the backend scanning engine"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.01 USDC) automated security scan of a code repository with results delivered in a highly compressed, token-efficient format — especially useful in agentic pipelines where context window efficiency matters and you need a fast scan without setting up a full SAST toolchain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:34.221Z","isFirstParty":false,"canonicalSlug":"agentdiet-code-security-scanner-1f91fecc"}