DevClean
DevClean is an intelligent, filesystem-first storage auditor and transactional cleanup engine for developer workstations.
It helps you discover gigabytes of forgotten artifacts—like massive Python virtual environments, unreferenced Docker images, or stale node_modules—and offers explainable, safe recommendations on what to clean up.
Architecture
DevClean is built on a unidirectional, hexagonal architecture that explicitly separates discovery, policy, planning, and execution. The presentation layer strictly observes this engine.
graph TD
UI[Presentation / CLI]
UC[Use Cases]
RE[Recommendation Engine]
PL[Cleanup Planner]
EX[Cleanup Executor]
FS[Filesystem]
UI -->|Triggers| UC
UC -->|Provides Facts| RE
RE -->|Applies Policy| PL
PL -->|Creates Immutable Plan| EX
EX -->|Mutates| FS
Safety & Privacy Guarantees
DevClean is designed for environments where a wrong deletion could ruin a developer's day, and where absolute privacy is non-negotiable.
- Zero Telemetry: No analytics, no tracking, and no external API calls during built-in analysis. See our strict PRIVACY.md policy.
- Dry-Run by Default: Scanning (
devclean scan) is strictly read-only and never alters your filesystem. - Transactional Execution: The engine creates an immutable
CleanupPlanthat previews the exact bytes to be freed before making any destructive calls. - Explainable AI/Logic: Every recommendation explicitly tells you why an artifact is considered stale or safe to remove.
- Execution History: The engine maintains a robust, local JSON audit log of every cleanup transaction it performs.
Why DevClean? (Feature Comparison)
| Feature | DevClean | Generic Cleaners |
|---|---|---|
| Filesystem-first | Yes (context-aware logic) | No (regex or path matching) |
| Explainable recommendations | Yes | No |
| Transactional cleanup | Yes | No |
| Plugin architecture | Yes (standard Python entry_points) | Rarely |
| Dry-run by default | Yes | Sometimes |
| Audit history | Yes | No |
| Zero Telemetry Guarantee | Yes | No |
Demo & Screenshots
Release Demo
(To record your own demo: Run
vhs demo.tape using the provided configuration).
Interactive Discovery & Planning
Recommendation Selection
Detailed Explanations
Features
- Filesystem-First: Deterministic, read-only file inspections without relying on third-party CLIs.
- Event-Driven Progress: Zero UI polling; CLI components react asynchronously to backend lifecycle events.
- Plugin System: Analyzers are independently discoverable and load via
importlib.metadata.entry_points. Isolated failures do not crash the engine. - Machine-Readable: Emits schemas natively (
--json,--ndjson) for CI/CD automation anddevclean diffsupport.
Usage Workflows
1. Interactive Assessment & Cleanup
devclean scan
devclean cleanup --preview
devclean cleanup
2. Standalone HTML Reporting
devclean report --html report.html
3. Pipeline Automation
devclean cleanup --preview
if [ $? -eq 3 ]; then
echo "Cleanup actions are available. Triggering automated execution..."
devclean cleanup --policy aggressive
fi
4. Rich Diagnostics
devclean doctor
devclean version --verbose
5. Report Diffing
devclean report --json before.json
# ... days later ...
devclean report --json after.json
devclean diff before.json after.json
Documentation
Development
# Setup
poetry install
# Formatting and Type-checking
ruff check .
ruff format .
mypy src
# Architecture Enforcement
lint-imports
# Testing
pytest tests -vv
License
MIT
Metadata
Release files for devclean-cli 1.0.0
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 |
|---|---|---|---|---|
| devclean_cli-1.0.0.tar.gz | 46.4 kB | Without provenance | Details for devclean_cli-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| devclean_cli-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for devclean_cli-1.0.0-py3-none-any.whl |
Total release size: 114.1 kB
Release files / devclean_cli-1.0.0.tar.gz
| Download URL | devclean_cli-1.0.0.tar.gz |
|---|---|
| Size | 46.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1b1670e01fe1fba870f669dadc47ea435098dff47274bf4f1905d2aa5fb5dc66
|
|
BLAKE2b-256 checksum How to use checksums |
d3c11dc1d7f522656aa64869e582a964385d6971879ae247063f1f8fe0e46698
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Release files / devclean_cli-1.0.0-py3-none-any.whl
| Download URL | devclean_cli-1.0.0-py3-none-any.whl |
|---|---|
| Size | 67.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1916e0bf1b0e06430a473eedb4ddedb03ecf237f20e4d6e58d08a5f034b75632
|
|
BLAKE2b-256 checksum How to use checksums |
ae95445883f1799e55608771d18957f7a1c80375bf1f3030dc915b54d6d7fc6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.9
|
Security for devclean-cli 1.0.0
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.