Truecount Pull request review & repository audits

In development: not installable yet

GitHub App & GitHub Action

Find what your tests and reviews would let through.

Truecount breaks your changed code on purpose to see whether your tests notice, reviews pull requests against the guidelines you already wrote, and keeps your documentation and code health current.

  • Your runner executes code Customer code never runs on Truecount hardware.
  • Zero write tokens in Actions The server checks every path before opening a pull request.
  • Base-branch rules A pull request cannot edit the config or guidelines that judge it.
  • Runs, not seats Generous monthly pools with a spare-capacity slow lane.
truecount-dev bot commented on pull request #8

Truecount mutation check

On 50e3c4d the tests caught 62 of 80 deliberate breaks in the changed lines (80 possible).

Not caught
  • truecount/admin.py:54 not rows → rows remove not
  • truecount/retention.py:75 conn.execute('ROLLBACK') → pass remove call
  • truecount/settings.py:100 return int(raw) → return None return None

Each is a change the tests would let through. Some change nothing observable; the rest name behaviour no test pins down.

From Truecount's own repository, the day the check was built. The missing tests were written, and the next run caught 93 of 102. A survivor is a lead to check, not a verdict.

What lands in GitHub

Signal where you work. Silence when nothing is wrong.

Reviews and audits post only what you can act on—and explicitly list every file they skipped, so an unreviewed file never masquerades as a clean one.

01 · Pull request review

Grounded in your guidelines, with nothing dropped silently.

When an owner, member or collaborator opens a pull request, Truecount reads the diff alongside your repository's .github/review-guidelines.md from the base branch. It comments only on concrete bugs, edge cases that break, swallowed errors, or behaviour that contradicts your rules—never unasked style nitpicks.

  • Reviewed once on open: later pushes do not trigger a review storm or drain your allowance. Ask for a fresh pass anytime with /truecount review or the truecount-review label.
  • Protected from strangers: on a public repository, outside contributors wait for a maintainer to ask before spending a run.
  • Every skipped file is named: lockfiles, binaries, ignored globs, and files over the size budget are listed at the foot of the review.
truecount-dev bot reviewed 7d09489
truecount/webhooks.py
157 repo = payload["repository"]["full_name"]
158 + admission = allowance.admit(conn, row, plan, settings)
159 + if head_sha and already_queued(conn, repo, number, head_sha):
truecount-dev bot

allowance.admit can spend a top-up run when the monthly allowance is full. Checking already_queued after calling admit means a resent webhook delivery spends a paid top-up run on a duplicate job that immediately exits.

Truecount review. One ordering bug in webhook admission can spend a top-up run on a duplicate delivery.

Not reviewed (2)
  • uv.lock: ignored
  • site/preview.png: no text diff (binary, or too large for GitHub to show)

02 · Repository audits & bug reproduction

One rolling issue edited in place—never weekly spam.

A tool that opens a new issue every week is a tool people mute after three weeks. Truecount's weekly audits maintain a single open issue per agent, edited in place, and open at most one focused pull request per run.

  • Docs audit: checks your documentation against the code and opens a pull request touching only Markdown and docs/.
  • Code health: reports structural drift on a weekly schedule and proposes one self-contained fix pull request per run.
  • Skipped when unchanged: scheduled audits compare the commit SHA against the last completed run and skip automatically if nothing moved.
  • Bug reproduction: label an issue and the Action attempts to reproduce it in your runner, commenting with the exact command and output.
Truecount: docs audit Rolling issue · updated in place

Audited da58801 on main. Two documented flags no longer match the CLI parser in truecount/admin.py:

  • README.md:84 admin forget --id → admin forget <installation-id> PR opened
  • docs/ops.md:31 --dry-run is now the default; --apply writes PR opened

Opened pull request #12 (truecount/docs-audit-418) with 2 Markdown files changed. Next scheduled run will skip unless main advances.

All five agents at a glance

Agent Runs when Runs on Can change
Pull request review A collaborator opens a pull request, or a maintainer asks Truecount (reads the diff) Nothing; it comments
Mutation check On pull requests (Python) Your Actions runner Nothing; it reports
Docs audit Weekly, skipped if the code has not changed Your Actions runner Markdown and docs/, through a pull request
Code health Weekly, skipped if the code has not changed Truecount reports; your runner fixes One fix per run, through a pull request
Bug reproduction You label an issue Your Actions runner Nothing; it comments with what it ran

Security & trust boundary

Rules enforced by the server, not requested in a prompt.

A prompt rule is a suggestion a hostile repository can talk a model out of. Truecount enforces every permission, path rule and branch check in server code before anything touches GitHub. What the App asks GitHub for, and what each permission is used for, is on the permissions page.

In your GitHub Actions runner

Truecount Action

Executes your tests and audits inside your own CI environment.

  • Runs your code and test suite: customer code never executes on Truecount hardware.
  • Holds no repository write token: workflows run with contents: read.
  • Authenticates via GitHub OIDC: exchanges GitHub's signed run statement for a short-lived single-run token (pull_request_target is refused).
  • Sends whole file contents, never git pushes: proposes changes to the Truecount API for verification.
On Truecount's server

Truecount GitHub App

Reads diffs, enforces write boundaries, and posts as truecount-dev[bot].

  • Checks every path and file mode: rejects workflows (.github/workflows/), actions, symlinks, submodules, and protected config files.
  • Commits on the base SHA: builds the commit directly on the commit the Action audited, so concurrent human edits merge cleanly instead of being overwritten.
  • Sanitizes fork artifacts: mutation reports from fork PRs are treated as untrusted, type-checked, stripped of control characters, and rendered in safe code spans.
  • Stores no source code: diffs and prompts live only in memory for the duration of the job.
Guarantee 01

Your code only executes in your own runner

Server-side reviews only read diffs and configuration. Anything that imports or runs your code happens in your GitHub Actions runner.

Guarantee 02

No agent holds a write token

Agents send proposed file contents to Truecount, which checks every path and size limit against that agent's rules before opening a pull request.

Guarantee 03

Config and workflows are untouchable

No agent can edit .github/workflows/, .github/actions/, .github/truecount.yml, or your review guidelines file.

Guarantee 04

Nothing merges itself

Every change is proposed as a standard pull request on its own branch, waiting for a human reviewer to approve and merge.

Guarantee 05

Nothing skipped is hidden

Every file a review skips—whether ignored by config, binary, or over the size budget—is listed with its reason in the review body.

Guarantee 06

Never used to train models

Your source code, diffs and reviews are never stored in our database and never used to train models. See the privacy policy.

Configuration & setup

One small config file. Read from your default branch.

Installing the App is the opt-in; .github/truecount.yml is optional. Because it is always read from the branch a pull request targets, a pull request cannot silence or rewrite its own review.

Repository configuration

Point Truecount at the review guidelines your team already maintains, and list any generated paths to skip. How a review chooses its guidelines, including the shared file every repository can name and the default it uses when you have none.

# .github/truecount.yml, read from your default branch
review:
  enabled: true
  guidelines: .github/review-guidelines.md
ignore:
  - "docs/generated/**"

Ask for a review on demand with a /truecount review comment or the truecount-review label. If the config file has a syntax error, Truecount posts a note on the pull request instead of guessing defaults.

Mutation check workflow

Runs in your repository's Actions runner using only the Python standard library—no model and no secrets required, so fork pull requests work out of the box.

# .github/workflows/truecount-mutation.yml
name: Truecount mutation check
on: pull_request
permissions:
  contents: read
jobs:
  mutation:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with:
          fetch-depth: 0
      - uses: actions/setup-python@v7
        with:
          python-version: "3.12"
      - run: pip install -r requirements.txt
      - uses: truecount-dev/truecount-action@v0
        with:
          test-command: python -m pytest -x -q

Plans & fair queuing

Priced by runs, not seats. Past your allowance, runs wait instead of failing.

A run is one pull request review or one repository audit. Allowances belong to the account—not per developer seat—and jobs that fail or skip unchanged code are never counted.

  1. 01 / Monthly allowance

    Priority queue

    Runs within your monthly plan allowance start immediately at full plan priority.

  2. 02 / Top-up runs

    365-day run packs

    If your monthly pool is full, Truecount draws one run from any active top-up pack at full priority.

  3. 03 / Slow lane

    Spare capacity included

    No top-up? You get a second full allowance's worth of runs each month on idle hardware at no charge.

  4. 04 / Quiet pause

    One notice per PR

    Only after both pools are used does Truecount pause until the 1st of next month, leaving one note.

Public repositories

Free

Pull request review, mutation check comments, docs audit, and code health with a monthly run allowance.

Runs on Truecount hardware · Never overflows to third parties
Personal accounts

Individual

Private and public repositories, all five agents including bug reproduction, and a generous monthly run allowance.

Priority queue · Optional top-up packs
Organizations

Team

Private and public repositories across your organization, every agent, and a shared allowance sized for a team.

One shared pool · No per-seat tax
Large organizations

Enterprise

Runs against your own dedicated model endpoint under an annual license, with custom retention and capacity rules.

Your model endpoint · Annual license

Prices and exact monthly run allowances will be published before launch once live model evaluation sets the GPU-minute baseline. Have questions or want to try Truecount on a repository early? Get in touch.