# AgentDiet GitHub Audit

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

Fetches and distills a GitHub repository's documentation, code, or metadata into compressed, agent-ready markdown with token savings metrics

## Facts

- Endpoint: GET https://serp-extract-72343955726.us-central1.run.app/v1/github-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-github-audit-22d0675f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_o0EaKRK1LuQWFjcACn5oK

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-22d0675f
```

Example prompt: Can you audit the GitHub repo at github.com/openai/openai-python and give me a distilled, token-efficient markdown summary of what it does, its key features, and documentation?

## When to prefer this

Choose this endpoint when an agent needs to quickly understand a GitHub repository's purpose, documentation, or structure without consuming large token budgets. It is especially valuable in agentic pipelines that evaluate open-source libraries, perform developer due diligence, or need to pass repository summaries downstream to other tools. Prefer it over raw GitHub API calls when token efficiency and agent-readable markdown output are priorities.

## Known failure modes

- Invalid or inaccessible GitHub repository URL returns an error status
- Private repositories without credentials may return access denied
- Repository with no README or documentation may yield minimal content
- Rate limiting or GitHub API throttling may cause failures
- Payment not received via x402/HTTP 402 will block the response
- Malformed request parameters result in bad request errors

## 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 'data' field containing distilled markdown (title and content), plus an 'roi_proof' object showing raw token count, distilled token count, compression ratio percentage, tokens saved, and an ROI multiplier — giving the agent both the summarized GitHub content and quantified token efficiency gains.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "repo"
   ],
   "properties": {
    "repo": {
     "type": "string",
     "minLength": 1,
     "description": "GitHub repository in owner/name format (e.g. modelcontextprotocol/servers or langchain-ai/langgraph)"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "status",
    "roi_proof",
    "data"
   ],
   "properties": {
    "data": {
     "type": "object"
    },
    "status": {
     "type": "string"
    },
    "roi_proof": {
     "type": "object"
    }
   }
  }
 }
}
```

## 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-22d0675f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from serp-extract-72343955726.us-central1.run.app](https://www.zero.xyz/host/serp-extract-72343955726.us-central1.run.app/llms.txt)
