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 neralabsApache-2.0
Checks the code your agent writes against your repository's rules during the session and steers it back when it breaks one. Its hooks run on every prompt and tool call, and it says rule checks run locally with no network requests; needs Node.js 24 or later.
Trending plugins
7-day copy clicks
Claude Code doesn't load everything this plugin declares
dist/hosts/claude/claude-hook.js, which isn't in the repository. Claude Code installs the plugin without an error, but the hooks exit with an error each time they run. Claude Code installs a copy of the repository and runs no build step.Checked against Claude Code 2.1.332.
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rerail checks the code your coding agent writes against your rules while it works, and steers it back in the same session.
Coding agents drift. They break your architecture's patterns, repeat approaches you already rejected, and ignore conventions they never saw. Writing more rules into the prompt doesn't fix this: it uses up context, goes stale, and still relies on the model noticing when a rule applies.
Rerail takes enforcement out of the model loop. Hooks or extensions in your coding agent send each edit the agent makes to a local daemon. A native Rust engine checks the changed code against your repository's rules, by regex, syntax tree and relations. When the agent breaks a rule, Rerail steers it back during the session and records what fired, where and why.
Rule checking runs on your machine and makes no network requests. No account or API key is needed.
You need Node.js 24 or later and Git, on macOS, Linux with glibc 2.28 or later (not Alpine or other musl Linux), or Windows, on arm64 or x64. On Windows, Claude Code also needs Git Bash, from Git for Windows. Prebuilt native engines come as npm packages of their own, one per system and processor, which npm installs with Rerail, so nothing is compiled on your machine. If set-up or Rerail goes wrong, see Troubleshooting.
In your repository, run this to install Rerail under ~/.rerail, connect your coding agents and start Rerail there:
npx @neralabs/rerail setup
That needs Node.js 24 or later; npx comes with Node. Check with node --version: command not found means Node is not installed, so set-up cannot start to say so. Install it from nodejs.org or with Homebrew (brew install node), nvm, fnm or Volta, then run the command in a new terminal.
In Windows PowerShell, if that says npx.ps1 cannot be loaded, run npx.cmd @neralabs/rerail setup (why).
Then, in a new terminal, which has rerail on its PATH, open the dashboard with rerail manage.
Set-up asks before it reads the repository, shows the rule packs suggested for what it is built with and the reason for each, or why none matches, and installs only the ones you confirm. It connects the coding agents it finds (or only the ones you name with --agents), puts ~/.rerail/bin on your PATH, and starts Rerail in this repository only. Everywhere else Rerail stays off until you run /rerail-start (or rerail start) there. To have a coding agent install it for you, ask it to; it runs setup --relay and asks you each question in the session. Installing Rerail says what set-up changes on your machine and how to update and remove Rerail.
Then start a new Claude Code, Codex, Cursor, OMP or Pi session in the repository. To watch Rerail catch a broken rule and steer the fix, run:
/rerail-show-me
To add a rule of your own, type /rerail-create followed by what you want:
/rerail-create <what you want>
/rerail-create never import from src/legacy in new code
The agent drafts the rule from your description, tests it against the repository without saving it, and adds it after you confirm. Writing rules covers which rules are worth having, and Architecture rule examples has complete, tested rules for design decisions that maintainers of Sentry, VS Code, rust-analyzer, Nextcloud and other projects enforce in review: layer boundaries, calls that must go through a service or repository, one home for each kind of thing.
7-day copy clicks
Plugins from other owners that cover similar ground
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.
Generated from the plugin's indexed repository (neralabs/rerail) — no native marketplace selected
npx claudepluginhub p/neralabs-rerail