Get started

Where the agents run

On GitHub's hosted runners, or on machines of your own.

Two ways Truecount works

App installed onlyApp and the agents workflow
Where the review runsTruecount's serverYour Actions runner
What it readsThe diff and the changed files, through GitHub's APIA checkout of your repository
Your code executesNeverNever: the agent reads it, with git diff, git log and file reads
Who pays for the machineTruecountYou: your Actions minutes, or your own machine

Either way, Truecount chooses the model and pays for it, and posts the result as the App. Agents that run your tests, such as the mutation check and bug reproduction, always run in your runner. Your code never runs on Truecount's machines.

GitHub's hosted runners

The default. The agents workflow uses ubuntu-latest. On a public repository GitHub's hosted runners are free. On a private one, their minutes count against your GitHub plan.

Your own machines

A machine of your own runs the agents as a GitHub self-hosted runner. Use one that does nothing else: not a laptop, and nothing that holds production credentials or can reach production systems.

  1. In the repository's settings, open Actions → Runners → New self-hosted runner and follow GitHub's commands. Add --ephemeral to config.sh, so every job starts on a clean runner, and give the runner a label, such as truecount.
  2. Tell the workflow to use it:
    jobs:
      truecount:
        uses: truecount-dev/truecount-action/.github/workflows/agents.yml@v0
        with:
          runs-on: '["self-hosted", "truecount"]'

The machine needs Python 3 and git, and outbound HTTPS to github.com and api.truecount.dev. The Claude Code step installs Bun and its own dependencies when it starts, so the machine needs to reach those downloads too.

Private repositories only. On a public repository anyone can open a pull request from a fork, and a workflow on a self-hosted runner can run that pull request's code on your machine. GitHub warns against self-hosted runners on public repositories for this reason. Its hosted runners cost nothing on a public repository anyway.

What leaves your runner

  • The pull request's number, whether it is a draft, and its base branch and commit, to ask which agents run. Its title and description stay in the runner.
  • The agent's model calls, which carry the code it reads. They go through Truecount's model proxy to the model provider. Truecount records how many tokens each run used, not what was in them.
  • The comment the agent wrote, for Truecount to post.

More in the docs