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 GitHub | On GitBills | Opens |
|---|---|---|
github.com/ | gitbills.com/ | Its open pull requests, triaged. |
github.com/ | gitbills.com/ | That 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.
| Comment | Who | What it does |
|---|---|---|
/gitbills vouch <40-hex-sha> | A repository owner, member or collaborator | Passes that exact commit. A new commit needs a new vouch. |
/gitbills vouch <40-hex-sha> --scout | A contributor with standing, in a repository they do not maintain | Co-signs a clean newcomer pull request. A scout co-sign always names the full commit SHA. |
/gitbills unvouch | Whoever vouched | Drops an active vouch. |
/gitbills reject-slop | A repository owner, member or collaborator who is neither the author nor the scout | Judges 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| Directive | Values | Default | Means |
|---|---|---|---|
agents | welcome, allowed_with_preflight, vouch_required, maintainers_only | allowed_with_preflight | How agent pull requests are received. |
max_open_prs_per_author | 1 to 20 | no cap | Open pull requests one author may have at once. |
max_diff_lines | 10 to 10000 | no cap | Changed lines past which a pull request needs a vouch. |
require_linked_issue | true, false | false | The title or body links an issue. |
require_disclosure | true, false | false | An agent pull request says it is agent-authored, or links its receipt. |
require_tests_for_code | true, false | false | A change to code also changes tests. |
commercial_vendor_prs | allow, require_vouch, require_bond | require_vouch | What a vendor listing or SDK pull request needs. |
scout_vouches | allow, disabled | allow | Whether 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.1Hermes, OpenClaw and Claude Code
Hermes
Install the GitBills skill.
hermes skills install fitzss/gitbillsOpenClaw
Add the
gitbillsskill from ClawHub. ItsSKILL.mdsits at the root offitzss/gitbills.Claude Code
Add the
PreToolUsehook fromintegrations/claude-codeinfitzss/gitbillsto.claude/settings.json: it runs the preflight before anygh 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.
| Method | Address | Returns |
|---|---|---|
GET | https://gitbills.com/ | A pull request's receipt: verdict, standing, security grade and head commit. |
GET | https://gitbills.com/ | The receipt's 1200x630 PNG card. |
POST | https://gitbills.com/ | A repository's newest open pull requests, triaged. Body: {"repo": "owner/repo"}. |
GET | https://gitbills.com/ | The repository's AGENTS.md policy, parsed. |
GET | https://gitbills.com/ | A contributor's standing: counts of commit-pinned receipts. |
GET | https://gitbills.com/ | The GitBills card. |