# AI Rook Code Review

> AI Rook Code Review is a paid API for AI agents from agents.ai-rook.com, paid per call via x402, $0.025/call, status unknown (last checked 2026-09-15).

Performs automated code review analysis on submitted code, returning structured feedback and suggestions via pay-per-call API on the x402 protocol

## Facts

- Endpoint: GET https://agents.ai-rook.com/api/code-review
- Price: $0.025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ai-rook-code-review-0e8fc135
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WguQFOFW33LJKiRWlvskV

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 ai-rook-code-review-0e8fc135
```

Example prompt: Can you do an automated code review on this function I wrote and tell me if there are any bugs, style issues, or improvements I should make?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-signup code review that settles instantly in USDC on Base mainnet via the x402 protocol. Ideal for AI agents that need programmatic code quality feedback without maintaining API key credentials or subscriptions. Best suited for lightweight, on-demand code audits within automated pipelines where cost-per-call transparency and blockchain-based reputation tracking (ERC-8004) matter.

## Known failure modes

- No code or malformed input provided — returns error with no review output
- Payment not received or insufficient USDC balance — x402 payment required before response
- Code too long or complex for single call — may return partial review or timeout
- Unsupported language or encoding — may return generic or no feedback
- Network issues on Base mainnet — payment confirmation delays can cause timeouts

## How this service works

Live crypto trading intelligence for AI agents — real-time BTC signals, CVD, order flow, and active strategy setups, no API keys or signup. 43 pay-per-call endpoints total: trading data, AI inference (MiniMax M2.7 (456B-parameter Mixture-of-Experts)), web utilities, verification, and ERC-8183 ACP escrow with on-chain ERC-8004 reputation attestation (Agent ID 59646). Four payment rails: USDC on Base mainnet (default), USDC on Solana mainnet, HBAR/USDC on Hedera testnet, USDT on BNB Chain testnet. One free trial call per endpoint. Prices from $0.001/call.

## Output

Returns structured code review feedback including identified bugs, style violations, security concerns, performance issues, and suggested improvements for the submitted code. Delivered as a JSON response with findings categorized by severity or type. Each call posts permanent on-chain feedback to the ERC-8004 ReputationRegistry.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ai-rook-code-review-0e8fc135/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.ai-rook.com](https://www.zero.xyz/host/agents.ai-rook.com/llms.txt)
