REST API

All endpoints are served from https://www.glaux.dev. Showcase repositories (tobi/qmd, vercel/next.js, nousresearch/hermes-agent) are publicly accessible. Other repositories require authentication.

Base URL: https://www.glaux.dev/api


File Intelligence

GET /api/repos/:org/:repo/file/*path

Pre-edit context for a single file: churn metrics, co-change relationships (with trend field), linked issues, centrality, community membership, and aggregated risk context.

Response:

{
  "path": "src/store.ts",
  "churn": {
    "commitCount": 187,
    "recentCommitCount": 23,
    "additionsTotal": 4520,
    "deletionsTotal": 2100
  },
  "centrality": 0.031,
  "community": "runtime-core",
  "pagerank": 0.0042,
  "coChanges": [
    {
      "path": "src/qmd.ts",
      "count": 54,
      "confidence": 0.29,
      "trend": "stable"
    }
  ],
  "linkedIssues": [
    {
      "number": 28412,
      "title": "store.ts search returns stale results after index rebuild",
      "state": "open",
      "labels": ["bug", "store-core"],
      "html_url": "https://github.com/tobi/qmd/issues/28412"
    }
  ],
  "context": {
    "changeRisk": "high",
    "confidence": 0.8,
    "summaryFlags": ["high-centrality", "hidden-coupling"],
    "primaryDrivers": [
      {
        "type": "hidden_coupling",
        "evidence": { "hiddenCount": 2, "paths": ["src/server/page.ts"] }
      }
    ],
    "coupling": {
      "expected": [
        { "path": "src/server/page.ts", "coChangeCount": 54, "confidence": 0.29 }
      ],
      "hidden": [],
      "dormant": []
    },
    "reviewFirst": ["src/server/page.ts"],
    "volatility": "active",
    "changePattern": {
      "neverChangedAlone": true,
      "pairedChangeRate": 0.87
    },
    "nextSteps": {
      "readBeforeEdit": ["src/server/page.ts"],
      "verifyRelatedFiles": [],
      "suggestedCheckTypes": ["integration"]
    },
    "hasStaticGraph": true
  }
}

PR Context

GET /api/repos/:org/:repo/pr/:number

Pre-merge context for a pull request: per-file risk, co-changes, and linked issues across all changed files.

Response:

{
  "pr": {
    "number": 1234,
    "title": "feat: add hybrid search fallback",
    "state": "open",
    "author": "octocat",
    "headRef": "feat/retry-launch",
    "baseRef": "main",
    "createdAt": "2026-02-18T10:30:00.000Z",
    "mergedAt": null,
    "htmlUrl": "https://github.com/tobi/qmd/pull/1234"
  },
  "files": [
    {
      "path": "src/llm.ts",
      "status": "modified",
      "prAdditions": 42,
      "prDeletions": 8,
      "commitCount": 15,
      "additionsTotal": 1200,
      "deletionsTotal": 400,
      "centrality": 0.025,
      "pagerank": 0.0038,
      "community": "runtime-core",
      "coChanges": [
        {
          "path": "src/index.ts",
          "count": 12,
          "confidence": 0.35
        }
      ],
      "linkedIssues": [
        {
          "number": 27800,
          "title": "Search timeout not configurable",
          "state": "closed",
          "labels": ["enhancement"],
          "htmlUrl": "https://github.com/tobi/qmd/issues/27800"
        }
      ]
    }
  ],
  "relatedFiles": [
    {
      "path": "src/mcp/server.ts",
      "coChangeCount": 18,
      "community": "runtime-core"
    }
  ],
  "summary": {
    "totalFiles": 3
  }
}