# Hermes Micro-Agent – Code Lint

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

Lints submitted code for style, syntax, and quality issues using an AI micro-task paid per-call over HTTP 402 in USDC on Base.

## Facts

- Endpoint: POST https://hermesmicroservice.theworkpc.com/code_lint?utm_source=zero.xyz
- Price: $0.15/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-lint-2127553b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Xc-jLVuNi58XKfHI_W-Tm

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-lint-2127553b -d '<json body>'
```

Example prompt: Can you lint this Python function and tell me what style or syntax issues it has? Here's the code: `def foo(x,y):\n  return x+y`

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use AI-powered lint check without provisioning a dedicated linting service or API key. It is ideal for lightweight, one-off code quality checks in agent workflows where spinning up a local linter is not practical and per-call micropayment via USDC on Base is acceptable.

## Known failure modes

- Missing or empty prompt field returns an error
- Payment verification fails on-chain causing request rejection
- Unsupported language or ambiguous code causes vague lint output
- Network timeout from the hosted micro-service
- Malformed JSON body causes 400 error

## 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 describing lint findings, style violations, syntax issues, and code quality observations found in the submitted code snippet. The response may include line references, rule names, or recommended fixes depending on the AI model's output.

## 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-lint-2127553b/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)
