{"uid":"cap__lGeK0LQNsPv_h_YtO_vR","slug":"synergy-code-explainer-703e15f5","name":"Synergy Code Explainer","description":"Explain a pasted code snippet: what it does, its flow, and risks. Read-only analysis; no execution.","url":"https://api.exo-trust.com/execute/code_explain","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"code":{"type":"string"},"focus":{"type":"string"},"language":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":{"flow":["example"],"risks":[{}],"overview":"example","inputs_outputs":"example"},"status":"completed","receipt":{"amount":0.05,"method":"x402","settled":true,"currency":"USDC"},"task_id":"00000000-0000-0000-0000-000000000000"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.2","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.2/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.2","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZXSXZue7hWZ0lyPhc4zJQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.2","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a pasted code snippet and returns a plain-language explanation of what it does, its execution flow, and potential risks — without executing the code.","exampleAgentPrompt":"Can you explain what this JavaScript function does, walk me through its flow step by step, and flag any risks — focus on security concerns: `function login(user, pass) { return db.query('SELECT * FROM users WHERE name=' + user); }`","exampleUseCases":[{"title":"Security review of unfamiliar code","prompt":"I found this Python script on our server and I'm not sure what it does — can you explain it, trace through its logic, and tell me if there's anything risky or suspicious about it? Here's the code: `import subprocess; subprocess.call(os.environ.get('CMD','ls'))`"},{"title":"Onboarding new developer to codebase","prompt":"We just onboarded a junior dev and they're confused about this authentication middleware snippet — can you explain what it does, how it flows, and any edge cases they should watch out for? The language is TypeScript."},{"title":"Auditing third-party library code","prompt":"Before we ship, I want to understand this utility function we copied from an open-source library — explain what it does, walk through the logic, and highlight any risks like memory leaks or unsafe operations. Here's the snippet in Rust."}],"resultDescription":"A structured plain-language analysis including: (1) a summary of what the code does, (2) a step-by-step description of its execution flow, and (3) an assessment of potential risks such as security vulnerabilities, logic errors, or unsafe patterns. No code is executed during analysis.","failureModes":["Empty or missing 'code' field returns an error","Extremely large code snippets may be truncated or rejected","Unsupported or ambiguous language may reduce accuracy of flow analysis","Obfuscated or minified code may yield incomplete explanations","Network or payment authorization failures return 402 or 5xx errors"],"whenToPreferThis":"Choose this endpoint when you need a safe, read-only explanation of an unfamiliar code snippet without any execution risk. Ideal for security audits, onboarding scenarios, code review assistance, or when the user pastes code and wants a plain-language breakdown. Prefer this over general LLM chat when you need a structured output covering functionality, flow, and risk in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:50:25.418Z","isFirstParty":false}