{"uid":"cap_fLYuNKX7fCAHt8QikSxz6","slug":"code-explainer-summary-steps-i-o-risks-complexity-ba9c044f","name":"Code Explainer: Summary, Steps, I/O, Risks & Complexity","description":"Explain code: summary, step-by-step, inputs/outputs, visible risks, complexity — Genesis402 / UnyKorn Operator Network","url":"https://twin.unykorn.org/ai/code-explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"params":{"type":"object","properties":{"code":{"type":"string","description":"required, up to 12,000 chars"},"language":{"type":"string","description":"optional"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"type":"code-explain","receipt":{"tx_hash":"0x<64hex>","amount_usd":0.006,"receipt_id":"g402-<16hex>"},"sources":[{"ok":true,"name":"<source>"}],"limitations":"<text>","generated_at":"<iso time>","evidence_hash":"sha256:<64hex>"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.006","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.006/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.006","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dmHfi0QZqptPizp2sgxw3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.006","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a code snippet and returns a plain-English explanation covering its summary, step-by-step logic, inputs/outputs, visible risks, and complexity assessment.","exampleAgentPrompt":"Can you explain this Python function to me — give me a plain-English summary, walk through it step by step, tell me what it takes as input and what it returns, flag any visible risks, and rate how complex it is? Here's the code: [paste code here]","exampleUseCases":[{"title":"Onboarding to unfamiliar codebase","prompt":"I just inherited this JavaScript module and have no idea what it does — can you explain it step by step, tell me what it takes in and spits out, and flag anything that looks risky or overly complex?"},{"title":"Code review risk check","prompt":"Before I merge this Python function into production, can you analyze it for visible risks, explain what it does, and give me a sense of its complexity?"},{"title":"Teaching code to a non-developer","prompt":"My product manager wants to understand what this SQL stored procedure does — can you give a plain-English summary and a step-by-step walkthrough of its logic without too much jargon?"}],"resultDescription":"Returns a structured explanation of the submitted code including: a high-level summary of purpose, a step-by-step walkthrough of the logic, descriptions of inputs and outputs, any visible risks (e.g. security vulnerabilities, error-prone patterns), and a complexity assessment.","failureModes":["Code exceeds 12,000 character limit — returns an error or truncated analysis","Unsupported or ambiguous language without the optional language field — may produce less accurate results","Highly obfuscated or minified code may yield a shallow explanation","Network or payment failure via x402 protocol — call is not executed"],"whenToPreferThis":"Choose this endpoint when you need a multi-dimensional explanation of a code snippet covering not just what it does but also step-by-step logic, I/O contract, risk flags, and complexity — rather than a simple one-liner description. Particularly useful for code review workflows, onboarding, documentation generation, or educating non-technical stakeholders. Supports up to 12,000 characters of code and optionally accepts a language hint for more accurate results.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:15:00.285Z","isFirstParty":false,"canonicalSlug":"code-explainer-summary-steps-i-o-risks-complexity-ba9c044f"}