# Synergy Code Explainer

> Synergy Code Explainer is a paid API for AI agents from api.exo-trust.com, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-13).

Analyzes a pasted code snippet and returns a plain-language explanation of what it does, its execution flow, and potential risks — without executing the code.

## Facts

- Endpoint: POST https://api.exo-trust.com/execute/code_explain
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/synergy-code-explainer-703e15f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__lGeK0LQNsPv_h_YtO_vR

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 synergy-code-explainer-703e15f5 -d '<json body>'
```

Example prompt: Can you explain what this JavaScript function does, walk me through its flow step by step, and flag any risks — focus on security concerns: `function login(user, pass) { return db.query('SELECT * FROM users WHERE name=' + user); }`

## When to prefer this

Choose this endpoint when you need a safe, read-only explanation of an unfamiliar code snippet without any execution risk. Ideal for security audits, onboarding scenarios, code review assistance, or when the user pastes code and wants a plain-language breakdown. Prefer this over general LLM chat when you need a structured output covering functionality, flow, and risk in one call.

## Known failure modes

- Empty or missing 'code' field returns an error
- Extremely large code snippets may be truncated or rejected
- Unsupported or ambiguous language may reduce accuracy of flow analysis
- Obfuscated or minified code may yield incomplete explanations
- Network or payment authorization failures return 402 or 5xx errors

## How this service works

Explain a pasted code snippet: what it does, its flow, and risks. Read-only analysis; no execution.

## Output

A structured plain-language analysis including: (1) a summary of what the code does, (2) a step-by-step description of its execution flow, and (3) an assessment of potential risks such as security vulnerabilities, logic errors, or unsafe patterns. No code is executed during analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "code": {
   "type": "string"
  },
  "focus": {
   "type": "string"
  },
  "language": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "flow": [
    "example"
   ],
   "risks": [
    {}
   ],
   "overview": "example",
   "inputs_outputs": "example"
  },
  "status": "completed",
  "receipt": {
   "amount": 0.05,
   "method": "x402",
   "settled": true,
   "currency": "USDC"
  },
  "task_id": "00000000-0000-0000-0000-000000000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/synergy-code-explainer-703e15f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.exo-trust.com](https://www.zero.xyz/host/api.exo-trust.com/llms.txt)
