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 init names any scripts/ or tools/ dir you may want to exclude too.
  • 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 stops starting mutants 60 s after the check starts. 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.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.5

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.5
File Size Uploaded Provenance Actions
titer-0.1.5.tar.gz 216.7 kB Without provenance Details for titer-0.1.5.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for titer 0.1.5
File Actions
titer-0.1.5-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.5-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
titer-0.1.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details for titer-0.1.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
titer-0.1.5-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for titer-0.1.5-py3-none-macosx_11_0_arm64.whl
titer-0.1.5-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for titer-0.1.5-py3-none-macosx_10_12_x86_64.whl

Total release size: 10.1 MB

Release files / titer-0.1.5.tar.gz

Download URL titer-0.1.5.tar.gz
Size 216.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9697498cf722b98d1593e30ccf0e4b7e28a8c7eefa2266b7b402700d22d68246
BLAKE2b-256 checksum
How to use checksums
2a12cde1a806daecf252dbb32bd70c5190edf9a6a158d7ade2b8b4d71bb63fc5
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.1.5-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL titer-0.1.5-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 2.6 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
1f9b47ca79c6dc3528f04a1661b4de839ea9bee8e41fedc94d93ec066dbc5b8f
BLAKE2b-256 checksum
How to use checksums
51a4402d0e7105d5e12d6515ac9618f057b95fbf5904fd9f018f276f4bfdacdc
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.1.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL titer-0.1.5-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 2.4 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9d13ca5e2673256962317b10aae0cc7c71a6ee7229ceea0fe8395b35d4555ea8
BLAKE2b-256 checksum
How to use checksums
7ca11d639f42be309589361dcc4dd0d75ff2e05a45062c66b521eaeccf69ff41
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.1.5-py3-none-macosx_11_0_arm64.whl

Download URL titer-0.1.5-py3-none-macosx_11_0_arm64.whl
Size 2.4 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2401d5375ed81507d1e6188565c0fe9a2dbf6a6035d22463762773b8bbdd45fd
BLAKE2b-256 checksum
How to use checksums
43b6c5b892f264e7f8b30926895fb3d4999542cf61678a9bc00815d0d736a177
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.1.5-py3-none-macosx_10_12_x86_64.whl

Download URL titer-0.1.5-py3-none-macosx_10_12_x86_64.whl
Size 2.5 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
51035a401bfd71001a6ff318bca6924881d574cf0d509a629d0597abaad96887
BLAKE2b-256 checksum
How to use checksums
23eac862bc0dac4b348ef07673f8cc963a3ceff7d954f37b715ba63bf2d98836
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.1.5

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