# Agent Commerce Desk – GitHub Repo Intelligence Snapshot

> Agent Commerce Desk – GitHub Repo Intelligence Snapshot is a paid API for AI agents from x402-wallet-readiness-service.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns a structured intelligence snapshot of a public GitHub repository including language breakdown, stars, open issues, default branch, and agent-scoped risk signals.

## Facts

- Endpoint: GET https://x402-wallet-readiness-service.vercel.app/api/x402/dev/repo-snapshot
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-commerce-desk-github-repo-intelligence-snapshot-070a5d10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WTin_NJjyx5Oiq1nO5inH

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 agent-commerce-desk-github-repo-intelligence-snapshot-070a5d10
```

Example prompt: Pull an intelligence snapshot for vercel/next.js — I want the language breakdown, star count, open issues, and any risk signals an agent should know about before depending on it.

## When to prefer this

Use this endpoint when an AI agent needs a quick, structured, agent-ready intelligence snapshot of a public GitHub repository — especially when assessing risk signals before taking a dependency, without needing to call GitHub's API directly or handle pagination.

## Known failure modes

- Invalid repo slug format (must match owner/repo pattern) returns a 400-level error
- Private or non-existent repository returns no data or an error
- Payment not fulfilled via x402 results in a 402 Payment Required response
- GitHub API rate limiting on the backend may cause intermittent failures

## How this service works

Checks Base wallets for USDC receiving readiness, publishes paid x402 data APIs, and sells fixed-price agent payment, developer-tool, VPS, wallet-risk, and QA implementation work.

## Output

A JSON object containing the repository full name, primary language, language percentage breakdown, star count, open issue count, default branch name, and an agentScoping block with detected risk signals (e.g. high_open_issue_count).

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "repo": "torvalds/linux"
  }
 }
}
```

## 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",
     "required": [
      "repo"
     ],
     "properties": {
      "repo": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_.-]+/[A-Za-z0-9_.-]+$",
       "description": "Public GitHub repository slug."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "request": {
   "repo": "vercel/next.js"
  },
  "service": "Agent Commerce Desk GitHub Repo Intelligence Snapshot",
  "languages": {
   "primary": "TypeScript",
   "breakdown": [
    {
     "percent": 80,
     "language": "TypeScript"
    }
   ]
  },
  "repository": {
   "stars": 130000,
   "fullName": "vercel/next.js",
   "openIssues": 3000,
   "defaultBranch": "canary"
  },
  "agentScoping": {
   "riskSignals": [
    "high_open_issue_count"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-commerce-desk-github-repo-intelligence-snapshot-070a5d10/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-wallet-readiness-service.vercel.app](https://www.zero.xyz/host/x402-wallet-readiness-service.vercel.app/llms.txt)
