Skip to content

Releases: kenryu42/claude-code-safety-net

v0.8.2

25 Mar 06:04

Choose a tag to compare

Fixed

  • Allow rm -rf for explicit temp-directory targets such as /tmp/..., /var/tmp/...,
    and $TMPDIR/... even when the current working directory is $HOME
  • Move home-directory rm classification into the shared rules-rm analyzer so blocking
    decisions and explain output follow the same target-aware path

Related Issues

  • Issue #41: False positives block legitimate cleanup operations and string literals in gh commands

Related PRs

  • PR #42: fix(rules-rm): allow temp targets when cwd is home directory

v0.8.1

24 Mar 15:14

Choose a tag to compare

New Features

  • Detect copilot-safety-net plugin installs in doctor via copilot plugin list

Fixed

  • Populate configPath consistently when Copilot CLI is detected through the plugin flow
  • Report copilot-plugin as the config path for plugin-based Copilot CLI detection

Related PRs

  • PR #40: feat: add copilot cli plugin detection to doctor command

v0.8.0

21 Mar 04:44

Choose a tag to compare

New Features

  • Add doctor support for GitHub Copilot CLI, including detection of Safety Net hooks in repository hook files, user hook files, and inline Copilot settings with version-aware diagnostics.
  • Block git switch --force, git switch --discard-changes, and git checkout --force / -f.

Changed

  • Show the detected Copilot CLI version in doctor output and probe Copilot version commands more quickly and reliably.
  • Expand Copilot CLI setup documentation to cover hook-file and inline config variants, config precedence, disableAllHooks, and COPILOT_HOME.

Fixed

  • Close a TMPDIR path traversal bypass so non-temp overrides cannot escape /tmp, /var/tmp, or the system temp directory.
  • Harden shell parsing so destructive commands are still detected inside redirects, nested command substitutions, arithmetic expansions, grouped subshells, process substitutions, and attached backticks.
  • Fix git checkout argument parsing for ambiguous ref/pathspec cases and documented option variants without misclassifying value-taking flags such as git switch -cfeature.

v0.7.1

25 Jan 15:04

Choose a tag to compare

Core

  • c439be8 fix: strip trailing separators in path normalization for cross-platform comparison
  • 33012b1 fix: resolve cwd to absolute path in explain config
  • 300ee42 fix: handle Windows path separators in rm command analysis
  • a4db304 fix: windows path separator

Claude Code

No changes in this release

OpenCode

No changes in this release

v0.7.0

23 Jan 19:08

Choose a tag to compare

Core

  • 25c18a2 feat: add explain command and structured CLI help
  • 976e382 fix: add fallback for missing timestamp in session ID
  • e187b3f fix: rename outputDeny to outputCopilotDeny
  • db01a91 feat: add GitHub Copilot CLI hooks integration

Claude Code

No changes in this release

OpenCode

No changes in this release

Thank you to 1 community contributor:

  • @crmitchelmore:
    • feat: add GitHub Copilot CLI hooks integration
    • fix: rename outputDeny to outputCopilotDeny
    • fix: add fallback for missing timestamp in session ID

v0.6.2

19 Jan 09:38

Choose a tag to compare

Core

  • 58cc257 feat: add doctor command diagnostics

Claude Code

  • 44cb35c fix(windows): explicitly invoke cc-safety-net.js with node

OpenCode

No changes in this release


Thanks to @jacoballen4534 for identifying and suggesting the fix for Windows support in #21.

v0.6.0

15 Jan 17:05

Choose a tag to compare

Core

  • 5e3b4d8 feat: add statusline command
  • b2eed5e fix: block commands that exceed recursion depth

Claude Code

  • e121857 feat: add /set-statusline slash command
  • 8b0bb67 fix: use local binary in hook instead of npx for faster execution

OpenCode

No changes in this release


Thanks to @lgandecki for identifying the npx performance overhead.

v0.5.1

11 Jan 17:59

Choose a tag to compare

Core

  • 6f40164 feat: add builtin commands for opencode plugin

Claude Code

No changes in this release

OpenCode

No changes in this release

v0.5.0

10 Jan 18:45

Choose a tag to compare

Core

  • cfb5b25 fix: drain stderr in gemini hook tests
  • 5075018 feat: add gemini cli compatibility

Claude Code

No changes in this release

OpenCode

No changes in this release

v0.4.1

08 Jan 17:35

Choose a tag to compare

Core

No changes in this release

Claude Code

  • 997bb25 fix(commands): simplify verify-custom-rules documentation
  • 23dd9e1 fix(commands): improve set-custom-rules flow and schema documentation

OpenCode

  • b656671 feat(.opencode): add OpenCode command definitions