# AgentDiet GitHub Audit Endpoint

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

Audits a GitHub repository and returns a distilled, agent-ready markdown summary with security, code quality, and contributor intelligence insights.

## Facts

- Endpoint: GET https://sec-intel-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-endpoint-b863f542
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wDslEQxC_uxF1yUEI8T9o

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-endpoint-b863f542
```

Example prompt: Can you run a GitHub audit on the repository 'openai/tiktoken' and give me a distilled markdown summary of its security posture, contributors, and code quality?

## When to prefer this

Choose this endpoint when an AI agent needs to quickly audit, summarize, or assess a GitHub repository for security, contributor, or code quality signals — especially when token efficiency matters and you want a pre-distilled markdown output rather than raw GitHub API data. Ideal for due diligence workflows, dependency vetting, or open source OSINT tasks where processing full repo content directly would be prohibitively expensive in tokens.

## Known failure modes

- Invalid or non-existent GitHub repository returns an error status
- Private repository without proper access credentials returns 403 or empty result
- Payment failure via x402/HTTP 402 if USDC balance is insufficient
- Rate limiting or upstream GitHub API throttling causing delayed or failed response
- Malformed repository URL input causing a parsing error

## 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 containing a distilled markdown report of the GitHub repository audit (title, content), along with ROI proof metadata showing raw token count, distilled token count, compression ratio percentage, and ROI multiplier — enabling agents to consume dense repo intelligence at a fraction of the token cost.

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