{"uid":"cap_VYZbVm7ucfZ0n4d-o13rm","slug":"hermes-micro-agent-code-explain-7ff49f4f","name":"Hermes Micro-Agent – Code Explain","description":"20 paid AI and data micro-tasks over HTTP 402 on Base (USDC): summarize, extract, keywords, sentiment, translate, rewrite, proofread, python_debug, code_lint, code_explain, code_refactor, code_review, json_minify, json_query, csv_to_json, hash, base64, convert, describe_image, probe_media. Each call is priced per-task and verified on-chain before execution.","url":"https://92.5.95.177.sslip.io/code_explain?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["prompt"],"properties":{"task":{"type":"string","description":"Which micro-task to run"},"input":{"type":"string","description":"Alias for prompt"},"prompt":{"type":"string","description":"Text to process"}}},"responseSchema":{"type":"string"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ASnpNUPQj8hmjZeOYl5oX","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","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 plain-English explanation of what the code does, powered by an AI micro-agent paid per-call via on-chain USDC on Base.","exampleAgentPrompt":"Can you explain what this code does in plain English? Here's the snippet: `def fibonacci(n): return n if n <= 1 else fibonacci(n-1) + fibonacci(n-2)` — it's a Python function and I want to understand how it works.","exampleUseCases":[{"title":"Onboarding junior developer to legacy codebase","prompt":"I just joined this team and inherited some old C code — can you explain what this function does so I can understand it before touching it? Here it is: `int bsearch(int *arr, int l, int r, int x) { if (r >= l) { int mid = l + (r - l) / 2; if (arr[mid] == x) return mid; if (arr[mid] > x) return bsearch(arr, l, mid - 1, x); return bsearch(arr, mid + 1, r, x); } return -1; }`"},{"title":"Non-developer reviewing automated script","prompt":"My developer sent me this Python script that runs every night — I'm not a programmer, can you explain in plain English what it actually does? Here's the code: `import os, shutil; [shutil.move(f, '/archive/'+f) for f in os.listdir('.') if f.endswith('.log') and os.path.getsize(f) > 1e6]`"},{"title":"Documenting undocumented open-source function","prompt":"I'm writing docs for an open-source library and need a clear explanation of this function so I can add it to the README — can you describe what it does and what it returns? `function debounce(fn, delay) { let timer; return function(...args) { clearTimeout(timer); timer = setTimeout(() => fn.apply(this, args), delay); }; }`"}],"resultDescription":"A plain-text string containing a natural-language explanation of the submitted code snippet — describing its purpose, logic flow, inputs, outputs, and any notable patterns or edge cases the AI identifies.","failureModes":["Empty or missing prompt field returns an error","On-chain payment verification failure causes 402 rejection with no execution","Ambiguous or minified code without context may yield vague explanation","Very large code snippets may exceed prompt limits and return truncated analysis","Network timeout to the raw-IP sslip.io host if server is unreachable"],"whenToPreferThis":"Choose this endpoint when you need a quick, per-call AI-generated explanation of a code snippet and want to pay only for what you use via USDC on Base (no subscription required). It is ideal for agentic workflows where code comprehension is one step in a larger pipeline and you need a lightweight, pay-as-you-go micro-task rather than a full IDE plugin or hosted LLM session.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:39.617Z","isFirstParty":false,"canonicalSlug":"hermes-micro-agent-code-explain-7ff49f4f"}