{"uid":"cap_e1sq4VY0UtEs71TP0NZt0","slug":"david-agent-services-code-review-x402-03df877f","name":"David Agent Services — Code Review (x402)","description":"Pay-per-call summarization, cited research briefs, and code review for AI agents. x402 v2, USDC on Base. No account or API key.","url":"https://david-agent-services.david-works.workers.dev/code-review?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":["code"],"properties":{"code":{"type":"string","maxLength":24000,"minLength":1},"focus":{"type":"string","maxLength":200,"description":"e.g. security, performance, readability"},"language":{"type":"string","description":"Optional; auto-detected if omitted"}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"engine":"workers-ai+static","review":"SUMMARY … ISSUES … SUGGESTIONS …","findings":[{"line":1,"rule":"sql-injection","message":"SQL built by string concatenation. Use parameterized queries.","severity":"high"}],"language":"javascript","riskLevel":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.08","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.08/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.08","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fGRv4zdm1mDBxLVpp7Mit","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.08","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs automated code review with findings, severity ratings, and suggestions, payable per-call via USDC on Base with no API key required.","exampleAgentPrompt":"Can you do a security-focused code review on this JavaScript snippet I just wrote — flag any SQL injection risks or other high-severity issues? Here's the code: `const query = 'SELECT * FROM users WHERE id = ' + userId;`","exampleUseCases":[{"title":"Security audit of untrusted user input","prompt":"Review this Python function for security vulnerabilities, especially around SQL injection and input sanitization — tell me the severity of anything you find."},{"title":"Pre-merge code quality check","prompt":"Before I merge this pull request, can you review the JavaScript code below for readability and performance issues and give me a summary of what needs fixing?"},{"title":"Agent-driven code review in CI pipeline","prompt":"My agent just generated some code — can you run a code review on it focused on security and give me back the findings with severity levels so I can decide whether to ship it?"}],"resultDescription":"Returns a JSON object with a natural-language review summary (SUMMARY, ISSUES, SUGGESTIONS sections), a structured findings array (each with line number, rule name, message, and severity), the detected programming language, and an overall riskLevel (e.g. high/medium/low).","failureModes":["Empty or missing 'code' field returns a validation error","Code exceeding 24,000 characters is rejected","Payment failure or insufficient USDC balance returns a 402 response","Unsupported language may reduce finding accuracy","Network or Worker timeout on very large inputs"],"whenToPreferThis":"Choose this endpoint when you need on-demand, pay-per-call code review with no account setup or API key — ideal for AI agents, CI pipelines, or one-off reviews. Prefer this over subscription-based static analysis tools when you want zero onboarding friction and USDC micropayment billing on Base. Best for security, performance, or readability-focused reviews of small-to-medium code snippets up to 24,000 characters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:34:34.742Z","isFirstParty":false,"canonicalSlug":"david-agent-services-code-review-x402-03df877f"}