# DDG Git Repository Analyzer

> DDG Git Repository Analyzer is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Analyzes a Git repository and returns a bounded analysis artifact for AI agents, paid per-call via x402 USDC.

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/git-repo-analyze?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-git-repository-analyzer-5ba7afdb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_hxOz-IZYcc8qqxvDHP-jp

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 ddg-git-repository-analyzer-5ba7afdb -d '<json body>'
```

Example prompt: Can you analyze the git repository at https://github.com/org/myproject and give me a summary of its structure, main languages, and what it does?

## When to prefer this

Choose this endpoint when you need a bounded, pay-per-call git repository analysis without setting up raw provider credentials. It is ideal for AI agents operating autonomously with crypto payment rails (x402/USDC), one-off repository inspections, or pipelines where you want a structured artifact rather than raw API access to GitHub/GitLab. Prefer this over rolling your own git analysis when you want a single-call, metered result with no subscription overhead.

## Known failure modes

- Invalid or inaccessible repository URL returns an error response
- Private repositories without credentials will fail to clone/analyze
- Malformed POST body or missing required fields returns a 400-level error
- Payment failure via x402 returns a 402 Payment Required response
- Very large repositories may time out or return partial results
- Rate limiting may apply per wallet/payment address

## How this service works

DDG agent-payable service request

## Output

Returns a JSON object with {ok: true} plus a bounded analysis artifact containing structured insights about the repository — likely including language breakdown, directory structure, inferred purpose, key files, and summary metadata. Exact fields depend on DDG's analysis engine output.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-git-repository-analyzer-5ba7afdb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
