{"uid":"cap_eO8NcMJWozDE61gBvkMdl","slug":"apiacre-com-code-change-review-7681849e","name":"apiacre.com Code Change Review","description":"Compare caller-supplied before and after source snapshots without execution or network access, returning source fingerprints, syntax regressions, structural deltas, function-level changes, and bounded review findings.","url":"https://apiacre.com/v1/developer/code-change-review?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"string"},"before":{"type":"string"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}]},"language":{"type":"string"}}},"responseSchema":{"type":"json","example":{"data":{"after":{"lines":{"code":5,"blank":0,"total":5,"comments":0},"source":{"sha256":"f37990278fe5bda7fdae643ec96f54997271ed3992cefdd5f407736c2...","utf8Bytes":194,"characters":194},"classes":0,"functions":1},"before":{"lines":{"code":2,"blank":0,"total":2,"comments":0},"source":{"sha256":"69316f24997a9cbf73019f697f3f2373e39da67d1835885998775037c...","utf8Bytes":74,"characters":74},"classes":0,"functions":1},"changed":true,"summary":{"lineDelta":3,"classDelta":0,"codeLineDelta":3,"functionDelta":0},"analysis":{"method":"two deterministic code-metrics snapshots plus Python func...","version":"apiacre-code-change-review/1","limitations":["Static heuristics do not prove runtime behavior, correctn...","Function-level deltas are complete only when both Python ...","Renamed functions appear as one removal and one addition."]},"filename":"billing.py","findings":[{"id":"new-work-markers","message":"The change adds TODO, FIXME, HACK, or XXX markers.","evidence":{"added":1},"severity":"low"}],"language":"python","execution":{"codeExecuted":false,"networkAccessed":false},"attentionLevel":"medium","attentionScore":2,"reviewDecision":"review","functionChanges":{"added":[],"addedCount":0,"changedCount":1,"removedCount":0}},"meta":{"cached":false,"sources":[],"warnings":[],"duration_ms":42,"next_actions":[{"title":"Document diff","method":"POST","reason":"Inspect exact line additions, removals, and a bounded uni...","service":"document.diff"}]},"service":"developer.code-change-review","version":"1","request_id":"018f1f54-7f38-7ba2-8dc3-5f90272d9f1a"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UrFo6qmWkoob1IqnNkW6j","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares before/after source code snapshots to return syntax validation, structural deltas, function-level changes, complexity metrics, and bounded review findings without executing code or making network requests.","exampleAgentPrompt":"Can you review the change I made to billing.py — here's the original code and the updated version — and tell me if complexity went up, whether any functions changed signatures, and if there are any review flags I should know about?","exampleUseCases":[{"title":"Pre-merge code quality gate","prompt":"Before I merge this pull request, compare the before and after versions of payment_processor.py and tell me if cyclomatic complexity increased, any functions were removed, and whether the syntax is still valid in both versions."},{"title":"Detect accidental TODO markers in commit","prompt":"I just updated auth_service.py — can you diff the old and new source and flag if any TODO, FIXME, or HACK markers were accidentally introduced in the new version?"},{"title":"Refactor impact assessment","prompt":"I refactored my data_pipeline.py to split one large function into smaller ones — compare the before and after snapshots and give me the maintainability score delta, function count change, and overall review decision."}],"resultDescription":"Returns a JSON object containing: SHA-256 fingerprints and byte counts for both snapshots, syntax validity per version, line/code/comment counts, estimated cyclomatic complexity, maintainability signal scores, a summary delta object (line delta, complexity delta, branch point delta, etc.), a list of findings with severity and evidence, an attention level (low/medium/high), a review decision, function-level changes (added, removed, changed with parameter and complexity deltas), and execution/network access confirmation flags.","failureModes":["Invalid or unparseable source code in either snapshot causes syntax engine to report an error and may limit function-level diff","Truncated function lists when code is very large reduce completeness of function-level deltas","Renamed functions appear as one removal plus one addition rather than a rename","Language not supported by the syntax engine falls back to limited analysis","Missing required before or after fields returns a 4xx error","Very large source snapshots may exceed payload limits"],"whenToPreferThis":"Choose this endpoint when you need deterministic, static code-metrics comparison between two source snapshots without executing code or touching the network — especially when you want structured, machine-readable deltas (complexity, maintainability, branch points, function signatures) and bounded review findings with severity levels. Prefer it over LLM-based code review when reproducibility and fingerprint-level auditability matter, or when you need to enforce a code quality gate in an automated pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:44:03.298Z","isFirstParty":false,"canonicalSlug":"apiacre-com-code-change-review-7681849e"}