# Repo Health Brief

> Repo Health Brief is a paid API for AI agents from relay402.georgespring.workers.dev, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Generates a concise health and risk brief for a GitHub repository, returning structured risk flags useful for agent planning and code review decisions.

## Facts

- Endpoint: GET https://relay402.georgespring.workers.dev/api/compose-repo-health-brief
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/repo-health-brief-fbd632ce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pRupRWFjG6dAFunWIkPwu

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 repo-health-brief-fbd632ce
```

Example prompt: Can you give me a quick health and risk brief for the repo openai/openai-python — I want to know if there are any red flags before I add it as a dependency?

## When to prefer this

Use this endpoint when an agent needs a fast, structured risk assessment of a GitHub repository before integrating a dependency, reviewing a PR, or planning automated workflows. It is ideal for pre-flight checks in CI/CD pipelines or agent orchestration flows where a human-readable risk brief is more useful than raw API data. Prefer it over manual GitHub API calls when you want opinionated, summarized risk flags rather than raw repository metadata.

## Known failure modes

- Invalid repo slug format (not owner/repo) returns a validation error
- Private or non-existent repositories may return no data or an error
- Pasted content exceeding 64,000 characters is rejected
- Rate limits or GitHub API unavailability may cause failures
- Ambiguous or incomplete repo notes may produce low-confidence output

## How this service works

repository health brief from a GitHub repo slug or pasted repository notes, returning concise risk flags for agent planning.

## Output

A concise textual brief summarizing repository health signals and risk flags, including indicators such as maintenance activity, open issue trends, contributor patterns, license status, and any notable security or quality concerns — formatted for quick agent consumption and planning decisions.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "properties": {
      "repo": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"
      },
      "content": {
       "type": "string",
       "maxLength": 64000
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/repo-health-brief-fbd632ce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from relay402.georgespring.workers.dev](https://www.zero.xyz/host/relay402.georgespring.workers.dev/llms.txt)
