What is active-rules?
active-rules is a Claude Code mod by hatohato-lab that いま文脈に読み込まれているルール(.claude\rules)を、分類・番号・P・名前・行数・文字数・トークンの表と合計の行でペインに出す。Read・Edit・Write でファイルを触った瞬間に、そのファイルで効く場所限定ルールの名前を toast で知らせる. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | hatohato-lab |
| Repository | hatohato-lab/claude-code-active-rules |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Review before installing (76/100) |
| Rank | #6,219 of 9,397 Claude Code mods; #2,626 in Interface |
| License | MIT |
| Last commit | 2026-11-08 |
| Hooks | 6 events |
| Sees | every prompt, every tool call |
| Draws on | Pane |
Is active-rules safe to install?
active-rules scores 76/100 on the MCPMods security check: Review before installing. Things to review: writes files or config; watches every prompt or event. It passed 6 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes files or config | Review |
| Doesn't read environment variables | Pass |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.clock.every | |
$.clock.now | |
$.command.register | |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.write | writes files |
$.session.usage | |
$.state.get | |
$.state.set | |
$.ui.open | draws interface |
$.ui.panes | draws interface |
$.ui.resolve | draws interface |
$.ui.toast | draws interface |
How do I install active-rules?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/hatohato-lab/claude-code-active-rules claude plugin validate ./claude-code-active-rules/active-rules
- Install it. Run this in your terminal, then /reload-plugins in an open session.
claude plugin marketplace add hatohato-lab/claude-code-active-rules && claude plugin install active-rules@claude-code-active-rules
Or ask Claude to set it up
Paste this into Claude Code and it installs active-rules for you:
Install the "active-rules" Claude Code mod from https://github.com/hatohato-lab/claude-code-active-rules/tree/main/active-rules. Run claude plugin validate on it first and show me what it can access before you enable it.