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.
  • 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 limits how long the whole check runs.

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.1
        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.1.3

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.1.3
File Size Uploaded Provenance Actions
titer-0.1.3.tar.gz 183.9 kB Without provenance Details for titer-0.1.3.tar.gz

Built distributions (wheels)

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

Total release size: 9.7 MB

Release files / titer-0.1.3.tar.gz

Download URL titer-0.1.3.tar.gz
Size 183.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f246dc77da2606e931c4012738abb68d29526de5f0b80259f4006b69d90be6da
BLAKE2b-256 checksum
How to use checksums
1144278f61a267bfbe2aef9e3c1fe88ec7440d1333dffb54d0375d4192926b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL titer-0.1.3-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
9838d84bee662e8a560e2b744a6e6b327dc3069d6396fe366613c52efcea103d
BLAKE2b-256 checksum
How to use checksums
0beb71cf54a6507b6b4debdd51c973630fab7697f79f95ce03e18b01037ba3c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL titer-0.1.3-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
27e5fcdad8c8946436e940a627a7291e0339dea44772fc1d5a28213fb1f54f29
BLAKE2b-256 checksum
How to use checksums
c5fcfdeafd2b8b27008ba31989d576040920fce57826311c753dedf7dc3bc64b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1.3-py3-none-macosx_11_0_arm64.whl

Download URL titer-0.1.3-py3-none-macosx_11_0_arm64.whl
Size 2.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
34c8dfa729dbba248b90096f930bbd5834c416dcd559e978d249946830b0efa9
BLAKE2b-256 checksum
How to use checksums
ae4129aa1fd0fe557144a56ac8e2a9cb6596b17029a06cab54786f6fdb466aca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1.3-py3-none-macosx_10_12_x86_64.whl

Download URL titer-0.1.3-py3-none-macosx_10_12_x86_64.whl
Size 2.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
fc924e67928ee0940974e73145f6b4faf5a5f1a14c7745fcef3780f158230c74
BLAKE2b-256 checksum
How to use checksums
01d7ce9b52777ce807ed8133735d68c5c8336f6b53959e07d45a4ca3bb9f1e5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.1.3

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