Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By kenhuangusv0.2.0MITIn 1 marketplace
Default-closed eval gate. External Promptfoo runs in CI are the real gate; this mod is defence in depth only.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Eval commandevalCommand
Command line that runs your evals (for example "promptfoo eval"). The gate opens only when it exits 0.
stringdefault promptfoo eval
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; runs programs; reads environment variables (OS).
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Default-closed eval gate. It denies Bash, PowerShell and file edits until a fresh passing eval is recorded for this session.
/plugin install eval-gate --marketplace kenhuangus/claude-code-security-mods
The install asks for Eval command (default promptfoo eval). You can change
it later in the plugin's config menu.
Try it in one session without installing: claude --plugin-dir ./mods/eval-gate.
/eval-gate. It runs your eval command; on exit code 0 the gate opens for
24 hours in this session only.tool.check with matcher { tool: ["Bash", "PowerShell", "Edit", "Write", "MultiEdit", "NotebookEdit"] }:
{ decision: "deny" } unless this session's gate flag is fresh, otherwise
next(e) so the normal decision rules run.command.run with matcher { command: "eval-gate" }: runs the eval command
with $.process.run (10 minute limit). On exit code 0 it sets the flag with a
timestamp; on any other outcome it leaves the flag unset.tool.check and command.run carry no session
id, so 0.1.0 always fell back to one global key, shared through $.store by
every session on the machine: one pass unlocked everything for 24 hours.
0.2.0 keys the flag on $.session.id(). If the id cannot be read the gate
stays closed; there is no global fallback./eval-gate works. The command is registered on $ at session.start
($.command.register). 0.1.0 shipped a markdown command file instead, which only
creates a prompt skill; the command.run hook never fired, so the gate could not be opened.userConfig
(evalCommand), as a command line or an argv list. On Windows it runs through
cmd /c so npm .cmd shims such as promptfoo start.claude plugin eval in CI. This mod is defence in
depth only.--safe-mode, so never use it as the
sole release gate.npm run check
claude plugin validate ./mods/eval-gate
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub kenhuangus/claude-code-security-mods --plugin eval-gatePlugins from other owners that cover similar ground