# AgentDiet Dependency Audit

> AgentDiet Dependency Audit is a paid API for AI agents from status.agentdiet.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-22).

Audits a repository's dependencies and returns a compressed, token-efficient report with compression ratio proof for AI agent context windows.

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/dependency-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-dependency-audit-2d04b6be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_44fukqGAiUjec2l_UaxI7

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-dependency-audit-2d04b6be
```

Example prompt: Run a dependency audit on the repo 'my-org/my-app' and give me the compressed report — I need it to fit inside my agent's context window without wasting tokens.

## When to prefer this

Choose this endpoint when an AI agent needs to audit a software repository's dependencies but must keep the resulting report compact enough to fit within a limited context window. It is especially useful in automated agent pipelines where token efficiency is critical, or when you want proof of compression savings (ROI proof). Prefer this over raw dependency scanners when downstream LLM reasoning steps have strict context constraints.

## Known failure modes

- Missing or invalid 'repo' query parameter may return an empty or error response
- Repository not found or inaccessible returns error in data field
- Payment failure via x402/USDC results in 402 Payment Required before audit runs
- Network timeout if repo is very large or upstream service unavailable
- Invalid HTTP method returns schema validation error

## How this service works

Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://status.agentdiet.dev settling in USDC on Base.

## Output

Returns a JSON object with a 'data' field containing the dependency audit results, a 'status' field indicating success, and an 'roi_proof' object showing the compression_ratio_pct (e.g. 91.4%) achieved by distilling the report for use in AI agent context windows.

## 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-dependency-audit-2d04b6be/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from status.agentdiet.dev](https://www.zero.xyz/host/status.agentdiet.dev/llms.txt)
