CheckWash
Offline Python CLI that reads a Git diff and flags changes that weaken tests or CI checks, such as deleted assertions or skipped tests.
At a Glance
CheckWash CLI is licensed under Apache-2.0; runs locally with no LLM and no network during analysis. Alpha pre-release.
Engagement
Available On
Alternatives
Listed Dec 2026
About CheckWash
CheckWash is an Apache-2.0 licensed Python command-line tool, published by taipei49314, that reviews a Git diff for changes that weaken tests or CI checks. It is marked alpha and is distributed on PyPI, with the latest listed release being 0.14.0. The README states it runs locally with no LLM, no network access during analysis, and never executes the code under review.
What It Is
CheckWash is a static diff reviewer for verification integrity. It reads a Git diff and flags known patterns such as deleted assertions, skipped tests, relaxed expectations, and CI checks that stop failing. For example, changing assert total == 105.3 to assert total > 0 is flagged for review, including when the change was written by a coding agent.
Python is the primary supported language, and JS/TS support covers a bounded set of patterns.
How It Works
After installing with pipx or pip, users run checkwash demo to replay sample tampering cases offline, checkwash check to inspect uncommitted changes, or checkwash check HEAD~1..HEAD for a commit range. Branch review from the merge base is available with BASE...HEAD. A single-file zipapp can be run without installing.
Findings include a rule name (such as ASSERT_WEAKENED), a severity, the before and after lines, and the reason for the severity. The result is a pass (exit 0), block (exit 1), or error (exit 2), with a default blocking threshold of high. JSON and SARIF output are available for machine integration.
Where It Fits in Agent and CI Workflows
A checkwash hook install --agent claude-code command writes Claude Code hooks: a Stop hook that checks the working tree and session commits, and, in local mode, a PreToolUse prompt before weakening edits to Python test files. A GitHub Actions workflow runs the check on pull requests; the README notes that making the checkwash status check required in branch rules is what actually blocks merges.
Intentional weaker tests can be recorded as time-boxed, reviewed exemptions read from the base side of the diff, so a pull request cannot exempt itself.
Current Status and Limits
The project describes itself as alpha: a pass means no known tampering pattern was flagged, not that a change is correct. Legitimate refactors can trigger blocks; the README reports that the 0.12.0 CLI blocked 6 of 60 cases in its refactor corpus. It requires Python 3.11+ and Git.
Collections
Popular collections
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
- Black Friday 2026: Learn with AI
Collection by @evtuff
- Black Friday 2026: Coding Agent Tools
Collection by @samofcode
- Black Friday 2026: AI APIs and Creative Tools
Collection by @priyashah
Add CheckWash to one of your collections.
Community Discussions
Be the first to start a conversation about CheckWash
Share your experience with CheckWash, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
CheckWash CLI is licensed under Apache-2.0; runs locally with no LLM and no network during analysis. Alpha pre-release.
- Apache License 2.0 (OSI-approved) core CLI
- Runs locally; no LLM; no network during analysis; never executes your code
- 22 detectors
- Zero runtime dependencies
- GitHub Action for CI
Capabilities
Key Features
- Flags weakened assertions, deleted assertions, skipped tests, and relaxed expectations in Git diffs
- Detects CI checks that stop failing
- Runs offline with no LLM and never executes reviewed code
- Built-in demo of tampering cases and an honest fix
- Branch and commit-range review (BASE...HEAD)
- JSON and SARIF output
- Claude Code Stop and PreToolUse hooks
- GitHub Actions workflow for required CI check
- Time-boxed reviewed exemptions with base-side configuration
- Guardrail protection for agent-instruction files
- Single-file zipapp distribution
