← Back to specgit

Developers

specgit developer resources

specgit is GitHub-native docs collaboration, not a generic REST platform. Agents read public facts as Markdown, then use the review tools after a GitHub App sign-in. There are no self-serve API keys.

When to use specgit

Use specgit when the job is editing, commenting on, or publishing Markdown or HTML that already lives in a GitHub repository — or when a product team needs a visual editor whose saves are commits, comments are pull request review threads, and publish is a merge. Do not use specgit as a model API, a webhook hub, or a substitute for GitHub's own REST or GraphQL APIs.

Quickstart

  1. Read product facts at /llms.txt.
  2. Open the no-account sandbox at /try.
  3. Sign in through the GitHub App — walkthrough at /auth.md. The session cookie is the credential.
  4. Call GET https://specgit.com/api/agent/tools or POST JSON-RPC initialize to /api/agent.

Public surfaces

Agent tools

Authenticated agents call GET https://specgit.com/api/agent/tools or MCP tools/list. Mutating tools require an AI allowance; reads are free. The current tools:

Errors, versioning, and rate limits

Advertised agent endpoints use RFC 9457 application/problem+json with a machine-readable code, a human detail, and a hint. Unknown /api/* paths return HTTP 404 in that shape, not an HTML shell. Codes: unauthenticated, bad_request, not_found, method_not_allowed, rate_limited, upgrade_required, ai_budget, unknown_tool, internal, error.

The current major version is 1.0.0, echoed as API-Version on advertised agent endpoints (/api/agent, tools, invoke, and unknown/api/* 404s). Breaking changes ship a new major path. Those endpoints allow 60 requests per 60 seconds after a real limiter check, and send RateLimit, RateLimit-Policy, and Retry-After on 429.