[PR #7212] docs: add cc-safety-net plugin to the ecosystem #12299

Open
opened 2026-02-16 18:17:13 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7212

State: open
Merged: No


Hello, this PR adds a new plugin to the https://opencode.ai/docs/ecosystem/ page.

cc-safety-net

This plugin acts as a safety net for AI coding agents, catching destructive git and filesystem commands before they execute. It provides semantic command analysis that goes beyond simple prefix matching—parsing arguments, understanding flag combinations, recursively analyzing shell wrappers, and distinguishing safe operations from dangerous ones.

Key features:

  • Blocks destructive git commands (git reset --hard, git push --force, git checkout --, etc.)
  • Prevents dangerous filesystem operations (rm -rf outside cwd, root/home deletion)
  • Detects shell wrappers (bash -c, sh -c) and interpreter one-liners (python -c)
  • Supports custom blocking rules via .safety-net.json
  • Includes audit logging and secret redaction

npm: cc-safety-net
Read more about it here.

Thanks.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7212 **State:** open **Merged:** No --- Hello, this PR adds a new plugin to the https://opencode.ai/docs/ecosystem/ page. ## `cc-safety-net` This plugin acts as a **safety net for AI coding agents**, catching destructive git and filesystem commands before they execute. It provides semantic command analysis that goes beyond simple prefix matching—parsing arguments, understanding flag combinations, recursively analyzing shell wrappers, and distinguishing safe operations from dangerous ones. **Key features:** - Blocks destructive git commands (`git reset --hard`, `git push --force`, `git checkout --`, etc.) - Prevents dangerous filesystem operations (`rm -rf` outside cwd, root/home deletion) - Detects shell wrappers (`bash -c`, `sh -c`) and interpreter one-liners (`python -c`) - Supports custom blocking rules via `.safety-net.json` - Includes audit logging and secret redaction **npm:** [`cc-safety-net`](https://www.npmjs.com/package/cc-safety-net) Read more about it [here](https://github.com/kenryu42/claude-code-safety-net). Thanks.
yindo added the pull-request label 2026-02-16 18:17:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12299