Files
awesome-opencode/data/plugins/opencode-safety-gates.yaml
John SmithandClaude Opus 5.5 3a6d104fcf chore(data): backfill kind, topics and compat for every entry; follow renamed repos
- kind/topics: keyword first pass, then reviewed and corrected by hand for all 513 entries
- compat: detected from npm packages, package.json and source (scripts/utils/compat.js). Plugins: 134 v2, 125 v1, 12 unverified; 13 entries the review loop marked V2 pin @opencode-ai/plugin 1.x, and ~20 loop V2 verdicts based only on the absence of V1 markers are V1 plugin functions in source
- npm and path filled where verifiable (package repository matches the entry); 9 bogus npm values from install prose were not kept
- 29 repo URLs updated to the renamed/transferred repository; xberg-io entries point at their live repos instead of the archived monorepo; lavi uses repo + path instead of a /tree/ URL
- removed projects/opencode-sessions.yaml (same repo as plugins/opencode-sessions.yaml)
- install: renamed to installation:, mojibake fixed, inline HTML links removed from two descriptions

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-17 13:00:22 -04:00

9 lines
1.0 KiB
YAML

name: opencode-safety-gates
repo: https://github.com/yg-codes/opencode-safety-gates
tagline: Run Claude Code bash-gate scripts inside OpenCode, deny self-revoking commands, catch fabricated CLI syntax.
description: Safety gates for OpenCode built on the V2 plugin API, with zero runtime dependencies. Wraps the built-in bash tool executor and runs your Claude Code PreToolUse/Bash gate scripts unchanged, from the same settings.json wiring — one script enforces in both tools. Ships a bundled example gate (options.exampleGates) that denies self-revoking commands — service stops that destroy the session's own access to the host (sssd, sshd, NetworkManager, firewalld, iptables flush, SSSD cache wipe). A config-driven verify-cli-syntax guard sends one corrective prompt per session when a reply recommends CLI syntax the session shows no verification for (--help, man page, or upstream source). Setup logs a health line with the active gate count, so a dead gate is never silent.
kind: plugin
topics:
- security
compat: v2