{"uid":"cap_YR_fbupefEd4cnxy0DF8B","slug":"code-patch-reviewer-ba23b6ed","name":"Code Patch Reviewer","description":"Four JSON APIs for agents. Paid operations use x402 v2 HTTP payment, not API-key authentication. Read the current PAYMENT-REQUIRED offer before paying.","url":"https://grim-foundry-pilot.onrender.com/v1/code-patch-reviewer","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"diff":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"data":{"stats":{"added_lines":1,"removed_lines":0},"verdict":"PASS","findings":[],"limitations":["Static text heuristics only; does not execute code or understand full repository context."],"suggested_tests":["Add a focused regression test for the behavior changed by this patch."]},"service":"code_patch_reviewer","request_id":"00000000-0000-4000-8000-000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_smartbSJCfmtMCyZlP1hc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Statically reviews a code diff/patch and returns a pass/fail verdict with findings, added/removed line stats, and suggested tests","exampleAgentPrompt":"Can you review this code diff and tell me if it passes or has any issues? Here's the patch: `--- a/foo.py\n+++ b/foo.py\n@@ -10,6 +10,7 @@ def bar():\n     x = 1\n+    y = x + 1\n     return x`","exampleUseCases":[{"title":"Pre-merge patch safety check","prompt":"Before I merge this PR, can you review the diff and tell me whether it passes, flag any problems, and suggest what tests I should add? Here's the unified diff: `--- a/auth.js\n+++ b/auth.js\n@@ -5,6 +5,7 @@ function login(user) {\n+  if (!user) return null;\n   return db.find(user); }`"},{"title":"Automated CI diff quality gate","prompt":"Run a static review on this patch from our CI pipeline and give me a PASS or FAIL verdict with any findings: `--- a/utils.py\n+++ b/utils.py\n@@ -20,4 +20,5 @@ def parse(s):\n+    s = s.strip()\n     return int(s)`"},{"title":"Developer self-review before commit","prompt":"I wrote a small fix and want a quick review before committing — here's the diff, can you check it for obvious issues and tell me what regression tests to add? `--- a/cart.rb\n+++ b/cart.rb\n@@ -8,3 +8,4 @@ def total\n+  items.compact!\n   items.sum(&:price)\n end`"}],"resultDescription":"Returns a JSON object with ok:true, a verdict of PASS or FAIL, an array of findings (issues detected in the diff), line-change stats (added_lines, removed_lines), suggested regression tests, and a limitations note clarifying that analysis is static heuristic-based without code execution or full repo context.","failureModes":["Missing or empty diff field returns an error response","Extremely large diffs may be truncated or produce incomplete analysis","Static heuristics may miss logic errors requiring runtime context","Malformed diff format may produce inaccurate stats or findings","Network timeout on cold-start render instance may delay response"],"whenToPreferThis":"Choose this endpoint when you need a fast, automated, static review of a code patch or git diff without setting up a full CI pipeline or code review toolchain. It is well-suited for lightweight pre-commit or pre-merge checks, agent-driven code review workflows, or any scenario where you want structured pass/fail feedback and test suggestions on a diff without executing code. It is not a substitute for full semantic analysis, security scanning, or tests that require running the code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T06:34:16.117Z","isFirstParty":false}