github Dicklesworthstone/destructive_command_guard v0.17.1

one hour ago

What's Changed in v0.17.1

Security & Guardrail Fixes

  • Tri-state guardrail proof (bd-guardrails-global-options): careful_company_running_windows.guardrails now returns a tri-state DcgSegmentAction / DcgControlActionProof (Action / Inert / Unprovable). Static inert dcg argument data (for example dcg --agent="dcg --robot allow-once abc --yes" allowlist list or escaped-quote values) skips only the dcg-command regex fallback inside proven-inert segments while keeping all self-weakening dcg commands, leading env-var overrides (DCG_BYPASS, DCG_DISABLE), dynamic expansions, unknown options, and redirections fail-closed (DENY).
  • Lookaround rule & exemption fixes (#671): Preserves custom rule lookaround context and binds lookaround exemptions strictly to their own segments so chained commands cannot inherit exemptions across segment boundaries.

Installer & Cross-Platform Fixes

  • Minimal-container install.sh without python3: When python3 is unavailable on minimal Linux containers with an existing Claude Code settings.json, install.sh now delegates hook registration to the newly installed native dcg install binary (preserving existing JSON keys) instead of aborting under set -e. Optional agent auto-configuration calls are also guarded so a non-fatal hook merge warning never aborts installation.
  • Linux procps-ng Cursor detection: Replaced bare pgrep -fl "[Cc]ursor" pipelines with a cursor_process_running() helper that captures pgrep -fa (Linux) / pgrep -fl (macOS) before filtering, preventing the grep process itself from falsely triggering Cursor IDE detection on Linux.

Dependencies

  • Updated cookie 0.18.2 → 0.18.3 (RUSTSEC-2026-0594). cargo audit passes with 0 vulnerabilities.

Installation

curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/destructive_command_guard/main/install.sh" | bash -s -- --easy-mode

Or via Homebrew / Scoop:

brew install dicklesworthstone/tap/dcg
# or upgrade:
brew upgrade dcg
scoop update
scoop install dcg

Verification

All release archives, installers, and SHA256SUMS are signed with Minisign (keyid: 69B3955C8D2E62A8):

minisign -Vm SHA256SUMS -P RWSoYi6NXJWzaRs1mJmOwwXrZfPWcq6MXnQlNMLBYKzlIQTLwuVQG6uO
sha256sum -c SHA256SUMS --ignore-missing

Full Changelog: v0.17.0...v0.17.1

Don't miss a new destructive_command_guard release

NewReleases is sending notifications on new releases.