{"uid":"cap_OkFhoc9fNQVcyUmYXmWnh","slug":"hermes-micro-agent-code-explain-1ca96259","name":"Hermes Micro-Agent — Code Explain","description":"Hermes Micro-Agent — pay-per-call AI and data micro-tasks for agents. 20 paid tasks ($0.10–$0.25 USDC on Base) plus free hash, base64 and JSON minify endpoints. Every call is verified on-chain before execution.","url":"https://hermesmicroservice.theworkpc.com/code_explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"task":{"type":"string","example":"code_explain","description":"Which micro-task to run"},"input":{"type":"string","description":"Alias for prompt"},"prompt":{"type":"string","description":"Text to process"}}},"responseSchema":{"type":"json","example":{"task":"code_explain","result":"<task output>","status":"success","paid_usdc":"0.10"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.06","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.06/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.06","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0q7o11_fjxH_Haq3OaZ2r","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.06","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts a code snippet and returns a natural-language explanation of what the code does, paid per-call via HTTP 402 on Base (USDC).","exampleAgentPrompt":"Can you explain what this Python function does in plain English? Here's the code: `def fib(n): return n if n <= 1 else fib(n-1) + fib(n-2)`","exampleUseCases":[{"title":"Onboarding developer understanding legacy code","prompt":"I inherited this JavaScript function and have no idea what it does — can you explain it to me in plain English? Here it is: `function debounce(fn, delay) { let t; return function(...args) { clearTimeout(t); t = setTimeout(() => fn.apply(this, args), delay); }; }`"},{"title":"Non-technical stakeholder reviewing a PR","prompt":"My team submitted this SQL query and I need to understand what it's actually doing before I approve it — can you explain it? Here's the query: `SELECT u.name, COUNT(o.id) FROM users u LEFT JOIN orders o ON u.id = o.user_id GROUP BY u.id HAVING COUNT(o.id) > 5;`"},{"title":"Student learning from unfamiliar code sample","prompt":"I found this Rust snippet in a tutorial but the explanation is unclear — can you walk me through exactly what this code does? `fn main() { let v: Vec<i32> = (1..=5).map(|x| x * x).collect(); println!(\"{:?}\", v); }`"}],"resultDescription":"A plain-language string explaining the logic, purpose, and behavior of the submitted code snippet — no structured JSON, just a readable text response.","failureModes":["Missing 'prompt' field returns an error — the code snippet must be provided","Payment not confirmed on Base/USDC results in HTTP 402 and no execution","Overly large code snippets may exceed input limits or increase latency","Ambiguous or incomplete code fragments may yield vague or incorrect explanations","Network or on-chain verification failures can cause timeouts"],"whenToPreferThis":"Choose this endpoint when you need a quick, paid, per-call AI explanation of a code snippet without managing your own LLM infrastructure. Ideal for agent workflows that occasionally need code comprehension at low cost ($0.15 USDC) with on-chain payment verification. Prefer this over general LLM APIs when you want a micro-task-scoped, metered call that avoids subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:05:30.550Z","isFirstParty":false,"canonicalSlug":"hermes-micro-agent-code-explain-1ca96259"}