DevWorkBench
A local-first, open-source developer & DevOps workbench CLI.
DevWorkBench is a unified, deterministic command-line workbench for analyzing, formatting, linting, validating, and diagnosing DevOps and developer files across modern stacks.
Core Product Principles
- Open Source First: Permissively licensed, leveraging mature open-source tooling.
- Local-First / Privacy-First: 100% offline and deterministic. DevWorkBench does NOT upload source code, Jenkinsfiles, manifests, or logs to any external service. No database or cloud API key required.
- Report First, Modify Second:
scanandanalyze-buildare strictly read-only and NEVER modify files. - Large File Support: Streaming and chunked processing to safely handle huge Jenkins build logs and data dumps without memory spikes.
- Extensible Architecture: Decoupled adapters and rule registries for multi-technology support.
- Zero AI Dependency: DevWorkBench does not require AI or cloud services to perform its analysis.
Supported Technologies
- DevOps: Jenkins / Groovy, Kubernetes, OpenShift, Helm, Terraform / HCL, Ansible, Dockerfile, Docker Compose, GitHub Actions, GitLab CI, Shell / Bash, AWS / Azure / GCP configs.
- Developer Files: Python, JSON, YAML, XML, SQL, JavaScript, TypeScript, Java.
- Build Logs: Jenkins, Kubernetes, OpenShift, Helm, Docker/Kaniko, Terraform.
Installation & Distribution
DevWorkBench is a standard, cross-platform Python application with no mandatory internet or cloud dependencies.
1. From PyPI (Standard)
python -m pip install devworkbench
2. From Local Pre-Built Wheel (Air-Gapped / Corporate Network)
python -m pip install dist/devworkbench-1.1.0-py3-none-any.whl
3. Fully Offline with Local Wheels Directory
python -m pip install --no-index --find-links ./packages devworkbench
4. Development & Source Installation
# Editable install
python -m pip install -e .
# With dev & test dependencies
python -m pip install -e ".[dev]"
5. Verify Installation
# Check version
devworkbench --version
# Run complete environment and tool health diagnostics
devworkbench doctor
Uninstall Safety Guarantee:
pip uninstall devworkbench cleanly removes only the DevWorkBench package. It never touches external CLI tools (helm, terraform, shellcheck), user configurations, or scanned repositories.
Usage
1. Flexible Repository & File Scanning
# Scan current directory
devworkbench scan .
# Scan a single file
devworkbench scan Jenkinsfile
# Scan multiple specific files
devworkbench scan Jenkinsfile deployment.yaml service.yaml
# Scan a mix of files and directories
devworkbench scan Jenkinsfile k8s/ helm/payment-service/
# Output structured JSON (or shortcut --json)
devworkbench scan . --json
devworkbench scan . --format json --output report.json
# Custom ignore patterns and verbose details
devworkbench scan . --ignore "target/*" --verbose
2. Safe Fix Engine (Interactive & Automated)
DevWorkBench provides a safe, deterministic fix workflow. Fixes are classified by safety (SAFE, UNSAFE, MANUAL_REVIEW) and only safe fixes from native open-source engines are applied automatically.
# Preview what fixes will be applied without touching files
devworkbench fix . --dry-run
# Interactive fix: inspect the plan and confirm before applying [y/N]
devworkbench fix .
# Apply safe fixes automatically (e.g. CI/CD pipelines)
devworkbench fix . --yes
# Fix specific files or directories
devworkbench fix src/app.py terraform/main.tf
# Output fix plan and results as JSON
devworkbench fix . --json
Fix Safety Guarantees:
- SHA-256 Pre-Modification Integrity Verification: Files modified between planning and execution are safely skipped.
- Multi-Engine Conflict Detection: If multiple engines suggest conflicting changes to the same file, the file is withheld for manual review.
- Post-Fix Validation: Re-scans the repository after fixes are applied to verify diagnostic resolution and verify no syntax regressions.
3. Build-Log Analysis & Root Cause Identification
Streamingly analyze raw build logs from Jenkins, Kubernetes, OpenShift, Helm, or Docker with cascaded failure detection:
# Analyze a build log file
devworkbench analyze-build build.log
# Stream from stdin / pipe
cat build.log | devworkbench analyze-build -
# Export build analysis to JSON
devworkbench analyze-build build.log --json -o build-report.json
4. Reference-Aware Helm Migration & Example Ingestion
DevWorkBench provides a deterministic, local-first Kubernetes-to-Helm migration engine that operates across entire workspaces and directories rather than individual files.
Input Kubernetes Resources + Reference Chart Pattern -> Generated Helm Chart -> Native/OSS Validation
Core Architectural Principles
- INPUT determines WHAT resources are generated: The input directory determines which resources exist. DevWorkBench will never generate a resource merely because the reference chart contains it.
- REFERENCE determines HOW matching resources are structured: Conventions, helper prefixes (
_helpers.tpl), label schemes (app.kubernetes.io/*), and values hierarchies are adopted from the reference chart. - Helmify Open-Source Orchestration: Helmify is integrated as an
OPEN_SOURCEprovider (Priority 2) in the Mandatory Tool Selection Hierarchy. DevWorkBench orchestrates Helmify for baseline manifest conversion when available, normalizing its output, overlaying reference patterns, and providing transparent command telemetry. - First-Class HPA Support: Full
autoscaling/v2support (CPU, memory, custom metrics) parameterized cleanly intovalues.yamland gated in Deployments, preserved faithfully even when baseline converters omit it. - Graceful Fallback & Immutability: If Helmify is unavailable or fails, DevWorkBench deterministically falls back to its internal generator. Input directories and reference directories remain strictly read-only.
Migration Workflow
# Basic directory migration (auto-selects Helmify if available, else DevWorkBench)
devworkbench migrate ./k8s --to helm
# With a reference Helm chart directory
devworkbench migrate ./k8s --to helm --reference ./company-helm-example --output ./generated-chart
# Using an ingested reference example
devworkbench migrate ./k8s --to helm --example company-standard --output ./generated-chart
# Explicitly choose provider (auto, opensource, devworkbench)
devworkbench migrate ./k8s --to helm --provider devworkbench
# Preview migration plan and dependency graph without writing files
devworkbench migrate ./k8s --to helm --reference ./company-helm-example --dry-run
# Output structured JSON migration report with full provider traceability
devworkbench migrate ./k8s --to helm --json
Reusable Example Ingestion System
# Ingest and analyze a reference chart into local storage
devworkbench examples add ./company-helm-example --name company-standard
# List all stored reference examples
devworkbench examples list
# Inspect detected conventions and templates of an example
devworkbench examples inspect company-standard
# Remove an example
devworkbench examples remove company-standard
# Standalone inspection of any Helm chart without saving
devworkbench helm inspect ./company-helm-example
5. Explicit Tool & Dependency Setup
DevWorkBench NEVER downloads or installs tools automatically during normal scan/fix commands. Explicit installation is performed only via setup:
# Preview what tools would be installed without modifying system
devworkbench setup --dry-run
# Run explicit setup and post-install capability verification
devworkbench setup
# Filter setup by technology
devworkbench setup -t python
devworkbench setup -t terraform
# Output structured setup and fallback report as JSON
devworkbench setup --json
Restricted Corporate Network & Air-Gapped Guarantees:
- Zero Runtime Downloads:
scan,analyze-build,fix, andcapabilitiesoperate 100% offline. - Structured Error Classification: Network, proxy, TLS, DNS, or permission failures are classified (
NETWORK_UNAVAILABLE,TLS_ERROR,PROXY_ERROR,PERMISSION_DENIED) and gracefully fall back to DevWorkBench rule engines. - Post-Install Verification Probes: Every tool installation is checked for executable presence, version, and capability before being marked available.
- Untrusted Input Isolation: Scanned project files (
requirements.txt,Dockerfile) are untrusted and never trigger tool installations.
6. Capabilities & Tool Hierarchy Introspection
DevWorkBench implements a Mandatory Tool Selection Hierarchy across all technologies:
- Priority 1 (Native): Official ecosystem CLI (e.g.
helm,terraform,tofu,shellcheck,hadolint,ruff). - Priority 2 (Open-Source): Established open-source tool or Python package (e.g.
PyYAML,checkov,tflint,actionlint,ansible-lint,kube-linter,kubeconform). - Priority 3 (DevWorkBench): Deterministic internal rule engines, correlation models, and safe fix planners.
- Priority 4 (Manual Review): Fallback when no automated provider can safely operate.
# Inspect all capabilities and active provider resolutions
devworkbench capabilities
# Filter by technology
devworkbench capabilities -t helm
devworkbench capabilities -t kubernetes
# Output capability tree as JSON
devworkbench capabilities --json
# Inspect all installed vs missing tool engines
devworkbench tools
Configuration (.devworkbench.yaml)
Control provider preferences and rules explicitly in your workspace:
providers:
helm:
preferred: native
kubernetes_lint:
preferred: opensource
yaml_parsing:
preferred: auto
rules:
disabled:
- JENKINS004
severity_overrides:
K8S003: warning
DevOps Best-Practice Rules & Diagnostics Catalog
DevWorkBench includes deterministic best-practice and security rules with full provider provenance and documentation links:
| Rule ID | Technology | Category | Description | Provider / Priority | Fix Safety |
|---|---|---|---|---|---|
JENKINS001 |
Jenkins | Security | Detects hard-coded credentials/secrets without leaking secret values | DevWorkBench (P3) | Manual Review |
JENKINS002 |
Jenkins | Security | Warns on unsafe variable interpolation inside shell steps | DevWorkBench (P3) | Manual Review |
JENKINS003 |
Jenkins | Best-Practice | Identifies multi-stage pipelines missing timeout protection | DevWorkBench (P3) | Manual Review |
JENKINS004 |
Jenkins | Best-Practice | Detects error suppression (|| true) in shell steps |
DevWorkBench (P3) | Safe / Manual |
K8S001 |
Kubernetes | Best-Practice | Flags containers missing resource requests or limits | DevWorkBench (P3) | Manual Review |
K8S002 |
Kubernetes | Security | Flags containers running in privileged mode (privileged: true) |
DevWorkBench (P3) | Manual Review |
K8S003 |
Kubernetes | Best-Practice | Flags containers using unpinned or :latest image tags |
DevWorkBench (P3) | Manual Review |
K8S004 |
Kubernetes | Best-Practice | Flags containers missing liveness or readiness probes | DevWorkBench (P3) | Manual Review |
OPENSHIFT001 |
OpenShift | Security | Flags OpenShift Routes lacking TLS termination | DevWorkBench (P3) | Manual Review |
HELM001 |
Helm | Schema | Validates required metadata in Chart.yaml (name, version, apiVersion) |
DevWorkBench (P3) | Manual Review |
HELM002 |
Helm | Best-Practice | Recommends maintainers and source repository links in Chart.yaml |
DevWorkBench (P3) | Manual Review |
DOCKER001 |
Dockerfile | Best-Practice | Base image uses unpinned or :latest tag in FROM instruction |
DevWorkBench (P3) | Manual Review |
TERRAFORM001 |
Terraform | Security | Flags hard-coded cloud credentials or secret tokens in HCL configurations | DevWorkBench (P3) | Manual Review |
# List all rules in human catalog format
devworkbench rules
# Filter rules by technology
devworkbench rules -t kubernetes
devworkbench rules -t jenkins
# Export rules with full metadata, rationales, and docs as JSON
devworkbench rules --json
License
DevWorkBench is distributed under the Apache 2.0 License. Third-party dependencies are documented in THIRD_PARTY_LICENSES.md.
Release files for devworkbench 1.1.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 | |
|---|---|---|---|
| devworkbench-1.1.0.tar.gz | 139.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| devworkbench-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 273.6 kB
Release files / devworkbench-1.1.0.tar.gz
| Download URL | devworkbench-1.1.0.tar.gz |
|---|---|
| Size | 139.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31b8d19d8fbeee6c451d72a65c49e4beb4d6e9e7c74bc75463e29c959a520d2b
|
|
BLAKE2b-256 checksum How to use checksums |
2a9794863868b57db684364d2d887543c5d675d337a4485098e8bfd0c1e1e592
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / devworkbench-1.1.0-py3-none-any.whl
| Download URL | devworkbench-1.1.0-py3-none-any.whl |
|---|---|
| Size | 134.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3760904bb0e9df3e608a4d403e9113b7f9598723d3ce5100e5d99047a446f3c2
|
|
BLAKE2b-256 checksum How to use checksums |
5b38e4119ddc30a02ff2837c118e6bdea2a595ecc78b46751fdb106f9401d06b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency log