Skip to main content

titer

titer checks whether the tests in a change actually test the change. Run it on a branch, and it compares the branch with its base:

  • scan finds weakened tests: deleted tests, removed assertions, added skips, loosened matchers, and changed snapshots.
  • prove runs the changed tests against the base code. A test that fails on base detects the change.
  • mutate makes small edits to the changed source lines and checks that the changed tests catch them.
  • crap scores each changed function by complexity and coverage. It is informational.

titer is a CLI that coding agents and CI jobs call. It contains no model and never wraps the agent. It prints a report and exits with a pass or fail code, and the caller decides what to do.

titer gathers evidence. It cannot show that a change is correct: a test that fails on base detects a difference from base, and a reviewer still checks that the difference is the intended one.

titer supports Python, TypeScript, TSX, JavaScript, and Rust, with pytest, unittest, vitest, and cargo test. It runs on Linux and macOS.

Install

Add titer as a dev dependency of your repo, so every agent and CI job runs the same version.

npm:

npm install --save-dev @greerviau/titer

Python with uv:

uv add --dev titer

Rust:

cargo install titer

Each GitHub release also has binaries for Linux (x64, arm64) and macOS (x64, arm64).

Set up a repo

Run init once from the repo root:

npx titer init       # npm
uv run titer init    # uv

init detects your test runners and writes these files:

  • titer.toml, with one [[runner]] per project. A monorepo gets several. It excludes tool configs such as vite.config.ts from mutation and adds test helpers outside the default globs, such as vitest setup files and a testing.ts that only tests import, to support_globs. init also names any scripts/ or tools/ dir you may want to exclude, and the repo's test scripts, whose environment variables you may need to copy into env.
  • A pinned dev dependency in package.json or pyproject.toml.
  • A repo skill in .agents/skills/titer/SKILL.md and .claude/skills/titer/SKILL.md. It tells agents when to run titer, how to read the report, and never to weaken a test to make it pass.

Review the files and commit them. Run init --dry-run first to see the plan without writing anything.

titer does not run in a repo without titer.toml. If init finds no runner, write titer.toml by hand with the configuration reference.

After you upgrade titer, run init --update to refresh the skill and the pin. check warns when they are out of date.

Run a check

With your changes committed or still in the working tree, run:

npx titer check      # npm
uv run titer check   # uv

titer compares the working tree, including untracked files, with the merge-base of HEAD and the base branch. By default the base is the remote default branch; pass --base origin/develop to pick another. titer runs tests in temporary worktrees and never changes your checkout.

The output starts with the gate result:

titer gate: pass

The exit code tells the caller what happened:

Code Meaning
0 The gate passes.
1 The gate fails. By default, this means the change is unproven: no changed test fails on base, and the tests catch none of the mutants.
2 The check could not run. Common causes are a changed test that fails on head, a config error, and a git error.

Agents should run titer check --json and read the JSON report. See the CLI reference for all options and the report format.

Common options:

  • --base REF sets the base ref.
  • --only scan,prove runs only some tiers.
  • --budget 60s ends mutation 60 s after the check starts. titer stops any canary, mutant, or survivor follow-up run still going then and reports what did not finish as not_run. It does not cut short the head and base test runs, so a check can run longer.

Run in CI

Add the GitHub Action to a workflow that runs on pull requests:

on: pull_request

permissions:
  contents: read
  pull-requests: write # only for comment: true

jobs:
  titer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
          ref: ${{ github.event.pull_request.head.sha }}
      # Install your repo's dependencies here.
      - uses: greerviau/titer@v0.2
        with:
          comment: true

The Action runs the titer version your repo pins, writes a job summary, annotates the diff, and fails the job when the gate fails. See the GitHub Action guide for inputs, outputs, and how it reports.

Documentation

  • How titer works: the tiers, test verdicts, mutation operators, and the gate.
  • Configuration: every titer.toml setting.
  • CLI reference: commands, options, exit codes, agent mutants, and the JSON report.
  • GitHub Action: inputs, outputs, job summary, annotations, and PR comments.
  • Glossary: the terms titer uses and what they mean.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Metadata

Release files for titer 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for titer 0.2.0
File Size Uploaded Provenance Actions
titer-0.2.0.tar.gz 241.0 kB Without provenance Details for titer-0.2.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for titer 0.2.0
File Actions
titer-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details for titer-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
titer-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for titer-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
titer-0.2.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for titer-0.2.0-py3-none-macosx_11_0_arm64.whl
titer-0.2.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for titer-0.2.0-py3-none-macosx_10_12_x86_64.whl

Total release size: 10.5 MB

Release files / titer-0.2.0.tar.gz

Download URL titer-0.2.0.tar.gz
Size 241.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3b083151460f09599ec6491a3157cbd0259a54087e974250d583bb7f2793d6be
BLAKE2b-256 checksum
How to use checksums
3cc7dd2759bf71ad71164256dffdb3b9251c075fc6c66fdddaf92e862eaaf0a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / titer-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL titer-0.2.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.7 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
61ed6b9130c20dd97201a766398f6f58d85bf0e93af295c45b78cef7eaae0214
BLAKE2b-256 checksum
How to use checksums
576f54e8b44f03ad99af14869083579ee6be25c07adf0808605ddbe8c023d5f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / titer-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL titer-0.2.0-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.5 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2bbe07018fde3f4765c9bf67ce6f1151a32440bd1d70f316be01d761e9c9fd7a
BLAKE2b-256 checksum
How to use checksums
726105f58c2a7cba2ef45ccade2ad3bfc00f64786206769e1bb06dd2d52ff654
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / titer-0.2.0-py3-none-macosx_11_0_arm64.whl

Download URL titer-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 2.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
60734db487d87091620ce1d6c42284f4bb167c987864dd6e4a53a35c53970b77
BLAKE2b-256 checksum
How to use checksums
bd60eca99c6989927956e15160f994df873685319cee86611811702bbdd48bff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / titer-0.2.0-py3-none-macosx_10_12_x86_64.whl

Download URL titer-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 2.6 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ac097945f10448c45551dddc40834060612ea71913186ee01e9307d94659e964
BLAKE2b-256 checksum
How to use checksums
dac185b1234d666a3263d5cdf1f6dadb32843ef5e56f6f1e1cd4bde0546a9476
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.10 {"installer":{"name":"uv","version":"0.13.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for titer 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page