# Hermes Micro-Agent – Code Review

> Hermes Micro-Agent – Code Review is a paid API for AI agents from hermesmicroservice.theworkpc.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-10-30).

Performs an AI-powered code review on submitted source code, identifying bugs, style issues, and improvement suggestions, paid per-call via HTTP 402 on Base (USDC).

## Facts

- Endpoint: POST https://hermesmicroservice.theworkpc.com/code_review?utm_source=zero.xyz
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hermes-micro-agent-code-review-b8a3269d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KLiB__JF-R9e75fGBwDyN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hermes-micro-agent-code-review-b8a3269d -d '<json body>'
```

Example prompt: Can you do a code review on this Python function and tell me about any bugs, bad practices, or improvements I should make? Here's the code: `def fetch(url): import requests; r = requests.get(url); return r.json()`

## When to prefer this

Choose this endpoint when you need a fast, per-call, pay-as-you-go AI code review without setting up a full CI/CD integration or subscribing to a code analysis SaaS. Ideal for agents that occasionally need to review code snippets on demand, especially when operating in a crypto-native payment environment using USDC on Base via HTTP 402.

## Known failure modes

- Payment not received or USDC balance insufficient — HTTP 402 returned, task not executed
- Missing required `prompt` field — request rejected with validation error
- Malformed or empty code snippet — may return generic or low-quality feedback
- Network timeout if code snippet is very large
- Unsupported language or ambiguous task context — review may be superficial

## How this service works

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.

## Output

A plain-text string containing AI-generated code review feedback, including identified bugs, anti-patterns, style violations, security concerns, and concrete suggestions for improvement.

## Request schema (JSON Schema)

```json
{
 "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"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "string"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hermes-micro-agent-code-review-b8a3269d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hermesmicroservice.theworkpc.com](https://www.zero.xyz/host/hermesmicroservice.theworkpc.com/llms.txt)
