github kenryu42/cc-safety-net v2.9.0

31 minutes ago

Antigravity CLI is now protected through a native agy plugin instead of a hand-written hook entry, and this release clears three false denials reported from the field on Windows PowerShell and Python scripts.

Highlights

  • Changed the Antigravity CLI integration to install as a native agy plugin that ships the cc-safety-net skill, replacing the managed entry in ~/.gemini/config/hooks.json. (#388, #390)
  • Fixed PowerShell member access such as $_.Key being read as a .key file, which denied ordinary pipelines in standard mode. (#238, #383)
  • Improved host CLI detection during install so a slow CLI is no longer reported as not installed. (#382)

Changed

  • Changed Antigravity install and uninstall to run agy plugin install and agy plugin uninstall, installing from the published plugin branch. A successful install removes the legacy cc-safety-net hook from ~/.gemini/config/hooks.json and leaves unrelated hooks untouched; a failed install keeps it. status and doctor now report Antigravity as a plugin, and detect the plugin even when it is disabled. agy must be on PATH, and update skips Antigravity when it is absent. (#388, #390)
  • Changed install, update detection, and the system report to look each host CLI up on PATH instead of running its --version under a 5-second cap. A CLI that is slow to answer or exits non-zero is now offered rather than greyed out as not installed, and the picker no longer launches host CLIs. DeepSeek Harness keeps its npx --offline --no-install package check, which PATH cannot answer. (#382)
  • Changed Codex plugin detection to codex plugin list --marketplace cc-marketplace, which skips the remote catalog refresh that could take minutes and cost Codex detection in install, doctor, and the GUI. A cc-safety-net plugin installed through a marketplace other than cc-marketplace is no longer listed. (#386)

Fixed

  • Fixed Antigravity tool calls that arrive at hook --coding-cli, which happens when agy converts the Claude Code plugin into a hook. They were silently allowed with no audit entry; they are now evaluated as Antigravity, return agy's {"decision":"deny","reason":…} output, and are recorded under the antigravity-cli agent. (#387)
  • Fixed unquoted PowerShell $var.Member chains being split into a variable plus a file suffix, so commands such as Add-Member $x.Key 1, Write-Output $_.Key, and Get-Content $x.Pem no longer trigger extension rules. Quoted text ("$_.key"), braced suffixes (${dir}.key), and plain file names (id.key) still match, and POSIX parsing is unchanged. (#238, #383)
  • Fixed standard mode treating an argument list held in a name differently from the inline list, which denied scripts such as args = ['true'] followed by subprocess.run(args, check=True) beside unrelated report text. A lone-name first argument now counts as the inline list only when the name is assigned once at statement level to a flat list or tuple that passes the inline element checks; modified, reassigned, or shell-bearing lists still block, and strict and paranoid modes are unchanged. (#238, #385)
  • Fixed update reporting a failure for Antigravity when clearing the npx cache failed; the plugin reinstall now runs anyway, while installs still using the legacy hook keep getting the refreshed npx package. (#390)

Security

  • Added the Antigravity plugin hook file (~/.gemini/config/plugins/cc-safety-net/hooks.json) and the plugin enable switch (~/.gemini/config/config.json) to the secret.cli.antigravity protected paths, so the files that turn the protection off are guarded like the other coding CLI configs. (#388)

Don't miss a new cc-safety-net release

NewReleases is sending notifications on new releases.