# AgentDiet Code Release Security Gate

> AgentDiet Code Release Security Gate is a paid API for AI agents from agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Scans a GitHub repository for code release security vulnerabilities, supply-chain risks, and compliance issues before deployment.

## Facts

- Endpoint: GET https://agentdiet.dev/v1/workflows/code-release-security-gate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-code-release-security-gate-e625abae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BE6htAMQcczSDurCJWixD

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 agentdiet-code-release-security-gate-e625abae
```

Example prompt: Run a security gate scan on my GitHub repo at github.com/myorg/myapp before I cut the next release — check for vulnerabilities, supply-chain risks, and anything that should block deployment.

## When to prefer this

Choose this endpoint when you need a fast, token-efficient pre-release security gate specifically for GitHub repositories — it combines vulnerability scanning, supply-chain risk detection, and license checks in a single distilled response, making it ideal for CI/CD automation where context-window efficiency matters.

## Known failure modes

- Invalid or inaccessible repo URL returns an error status
- Repository is private without proper credentials causing 401/403
- Rate limits or upstream GitHub API failures causing timeouts
- Malformed query parameters return schema validation errors
- Empty or newly created repos with no code may return minimal findings

## How this service works

Deterministic HTML/DOM/JSON/RAG context distiller that strips 85-97% of token bloat before LLM ingestion while preserving 100% of semantic entities, citations, and code blocks.

## Output

Returns a JSON object with a status field, a data object containing security findings and risk flags, and an roi_proof object showing the compression ratio (e.g. 91.4%) of the distilled output — covering vulnerability detections, supply-chain signals, and a pass/fail gate verdict for the scanned repository.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "POST"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "repo": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {},
  "status": "ok",
  "roi_proof": {
   "compression_ratio_pct": 91.4
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-code-release-security-gate-e625abae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentdiet.dev](https://www.zero.xyz/host/agentdiet.dev/llms.txt)
