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-modsReview the source before installing. Installation guide →
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
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
on('tool.call', async ($, e, next) => {Review methodology · Source and updates · Runtime limits · Function hooks guide