# AgentGate GitHub Issue Triage

> AgentGate GitHub Issue Triage is a paid API for AI agents from x402.agentsea.vn, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Analyzes a GitHub issue title and body to automatically classify it by category, priority, severity, and generate a root cause hypothesis.

## Facts

- Endpoint: POST https://x402.agentsea.vn/v1/code/triage-issue
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentgate-github-issue-triage-fc9eb090
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_knBhCI2WlrWZ5UXkD65nE

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 agentgate-github-issue-triage-fc9eb090 -d '<json body>'
```

Example prompt: Triage this GitHub issue for me — title: 'Auth middleware crashes on null token', body: 'When a request arrives without an Authorization header, the middleware throws an unhandled NullPointerException and returns 500. Stack trace: at AuthMiddleware.handle line 42...' The repo is myorg/backend and it's a TypeScript project.

## When to prefer this

Choose this endpoint when you need automated, structured triage of GitHub issues at scale — especially for CI/CD pipelines, issue inbox bots, or developer agent workflows that need to label and prioritize bugs without human review. It is particularly valuable when you want a machine-generated root cause hypothesis alongside classification, rather than just a simple label. Prefer it over generic LLM calls when you want a consistent, schema-validated triage output (category, priority, severity) that downstream systems can consume programmatically.

## Known failure modes

- Missing required title or body fields returns a 400 validation error
- Extremely vague or one-line issue bodies may produce low-confidence or generic root cause hypotheses
- Payment failure via x402/USDC may result in 402 Payment Required before processing
- Issues written in unsupported or uncommon languages may yield less precise category classification
- Very long stack traces or bodies may be truncated, affecting hypothesis quality

## How this service works

Dual-stack x402 & MPP autonomous payment gateway. Per-request micro-utilities for AI agents: clean web scraping ($0.001), prompt injection defense, and Solana token audit settled in USDC on Base L2 & Solana.

## Output

Returns a JSON object with the issue category (e.g. bug, feature, question), priority label (P0–P3), severity rating (CRITICAL, HIGH, MEDIUM, LOW), and a triage_summary containing a root_cause_hypothesis string explaining the most likely underlying cause of the reported problem.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "title",
    "body"
   ],
   "properties": {
    "body": {
     "type": "string",
     "description": "GitHub Issue description/body text with optional error trace"
    },
    "title": {
     "type": "string",
     "description": "GitHub Issue Title"
    },
    "language": {
     "type": "string",
     "description": "Optional primary language (Python, TypeScript, Rust)"
    },
    "repo_name": {
     "type": "string",
     "description": "Optional repository name (owner/repo)"
    }
   }
  },
  "output": {
   "title": "Bug in auth middleware",
   "category": "bug",
   "priority": "P0",
   "severity": "CRITICAL",
   "triage_summary": {
    "root_cause_hypothesis": "Suspected bug in core handling logic"
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "title": "Bug in auth middleware",
  "category": "bug",
  "priority": "P0",
  "severity": "CRITICAL",
  "triage_summary": {
   "root_cause_hypothesis": "Suspected bug in core handling logic"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentgate-github-issue-triage-fc9eb090/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentsea.vn](https://www.zero.xyz/host/x402.agentsea.vn/llms.txt)
