Show HN: Checkwash – flag Git diffs that weaken your tests (offline, no LLM) Checkwash 0.13.2, a local Git-diff analyzer released by developer taipei49314, flags test-weakening changes such as deleted assertions, skipped tests, relaxed expectations and CI checks that stop failing, without using an LLM or network access during analysis and without executing the user's code. The tool requires Python 3.11+ and Git, ships as a single-file zipapp and a PyPI package, and includes a Claude Code hook installer that writes a Stop hook and a PreToolUse ask to `.claude/settings.local.json` to catch edits by coding agents under five rules: ASSERT_WEAKENED, ASSERT_REMOVED, TEST_DISABLED, TOLERANCE_LOOSENED and BROAD_EXCEPT_ADDED. The release matters because edits made through Bash bypass the PreToolUse ask and engine errors in the Stop hook only report a non-blocking note, so the project directs teams to enforce verdicts on merges via a required CI check. Check whether a code change weakens your tests. A test can pass after it stops checking something useful. checkwash reads your Git diff and flags known patterns such as deleted assertions, skipped tests, relaxed expectations, and CI checks that stop failing. - assert total == 105.3 + assert total 0 The new assertion accepts many incorrect totals. checkwash flags changes like this for review, including changes written by coding agents. Runs locally. No LLM. No network during analysis. Never executes your code. These examples use 0.13.2. The installation guide https://github.com/taipei49314/checkwash/blob/main/docs/install.md tracks the latest verified CLI download and Action pin. The 0.13.2 release guide https://github.com/taipei49314/checkwash/blob/main/docs/releases/v0.13.2-public-launch.md describes the Python import fixes, CLI changes and measured Django scan times. Already installed from PyPI? From your Git repository, run python -m checkwash check to review your uncommitted changes. Use the Python that installed the package, including the interpreter in the CheckWash environment if you used pipx. This also works when Windows blocks the checkwash.exe launcher. Try the offline demo try-it-on-a-repository · Install Claude Code hooks use-it-with-claude-code · Require the GitHub Action use-it-in-ci You need Python 3.11+, Git and Claude Code . Install the CLI, then run the hook installer from the root of your repository: pipx install checkwash==0.13.2 checkwash hook install --agent claude-code --local This writes checkwash's hooks to .claude/settings.local.json , your machine-local Claude Code settings --local is the default; --shared writes .claude/settings.json without the PreToolUse prompt : - Stop hook: checks the working tree and the session's commits when Claude is about to finish paired with a SessionStart hook that records where the session began . On a blocking finding, it stops Claude and returns the finding so Claude can restore the test or explain what blocked. - PreToolUse ask --local only : prompts before an Edit , Write or MultiEdit of a Python test file leaves a high finding under one of five weakening rules ASSERT WEAKENED , ASSERT REMOVED , TEST DISABLED , TOLERANCE LOOSENED , BROAD EXCEPT ADDED . Non-interactive claude -p runs deny such edits because nobody can answer; the interactive prompt itself is not verified in automated tests. Both hooks are author-side checks: edits made through Bash bypass the PreToolUse ask, and engine errors in the Stop hook report a non-blocking note except working-tree files over the size limit . To enforce verdicts on merges, configure the required CI check under Use it in CI use-it-in-ci . Hook limits are documented in the 0.11.0 known issues https://github.com/taipei49314/checkwash/blob/main/docs/KNOWN-ISSUES-v0.11.0.md . You need Python 3.11+ and Git . Download the single-file zipapp and run the built-in offline examples first. Windows PowerShell including 5.1, where curl aliases Invoke-WebRequest : curl.exe -LO https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz python checkwash.pyz --version python checkwash.pyz demo macOS/Linux or Git Bash: curl -LO https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz python checkwash.pyz --version python checkwash.pyz demo You can also download checkwash.pyz in your browser https://github.com/taipei49314/checkwash/releases/download/v0.13.2/checkwash.pyz . Then, from a Git repository with at least two commits: python checkwash.pyz check HEAD~1..HEAD - Uncommitted changes: python checkwash.pyz check - Branch review from merge base: python checkwash.pyz check BASE...HEAD BASE..HEAD compares the two snapshots directly - Hands-on walkthrough: follow examples/invoice https://github.com/taipei49314/checkwash/blob/main/examples/invoice/README.md to watch a failing test, a one-line shortcut edit that makes it green without fixing the bug, and checkwash's block. Running check from a subdirectory analyses the whole repository from its Git root and notes that root on stderr 416 https://github.com/taipei49314/checkwash/issues/416 . For JSON/SARIF output and machine integration, see the embedding guide https://github.com/taipei49314/checkwash/blob/main/docs/embedding.md and stability contracts https://github.com/taipei49314/checkwash/blob/main/docs/stability.md . To stop a merge, make the checkwash status check required in your repository's branch rules. Installing the tool or adding a workflow alone does not enforce its verdict. Save this as .github/workflows/checkwash.yml : .github/workflows/checkwash.yml on: pull request permissions: contents: read jobs: checkwash: runs-on: ubuntu-latest steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 v7.0.1 with: fetch-depth: 0 persist-credentials: false - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 v7.0.0 with: python-version: "3.12" - uses: taipei49314/checkwash/action@4ecb0b0efa2febe7dcacae7f4114e98877205128 v0.13.2 After the workflow runs once, open Settings → Rules → Rulesets and require the checkwash status context keep the job unconditional . Repository administrators with a clone of this project can also add the ruleset via: gh api repos/OWNER/REPO/rulesets --method POST --input action/required-ruleset.json checkwash doctor checks the local workflow file it cannot inspect live GitHub branch protection . When upgrading, update the CLI and local hooks before bumping the Action pin; see CI details ci-details-doctor-and-the-pin . | Result | What to do | |---|---| | Pass · exit 0 | No finding requires blocking under your configuration. Keep running your normal test suite and code review. | | Block · exit 1 | Read the finding and the diff. It may be weakened verification or a false positive. | | Error · exit 2 | Resolve the input or analysis error before relying on the result. | The default threshold is high : a visible warn still passes. Read the finding. For the diff at the top of this page inside test invoice total in tests/test billing.py , checkwash prints: ASSERT WEAKENED HIGH tests/test billing.py :: test invoice total test invoice total: assertion strength EXACT VALUE 90 - BOUND 40 why high: NO PROD CHANGE IN DIFF no de-escalator applied before assert total == 105.3 after assert total 0 EXACT VALUE 90 - BOUND 40 ranks assertion strength before and after; why high names the escalator NO PROD CHANGE IN DIFF , or REPAIR EVIDENCE REFUSED when weakened alongside a production edit . Use checkwash check --format json for machine-readable output. Fix the change, or record a reviewed exemption. If the test was weakened by mistake, restore it and fix the code. If the weaker test is intentional, record a time-boxed exemption 90 days default, 180 max using the fingerprint printed in the report: checkwash allow "