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:
scanfinds weakened tests: deleted tests, removed assertions, added skips, loosened matchers, and changed snapshots.proveruns the changed tests against the base code. A test that fails on base detects the change.mutatemakes small edits to the changed source lines and checks that the changed tests catch them.crapscores 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 asvite.config.tsfrom mutation, andinitnames anyscripts/ortools/dir you may want to exclude too.- A pinned dev dependency in
package.jsonorpyproject.toml. - A repo skill in
.agents/skills/titer/SKILL.mdand.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 REFsets the base ref.--only scan,proveruns only some tiers.--budget 60sstops 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.tomlsetting. - 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.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| titer-0.1.4.tar.gz | 201.7 kB | Without provenance | Details for titer-0.1.4.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| titer-0.1.4-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.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
| titer-0.1.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for titer-0.1.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl |
| titer-0.1.4-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details for titer-0.1.4-py3-none-macosx_11_0_arm64.whl |
| titer-0.1.4-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details for titer-0.1.4-py3-none-macosx_10_12_x86_64.whl |
Total release size: 9.9 MB
Release files / titer-0.1.4.tar.gz
| Download URL | titer-0.1.4.tar.gz |
|---|---|
| Size | 201.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1bc46287191ed43e5ad45a7576d57501cf06d873192100f18082e2d41f0cfa78
|
|
BLAKE2b-256 checksum How to use checksums |
c18b5177443d68542b8ebf557d6d63c211651cb50d5ca4486a924ea34642e0d4
|
| 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.4-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | titer-0.1.4-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 |
3e7bf7f73b2b9a364df0ca477a9fc7a73f7d00d035ab02c1a1f68f274c1bb6eb
|
|
BLAKE2b-256 checksum How to use checksums |
6675aa95dc3ce56d5d5a5f175ee6c070fb7806da965ed42235a4bee792b2909b
|
| 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.4-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
| Download URL | titer-0.1.4-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 |
7bc7b5353122174e8858d8792cc9f97fcf4ee33e40f3d273a914589b356fdcfc
|
|
BLAKE2b-256 checksum How to use checksums |
39d3652db870a4e75cda370bc286013bbdc017d01aeb6cfc626fbc10826b60ae
|
| 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.4-py3-none-macosx_11_0_arm64.whl
| Download URL | titer-0.1.4-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 |
35d84898c45d068f42e2c34d9123bde8f8848098bef203d1ba0098fd3e0f8069
|
|
BLAKE2b-256 checksum How to use checksums |
e8c14d5b5aec75bba78377e0f02637159fb39e92d88b2433476d5bb1aaa8688b
|
| 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.4-py3-none-macosx_10_12_x86_64.whl
| Download URL | titer-0.1.4-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 |
ddbe1486ff2ec5bf2344adc68fb99692114499f81da41624684bbe3c9ac98c96
|
|
BLAKE2b-256 checksum How to use checksums |
6476155c1a5b96c5b8ff04c7e2ba652c14c1d698b20e68213ed935e31bf9e3b3
|
| 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.4
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.