guardrails Claude Code mod

Provides configurable rules for risky commands and file access.

  • session.start
  • command.run
  • tool.call
  • ui.render

Install commands

Enter these two lines in the Claude Code prompt, in order.

1. Add marketplace   2. Install plugin
/plugin marketplace add mishgoldenberg/claude-mods
/plugin install guardrails@claude-mods

Review the source before installing. Installation guide →

Permissions Facts

Can read files
–
Can write files
–
Can access the network
–
Can read environment variables
–
Can change prompts
–
Can intercept tool calls
Yes

Capability evidence is not a security certification; “–” does not mean a capability is absent.

Source & updates

Last updated
2026-10-06
License
MIT
Plugin version
0.2.0
Claude Code
2.1.287+
Source
0954c97
Repository stars
5 · Repository contains 12 mods in this directory
Source files
Plugin manifest ↗Hooks configuration ↗Registered module ↗Marketplace manifest ↗

Source inventory

Declared events: session.start | command.run{command=guard} | command.run{command=guard-preset} | command.run{command=guard-log} | tool.call | ui.render{component=Pane | requestId=guardrails}

Declared API calls: $.clock.now | $.command.register | $.session.cwd | $.session.root | $.state.get | $.state.set | $.store.get | $.store.set (via clearLog | logBlock | save) | $.ui.open | $.ui.resolve | $.ui.status (via save) | $.ui.toast

Can intercept tool calls evidence

guardrails:394 ↗

on('tool.call', async ($, e, next) => {

Review methodology · Source and updates · Runtime limits · Function hooks guide