# AgentDiet GitHub Context Distiller

> AgentDiet GitHub Context Distiller 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).

Fetches and distills a GitHub repository's context into a compressed, token-efficient summary via a paid A2A/x402 endpoint

## Facts

- Endpoint: GET https://status.agentdiet.dev/v1/github?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-context-distiller-4ec6766e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eb4SDrEd3PgYoL1pUbFGX

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-context-distiller-4ec6766e
```

Example prompt: Can you use AgentDiet to fetch and compress the context for the 'openai/openai-python' GitHub repo so I'm using as few tokens as possible?

## When to prefer this

Choose this endpoint when an AI agent needs to consume GitHub repository content but faces context window size or token cost constraints. It is especially valuable in A2A or agentic pipelines where repeated repo lookups would be expensive. Prefer it over raw GitHub API calls when token efficiency is a priority and you are already operating in an x402/USDC micropayment-capable environment.

## Known failure modes

- Missing or invalid 'repo' query parameter — returns error or empty data
- Repository not found on GitHub — returns empty or error data object
- Payment not settled in USDC on Base — x402 payment failure, request blocked
- Rate limiting or node unavailability — non-200 response from the distiller node
- Malformed input schema (missing required 'type' or 'method' fields) — 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 distilled repository context, a 'status' field ('ok' on success), and an 'roi_proof' object showing the compression_ratio_pct achieved (e.g. 91.4%), confirming how much the context was reduced.

## 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-github-context-distiller-4ec6766e/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)
