Universal CLI for system cleanup and audit. Analyzes ML caches, Python dependencies, application leftovers, and security on macOS and Linux.
- Unused ML models (Hugging Face, PyTorch, TensorFlow) consuming disk space
- Dependency conflicts in Python projects
- Removed application leftovers
- Security issues (file permissions, secrets in code)
- Build artifacts and unused dependencies
- System scanning: caches, logs, application leftovers
- ML cache analysis: Hugging Face, PyTorch, TensorFlow
- Dependency analysis: conflicts, unused, outdated
- Security checks: permissions, SSH keys, sensitive files
- Cleanup recommendations with size estimates
- Cross-platform: macOS and Linux
- Reports: Markdown and JSON
- Python 3.12+ (3.12, 3.13)
- uv (installed automatically)
- macOS or Linux
git clone https://github.com/FUYOH666/Cleaner-OS.git
cd Cleaner-OS
uv sync
uv run python -m syscleaner healthRun directly: syscleaner or system-cleaner
# Full scan
syscleaner scan --all
# Categories
syscleaner scan --caches
syscleaner scan --security
syscleaner scan --projects
syscleaner scan --dependencies
syscleaner scan --ml-cache
# Save and report
syscleaner scan --all --save-results results.json
syscleaner report --format markdown --output report.md --from-scan results.json
# Health check
syscleaner healthCopy config.yaml.example to config.yaml and edit. Optional; defaults work out of the box.
scan:
exclude_paths: [~/Library/Mail/, ~/Library/Messages/, ...]
min_size_mb: 10
check_security: true
check_project_artifacts: true
check_dependencies: true
check_ml_cache: true
security:
sensitive_patterns: ["*.env", "*credentials*", ...]
check_ssh_permissions: true
check_file_permissions: true
cleanup:
safe_to_delete_patterns: ["**/__pycache__", "**/.DS_Store", ...]- Caches — macOS:
~/Library/Caches/, Linux:~/.cache/ - App leftovers — Compare Application Support with installed apps
- Security — SSH permissions, sensitive files, world-readable configs
- Hidden files — Large hidden files/dirs in home
- Project artifacts —
__pycache__,node_modules,dist,build - ML caches — Hugging Face, PyTorch, TensorFlow (unused models >30 days)
- Dependencies — Conflicts, unused, outdated via
uv pip check
Markdown: Summary, ML caches, dependencies, caches, security, cleanup recommendations.
JSON: Structured data for automation.
- No automatic deletions; analysis and recommendations only
- Fail-fast on config errors
- Path validation, structured logging
- Fork, create branch, make changes
- Run
uv run ruff check .,uv run pyright,uv run pytest - Open Pull Request
MIT. See LICENSE.
Aleksandr Mordvinov — GitHub | scanovich.ai