Claude Code mod
rulebook
Hard rules on tool calls, kept in ~/.claude/rulebook.json; Claude adds a rule when you correct it. /rules lists or removes them.
Install
git clone https://github.com/aidan-nunn-sys/claude-config.git
claude --plugin-dir ./claude-config/mods/rulebookThe repo has no marketplace file, so load the plugin folder directly with --plugin-dir.
What it can access
- Reach
- L2Writes or runs: writes files, drives Claude, reads files, reads env vars, reads mod state, draws
- Sees
- ? calls, every tool call
- Hooks
session.startprompt.composetool.callcommand.run
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- aidan-nunn-sys/claude-config
- Folder
mods/rulebook- Last updated
- 6 November 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is rulebook?
Hard rules on tool calls, kept in ~/.claude/rulebook.json; Claude adds a rule when you correct it. /rules lists or removes them. It is a mod for Claude Code, from aidan-nunn-sys/claude-config on GitHub.
What can the rulebook mod access?
Its widest reach is "writes or runs" (writes files, drives Claude, reads files, reads env vars, reads mod state, draws). It sees ? calls, every tool call. Like any mod, it runs with your permissions.
How do I install rulebook?
Clone aidan-nunn-sys/claude-config and start Claude Code with --plugin-dir pointing at the mod's folder (mods/rulebook).
More memory & instructions mods
rule-keeper
davidparys/claude-mods
When you correct Claude, a band above the prompt offers to save the correction as a permanent rule in CLAUDE.md or a skill.
sage-relay
byShrey/sage-relay
Hands a long Claude Code chat off to a fresh one automatically: saves a full note, clears, carries on. Optional model routing with Deep, Careful and Scout helper agents.
rostech-glovebox
DJPalefaceSD/rostech-mods
Keeps the notes that matter in the glovebox, and hands them back to Claude after it compacts its memory. Text notes only: never video, never the screen, never your location. Sends nothing anywhere.
segue
sipyourdrink-ltd/segue
Compaction that continues without a break: writes a handoff card before /compact and auto-compact, summarises on Haiku, and tells the agent to carry on from the card. Falls back to the built-in summary on any failure.
relay
chrisvaillancourt/claude-relay
/relay: update stale docs, save a handoff note to a temp file, draft a continuation prompt, compact, and put the prompt in the box.
self-clear
adithepmeekhun/self-clear
For long, unattended agent runs: when the conversation reaches a size you set, Claude writes a progress note, the mod checks it and clears the conversation, and (with auto-resume on) Claude carries on, so each step costs less. Off until a project turns it on.
Browse the most popular Claude Code mods, all memory & instructions mods, or the skills and MCP server directories.