- Gatekeeper command:
repoclean gate- One-command summary report for repo safety + hygiene
- Shows repo health score (0–100)
- Supports
--staged-onlymode
- Tracked junk support
- Detects junk already tracked in git history (e.g.
__pycache__/*.pyc,.log,.tmp) - Command:
repoclean tracked-junk - Auto-fix:
repoclean tracked-junk --fix(removes from index but keeps locally)
- Detects junk already tracked in git history (e.g.
- Phase 5 checks (Repo Health as gatekeeper)
- Detect missing
.gitignore - Detect
.envexists but is not ignored
- Detect missing
- Config upgrades:
.repoclean.tomlcan extend junk rules:junk_dirsjunk_filesjunk_extensions
scanoutput now includes:- Repo health score
- Tracked junk count
.gitignore/.env ignoredstatus
- CI now supports additional fail categories:
tracked-junkgitignoreenv
- Pre-commit hook now uses staged-only checks for speed + commit relevance.
- Staged-only fix auto-unstage correctness
- When deleting staged junk, repoclean now updates git index properly:
git rm --cached …fallbackgit add -u
- Prevents commits containing missing blobs / mismatch index issues.
- When deleting staged junk, repoclean now updates git index properly:
- Added
--staged-onlymode for repo scanning/cleanup (only checks files staged for commit) - Added
repoclean fix --staged-onlyto safely remove junk artifacts from the staged set - Auto-unstage behavior: when
fix --staged-onlydeletes a staged junk file, repoclean now:- removes it from git index (
git rm --cached …fallback) - stages deletion updates correctly (
git add -u) - prevents “commit contains deleted blob” / mismatch issues
- removes it from git index (
- Pre-commit hook now runs staged-only CI checks for speed + relevance
- Strict mode hook blocks commits on:
- secrets
- junk artifacts
- sensitive files
- large files
- Warn mode hook blocks only on secrets (allows commit otherwise)
- Improved junk rules coverage (
.log/.tmp/.swp, caches, build artifacts etc.)
- Added severity levels (
low/medium/high/critical) - Added entropy detection for suspicious high-randomness tokens
- Added support for more real-world token patterns (GitHub, Slack, Stripe, Telegram, JWT, etc.)
- Added
--min-severityand--fail-onflags for CI/hook workflows
- Fixed missing tomli dependency on Python 3.10 (GitHub Actions install issue)
- Fixed pre-commit hook execution on Windows by using a shell wrapper that invokes Python
- Improved pre-commit hook with strict/warn modes
- Hook now runs
repoclean ci --json - Added
repoclean hook statusandrepoclean hook print - Hook metadata stored in
.git/repoclean_hook.toml
- Added scan gating via
--fail-on(junk/sensitive/large) - Added
repoclean cicommand for CI pipelines with correct exit codes
- Added .repoclean.toml configuration support
- Added ignore rules for scan/secrets/fix
- Added allowlist paths for secrets scan
- Added repoclean config init command
- Published package to PyPI as
repoclean-cli - Added secret scanning and git hook support