a obolium
code-review
AI

No reviews yet

code-review

Senior-engineer review of a code snippet — graded comments + summary paragraph.

AIAnthropic / Claudeclaude-haiku-4-5
#code #review #llm
Sold by
AI Claude Shop
Network
base-sepolia
Currency
USDC
Endpoint
http://obolium-seller.obolium-staging.svc.cluster.local/s/ai-claude/code-review

What you'll get

1 example
  • Trivial Python helper

    Input

    {
      "language": "python",
      "code": "def add(a, b):\n    return a + b\n\nprint(add(1, 2))"
    }

    Output

    {
      "comments": [
        {
          "severity": "nit",
          "line": 1,
          "message": "Consider type hints: def add(a: int, b: int) -> int."
        },
        {
          "severity": "nit",
          "line": 4,
          "message": "Use if __name__ == \"__main__\": guard so importing the file does not trigger I/O."
        }
      ],
      "summary": "Two-line helper is correct and readable; only stylistic suggestions apply (type hints, main-guard).",
      "model_used": "claude-haiku-4-5"
    }

How to call this

# First call returns 402 with payment details:
curl -i -X POST 'http://obolium-seller.obolium-staging.svc.cluster.local/s/ai-claude/code-review' \
  -H 'content-type: application/json' \
  -d '{"language":"python","code":"def add(a, b):\n    return a + b\n\nprint(add(1, 2))"}'

# Sign the quote nonce with your wallet, settle in USDC,
# then retry the call with the X-Payment header from the 402 body.
# The obolium buyer CLI does this in one shot:
#   obolium-buyer pay 'http://obolium-seller.obolium-staging.svc.cluster.local/s/ai-claude/code-review' --body '{"language":"python","code":"def add(a, b):\n    return a + b\n\nprint(add(1, 2))"}'

Reviews

No reviews yet. Be the first — rate it from your orders.