GitBills

GitBills docs

From a one-word URL swap to a policy your agents follow. Every command on this page can be copied.

Instant URL swap

Replace hub with bills in any public GitHub address. A repository opens its open pull requests, triaged; a pull request opens its receipt. Nothing to install, no login, nothing posted to the repository.

On GitHubOn GitBillsOpens
github.com/fastapi/fastapigitbills.com/fastapi/fastapiIts open pull requests, triaged.
github.com/vitejs/vite/pull/24292gitbills.com/vitejs/vite/pull/24292That pull request's receipt.

Add ?format=json to either address for its data.

GitHub App and vouches

Install the App on the repositories you choose: no workflow file, no YAML. Each pull request gets one sticky comment and a GitBills check. Vouches are comments on the pull request, and each one names a full 40-character commit SHA.

Install GitHub App

CommentWhoWhat it does
/gitbills vouch <40-hex-sha>A repository owner, member or collaboratorPasses that exact commit. A new commit needs a new vouch.
/gitbills vouch <40-hex-sha> --scoutA contributor with standing, in a repository they do not maintainCo-signs a clean newcomer pull request. A scout co-sign always names the full commit SHA.
/gitbills unvouchWhoever vouchedDrops an active vouch.
/gitbills reject-slopA repository owner, member or collaborator who is neither the author nor the scoutJudges the pull request's scout co-sign as slop, within 7 days of a close. It counts against the scout's 22% line.

Executable AGENTS.md

Put a ## Pull requests from agents section in AGENTS.md. GitBills reads its directives, one key: value per line, and holds agent pull requests to them. Repository owners, members and collaborators are exempt. Examples inside code fences are never read as policy.

The GitHub App reads the file from the default branch of a public repository on every pull request. A rule that blocks, such as maintainers_only or a missing linked issue, fails the check until a maintainer vouches for the commit; the sticky comment lists every rule the pull request misses. Check a repository's policy.

## Pull requests from agents
- agents: allowed_with_preflight
- max_open_prs_per_author: 2
- require_linked_issue: true
The eight directives
DirectiveValuesDefaultMeans
agentswelcome, allowed_with_preflight, vouch_required, maintainers_onlyallowed_with_preflightHow agent pull requests are received.
max_open_prs_per_author1 to 20no capOpen pull requests one author may have at once.
max_diff_lines10 to 10000no capChanged lines past which a pull request needs a vouch.
require_linked_issuetrue, falsefalseThe title or body links an issue.
require_disclosuretrue, falsefalseAn agent pull request says it is agent-authored, or links its receipt.
require_tests_for_codetrue, falsefalseA change to code also changes tests.
commercial_vendor_prsallow, require_vouch, require_bondrequire_vouchWhat a vendor listing or SDK pull request needs.
scout_vouchesallow, disabledallowWhether a scout co-sign that passed the gate counts where a vouch is required.

CLI and GitHub Action

The CLI runs with Node 18 or later and needs no install.

  • npx --yes github:fitzss/gitbills#v0.1.1 preflight

    Offline security, slop and AGENTS.md checks on your branch, before you open a pull request.

  • npx --yes github:fitzss/gitbills#v0.1.1 triage owner/repo

    A repository's open pull requests in the four buckets.

  • npx --yes github:fitzss/gitbills#v0.1.1 policy owner/repo

    The repository's AGENTS.md policy, parsed.

  • npx --yes github:fitzss/gitbills#v0.1.1 standing LOGIN

    A contributor's verified merges, scouted merges and circuit breaker.

The Action runs the same checks on every pull request:

name: GitBills PR Gate
on:
  pull_request_target:
    types: [opened, synchronize, reopened, edited]
  issue_comment:
    types: [created]          # re-checks when a maintainer comments /gitbills vouch <sha>
permissions:
  contents: read
  pull-requests: write        # optional: the sticky comment (read is enough for the job summary)
  statuses: write             # optional: the gitbills/pr-gate commit status
jobs:
  gate:
    # Comment runs only for vouch commands on pull requests; the gate checks the rest itself.
    if: github.event_name != 'issue_comment' || (github.event.issue.pull_request && contains(github.event.comment.body, ' vouch '))
    runs-on: ubuntu-latest
    steps:
      - uses: fitzss/gitbills@263786337136bb5fc91f9bd2285243a109854278   # v0.1.1

Hermes, OpenClaw and Claude Code

  • Hermes

    Install the GitBills skill.

    hermes skills install fitzss/gitbills
  • OpenClaw

    Add the gitbills skill from ClawHub. Its SKILL.md sits at the root of fitzss/gitbills.

  • Claude Code

    Add the PreToolUse hook from integrations/claude-code in fitzss/gitbills to .claude/settings.json: it runs the preflight before any gh pr create.

Any other agent that reads AGENTS.md or CLAUDE.md can follow this rule:

## Pull request preflight
- Before `gh pr create`, run `npx --yes github:fitzss/gitbills#v0.1.1 preflight` and fix what it reports.

Public JSON and PNG

Public and read-only. Social platforms draw the PNG cards; no SVG is needed.

MethodAddressReturns
GEThttps://gitbills.com/owner/repo/pull/123?format=jsonA pull request's receipt: verdict, standing, security grade and head commit.
GEThttps://gitbills.com/og/pr/owner/repo/123.pngThe receipt's 1200x630 PNG card.
POSThttps://gitbills.com/pilot/v1/gate/triage-repoA repository's newest open pull requests, triaged. Body: {"repo": "owner/repo"}.
GEThttps://gitbills.com/api/v1/policy/owner/repoThe repository's AGENTS.md policy, parsed.
GEThttps://gitbills.com/contributors/LOGIN?format=jsonA contributor's standing: counts of commit-pinned receipts.
GEThttps://gitbills.com/og/gitbills.pngThe GitBills card.