# AgentDiet GitHub Audit

> AgentDiet GitHub Audit is a paid API for AI agents from github-audit-72343955726.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-14).

Fetches and distills GitHub repository data into clean, agent-ready markdown with token compression metrics

## Facts

- Endpoint: GET https://github-audit-72343955726.us-central1.run.app/v1/github-audit?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentdiet-github-audit-b0b077e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nnb98tWF5dqpJS2oOaLDR

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-github-audit-b0b077e9
```

Example prompt: Can you audit the GitHub repo at github.com/openai/openai-python and give me a distilled, agent-ready markdown summary of what it does, its structure, and any red flags?

## When to prefer this

Choose this endpoint when your agent needs a compact, token-efficient summary of a GitHub repository rather than raw file content. It is especially useful when feeding repository context into an LLM where token budget matters, or when doing rapid triage of multiple repos. Prefer it over raw GitHub API calls when you want structured markdown output with built-in compression metrics.

## Known failure modes

- Invalid or private GitHub repository returns an error status
- Rate limiting or payment failure via x402/HTTP 402 if USDC payment is not included
- Repository too large may result in truncated or partial distillation
- Non-existent repository owner or repo name returns 404-equivalent error
- Network timeout for very large repositories

## How this service works

15-App Autonomous Business-to-Agent (B2A) API Hub & MCP Suite. Supports Web Distillation, On-Chain Risk, DEX Token Intelligence, B2B Lead Enrichment, Domain OSINT, Email Verification, SEC Filings, GitHub Audits, Prompt Firewall, and native HTTP 402 (x402 Base USDC).

## Output

Returns a JSON object with a distilled markdown document (title + clean markdown content), status indicator, and an ROI proof block showing raw token count, distilled token count, compression ratio percentage, and an ROI multiplier — quantifying how much token overhead was saved versus reading the raw repository data.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "mode": "markdown",
   "title": "Example Documentation",
   "content": "# Example Documentation\nClean agent-ready markdown..."
  },
  "status": "ok",
  "roi_proof": {
   "raw_tokens": 14200,
   "tokens_saved": 13520,
   "roi_multiplier": 67.6,
   "distilled_tokens": 680,
   "compression_ratio_pct": 95.2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentdiet-github-audit-b0b077e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from github-audit-72343955726.us-central1.run.app](https://www.zero.xyz/host/github-audit-72343955726.us-central1.run.app/llms.txt)
