Tenthcheck
Tenthcheck, from Tenthlook. When an AI coding agent edits your Python, it shows what the edit touches (the blast radius of the changed symbols) and checks numeric invariants you write with Z3, returning the exact counterexample when one breaks. It runs as a CLI, an editor hook / MCP server and a GitHub Action. No LLM and no network: it runs offline and no API key is involved. Python only.
Quickstart (60 seconds)
pipx install tenthcheck # or: uvx tenthcheck
cd your-repo && tenthcheck # blast radius of your uncommitted diff, plus any Z3 invariants in tenthcheck.toml
tenthcheck install --claude # optional: register the MCP server and the Claude Code hook
tenthcheck with no arguments looks at your uncommitted diff, prints the changed symbols and every symbol that depends on
them, then checks any Z3 invariants in tenthcheck.toml (tenthcheck init writes a template). On a one-line edit to
starlette's HTTPConnection.url_for it found 2 changed symbols, 469 dependents of HTTPConnection and 7 of url_for
(results/impact_timing.jsonl).
Example output
An invariant in tenthcheck.toml for bank.py::withdraw, checked with Z3:
$ tenthcheck verify bank.py::withdraw "final_balance >= 0" --assume "balance >= 0" --assume "amount > 0" --assume "fee >= 0"
VIOLATED withdraw [final_balance >= 0]: counterexample found, Z3, 31 ms
inputs: balance=0, amount=1, fee=0
then: final_balance=-1
What Tenthcheck does not do
- Python only. No TypeScript, JavaScript or SQL files (SQL is read only from Python string literals).
- Z3 checks only simple numeric functions: no loops, calls, I/O,
//,%, strings or containers; floats are modelled as exact reals. - Mined invariants are candidates, not proofs. Many are intentional, and a guard written in another form (inside the function body, in middleware, in a framework hook) is not recognised, which causes false positives.
- It does not guarantee your code is correct, and a receipt only records what was checked.
- It does not fix code. It tells you (or your agent) where and, for Z3, with what inputs.
tenthcheck impactis still slow after an edit on very large repositories (see Measured).- The GitHub Action has not been run on GitHub.
More
- Reference: every command, the Z3 subset, agents and hook setup, the GitHub Action, receipts, limits.
- Measurements: timings, precision on real repositories, the mining negative result, with sources.
- Changelog
MIT licensed.
Metadata
Release files for tenthcheck 0.2.1
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 |
|---|---|---|---|---|
| tenthcheck-0.2.1.tar.gz | 93.4 kB | Without provenance | Details for tenthcheck-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tenthcheck-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for tenthcheck-0.2.1-py3-none-any.whl |
Total release size: 182.1 kB
Release files / tenthcheck-0.2.1.tar.gz
| Download URL | tenthcheck-0.2.1.tar.gz |
|---|---|
| Size | 93.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c5a7b7c12ea754d3d5d2323e838963ad96b43a57e39290fc62e3e2358ecd88b
|
|
BLAKE2b-256 checksum How to use checksums |
58cd96476b426fd046dc1cfd566b49ee137ddf642fb640dab0f85b18067b0098
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / tenthcheck-0.2.1-py3-none-any.whl
| Download URL | tenthcheck-0.2.1-py3-none-any.whl |
|---|---|
| Size | 88.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2dc9a5956d0a857a13eaad62de71c5bddbe2f7eba932bd9f66fbd422323d29a
|
|
BLAKE2b-256 checksum How to use checksums |
5c869860f4c2919ef7e331bbfe7fc2bcda7285c56711b748b9a53703389f24c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for tenthcheck 0.2.1
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.