# TaskFleet Code Review

> TaskFleet Code Review is a paid API for AI agents from taskfleet.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-15).

Reviews code or a unified diff (up to 60k chars) and returns structured findings with line numbers, severity, issue descriptions, and fix suggestions.

## Facts

- Endpoint: POST https://taskfleet.net/code-review?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/taskfleet-code-review-0252aeda
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OG8t9oUPcNls5YXNMbFzO

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 taskfleet-code-review-0252aeda -d '<json body>'
```

Example prompt: Can you do a security-focused code review of this Python function I just wrote and give me back the findings as JSON with line numbers, severity, and suggested fixes?

## When to prefer this

Choose this endpoint when you need machine-readable, structured code review findings (JSON with line/severity/fix) that can be consumed programmatically by a CI pipeline or agent workflow. Prefer it over generic LLM prompting when you want guaranteed-valid JSON output format, line-level specificity, and per-finding severity classification. Especially useful for reviewing unified diffs from pull requests or performing focused audits (e.g. security-only).

## Known failure modes

- Input exceeds 60k character limit — request rejected
- Neither 'code' nor 'diff' field provided — missing required body content
- Invalid JSON body structure — 400 bad request
- Language hint unrecognized — review proceeds without language-specific rules
- Payment not attached or insufficient — x402 payment required error
- Timeout on very large or complex inputs near the character limit

## How this service works

Review code or a diff (up to 60k chars). Default output: guaranteed-valid JSON findings [{line, severity, issue, fix}]. Input: { code? | diff?, language?, focus?, format? ('json'|'text') }.

## Output

A guaranteed-valid JSON array of findings, each containing: line number, severity level, description of the issue, and a suggested fix. Optionally returns plain text if format is set to 'text'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "code": {
       "type": "string",
       "description": "Code to review (max 60k chars; or provide diff)"
      },
      "diff": {
       "type": "string",
       "description": "Unified diff to review (max 60k chars)"
      },
      "focus": {
       "type": "string",
       "description": "e.g. 'security'"
      },
      "format": {
       "type": "string",
       "description": "json (default) | text"
      },
      "language": {
       "type": "string",
       "description": "Language hint"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/taskfleet-code-review-0252aeda/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from taskfleet.net](https://www.zero.xyz/host/taskfleet.net/llms.txt)
