{"uid":"cap_kL-RG_Bra74ofl2mjHWaj","slug":"code-agent-audit-diff-ai-code-review-via-x402-46a06fd2","name":"Code Agent – Audit Diff (AI Code Review via x402)","description":"Pay-per-request AI developer tools in USDC on Base. Generate code, audit smart contracts, review diffs, summarize text, and convert data formats via the x402 payment standard. Powered by glm-5.2.","url":"https://code.mamenesia.com/service/audit-diff","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"diff":{"type":"string","pattern":"\\S"},"language":{"type":"string"}}},"responseSchema":{"type":"json","example":{"paid":"0.25 USDC","result":{"code":"## Findings\n- High: arithmetic regression","model":"glm-5.2"},"service":"audit-diff"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.25","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.25/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.25","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pEK6MRFI8shpgvic2xGBh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.25","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71d54deA1d9d2","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Reviews a unified diff using AI (GLM-5.2) and returns actionable code review feedback, paid per-request in USDC on Base via the x402 protocol.","exampleAgentPrompt":"Can you review this unified diff from my feature branch and flag any bugs, security issues, or style problems? The code is Python: [paste diff here].","exampleUseCases":[{"title":"Pre-merge pull request review","prompt":"Here's the diff for my pull request — it's TypeScript. Can you review it and tell me if there are any bugs, anti-patterns, or things I should fix before merging?"},{"title":"Security audit of smart contract patch","prompt":"I've got a unified diff of changes to my Solidity smart contract. Can you audit it for security vulnerabilities or logic errors? Language is Solidity."},{"title":"CI pipeline automated diff check","prompt":"Run an automated review on this diff from our latest commit — it's Go code. Flag anything that looks like a regression, bad practice, or missed edge case."}],"resultDescription":"A JSON object containing the AI-generated code review as a code string, the model used (glm-5.1), the number of tokens consumed, the x402 transaction hash, and the service name confirming 'audit-diff'.","failureModes":["Missing or empty 'diff' field returns a validation error","Malformed unified diff may produce incoherent or empty review output","Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response","Overly large diffs may exceed token limits, causing truncation or error","Invalid language hint may be ignored rather than causing failure"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-use, no-subscription AI code review of a specific unified diff, especially in automated pipelines or agentic workflows that support x402 micropayments on Base. It is particularly useful for teams wanting per-commit or per-PR AI review without a recurring SaaS subscription, or for agents that need to programmatically audit diffs as part of a CI/CD or code quality workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:33:39.877Z","isFirstParty":false}