Skip to main content

Deterministic PR readiness detection for AI coding agents

Project description

Good To Go

Deterministic PR readiness detection for AI coding agents

Good To Go helps AI agents (like Claude Code) know exactly when a PR is ready to merge. No guessing, no polling indefinitely, no missing comments.

The Problem

AI agents creating PRs face a common challenge: How do I know when I'm actually done?

  • CI is still running... is it done yet?
  • CodeRabbit left 12 comments... which ones need action?
  • A reviewer requested changes... did I address them all?
  • There are 3 unresolved threads... are they blocking?

Without deterministic answers, agents either wait too long, miss comments, or keep asking "is it ready yet?"

The Solution

Good To Go provides deterministic PR state analysis via a simple CLI:

gtg check owner/repo 123

Returns:

  • Exit code 0: Ready to merge - good to go!
  • Exit code 1: Action required (actionable comments need fixes)
  • Exit code 2: Unresolved threads exist
  • Exit code 3: CI failing
  • Exit code 4: Error fetching data

Installation

pip install gtg

That's it. No other dependencies required.

Usage

Basic Check

# Check if PR #123 in myorg/myrepo is ready to merge
gtg check myorg/myrepo 123

# With JSON output for programmatic use
gtg check myorg/myrepo 123 --json

Authentication

Set your GitHub token:

export GITHUB_TOKEN=ghp_your_token_here

Or pass it directly:

gtg check myorg/myrepo 123 --token ghp_your_token_here

Exit Codes

Code Status Meaning
0 READY All clear - good to go!
1 ACTION_REQUIRED Actionable comments need fixes
2 UNRESOLVED Unresolved review threads
3 CI_FAILING CI/CD checks failing
4 ERROR Error fetching PR data

JSON Output

gtg check myorg/myrepo 123 --json

Returns structured data including:

  • CI status (passed/failed/pending checks)
  • Thread summary (resolved/unresolved counts)
  • Classified comments (actionable vs non-actionable)
  • Action items list

Supported Automated Reviewers

Good To Go recognizes and classifies comments from:

  • CodeRabbit - Critical/Major/Minor/Trivial severity
  • Greptile - Actionable comment detection
  • Claude Code - Must/should/error/bug patterns
  • Cursor/Bugbot - Severity-based classification
  • Generic - Fallback for unknown reviewers

For AI Agents

If you're an AI agent, use Good To Go in your PR workflow:

import subprocess
import json

result = subprocess.run(
    ["gtg", "check", "owner/repo", "123", "--json"],
    capture_output=True,
    text=True
)

if result.returncode == 0:
    print("Good to go! Ready to merge.")
elif result.returncode == 1:
    data = json.loads(result.stdout)
    print(f"Action required: {data['action_items']}")

Or use the Python API directly:

from goodtogo import PRAnalyzer, Container

container = Container.create_default(github_token="ghp_...")
analyzer = PRAnalyzer(container)

result = analyzer.analyze("owner", "repo", 123)
if result.status == "READY":
    print("Good to go!")
else:
    for item in result.action_items:
        print(f"- {item}")

Documentation

License

MIT License - see LICENSE for details.

Credits

Created by David Sifry with Claude Code.


Made with Claude Code

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gtg-0.1.0.tar.gz (37.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gtg-0.1.0-py3-none-any.whl (45.5 kB view details)

Uploaded Python 3

File details

Details for the file gtg-0.1.0.tar.gz.

File metadata

  • Download URL: gtg-0.1.0.tar.gz
  • Upload date:
  • Size: 37.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gtg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 26273daf4079f031b6c964e534d40c3f2d43129ff2be202814358e6f403d09db
MD5 391f7b93969f529dac2e3173a8d6568a
BLAKE2b-256 0a98d130271dc7484a3ffa8bdacc9d0fb7c621da45681f1777371f2b5834fadc

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtg-0.1.0.tar.gz:

Publisher: publish.yml on dsifry/goodtogo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gtg-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gtg-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 45.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for gtg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 97d97acdf7f047bc0a0a36380542abb66e12d68865fad1eae44157f5f187aded
MD5 41b526920e984f29e4db6b4f1a4c4bd0
BLAKE2b-256 cb10a91128a85a60eae453869f5d67e892c37dbcbaa1a24ad142e04e9fad2c68

See more details on using hashes here.

Provenance

The following attestation bundles were made for gtg-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dsifry/goodtogo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page