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 jvsteinerv0.2.25MIT
Visible, bounded behavioral corrections with Jev and editable policies.
Claude loads one when your task matches it, or you run it by name.
— files in this plugin's directory are added to the Bash tool's PATH while the plugin is enabled.
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.
bin/Policies can wrap incoming tool results using target: tool_result and delivery: wrap. The warning comes from the rule's Correction section; the plugin contains no topic-specific warning logic. Claude receives the original payload inside the warning. A separate pre-tool rule can deny writes until its detector recognizes explicit user approval, with on_failure: block to hold calls when review is incomplete and include_evidence: false to avoid repeating source text in feedback. See policy format for host support and limitations. These controls do not prevent sensitive data reaching Jev, the model, or the local journal.
Editable behavioral policies for Claude Code, Codex, and omp. Jev evaluates the work; the coding agent receives a specific correction and gets another attempt.
Automatic semantic feedback is limited to two deliveries per user episode. Findings, evidence, and rechecks are inspectable. The original ten regex code rules remain supported without a TypeSafe key.
Agent Rules is published to npm as @jvsteiner/agent-rules. Installing needs
Node 20.12 or newer and no clone of this repository. The package contains
prebuilt bundles; installed hooks never download other packages.
Jev rules call TypeSafe's Jev model, which needs an API key from
TypeSafe. The hooks read the key only from the
TYPESAFE_API_KEY environment variable of the agent process. They never read a
.env file, so a project's secrets cannot leak into a review.
Export the key in your shell profile, for example ~/.zshrc, then open a new
terminal so Claude Code, Codex, and omp start with it:
export TYPESAFE_API_KEY=your-key
For Claude Code only, the key can instead go in ~/.claude/settings.json under
"env". Without a key, each session starts with the notice
Agent Rules: TYPESAFE_API_KEY is not set, Jev rules do nothing, and regex
rules still run.
Claude Code:
claude plugin marketplace add jvsteiner/agent-rules
claude plugin install agent-rules@agent-rules
Codex:
codex plugin marketplace add jvsteiner/agent-rules
codex plugin add agent-rules@agent-rules
Codex runs a plugin's hooks only after you trust them. Open Codex, run /hooks,
and trust the seven Agent Rules hooks.
omp:
npx @jvsteiner/agent-rules install-omp
This copies the package to ~/.omp/agent/agent-rules/, writes the extension
~/.omp/agent/extensions/agent-rules.js, and links the author-rule and
diagnose-rule skills and the regex rules into ~/.omp/agent/. It leaves any
real folder already at those paths unchanged. omp enforces the regex rules itself
through its TTSR feature, so the extension runs only the Jev policies.
Restart open sessions after installing.
claude plugin marketplace update agent-rules && claude plugin update agent-rules@agent-rules
codex plugin add agent-rules@agent-rules
npx @jvsteiner/agent-rules@latest install-omp
Restart open sessions afterwards. If an update changes Codex's hook file, trust
the hooks again in /hooks.
claude plugin uninstall agent-rules@agent-rules
codex plugin remove agent-rules@agent-rules
rm -r ~/.omp/agent/agent-rules ~/.omp/agent/extensions/agent-rules.js \
~/.omp/agent/skills/author-rule ~/.omp/agent/skills/diagnose-rule ~/.omp/agent/rules
Only remove ~/.omp/agent/rules if it is the link the installer created.
All three agents run the same hook and read the same rule folders on every event, so a saved rule applies on the next prompt, tool call, or reply, with no build or restart:
~/.config/agent-rules/rules/: your rules for every project, with modes in
~/.config/agent-rules/config.json.<project>/.agent-rules/rules/: rules for one project, with modes in
<project>/.agent-rules/config.json.policies/ and rules/ folders: starter rules that ship
with each release.The command-line tool runs as npx @jvsteiner/agent-rules <command>; in a
checkout, node dist/agent-rules.js <command> is the same tool.
Work from a clone. The Makefile runs every task with absolute paths
built from $(PWD), so run make from the repository root. It works with the
GNU Make 3.81 that ships with macOS.
make deps # npm ci, which also builds
make test # build and run the full test suite
make check # tests plus validation of the bundled policies
make status # effective policies, modes, and whether the key is set
make install-local # install this checkout into Claude Code, Codex, and omp
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 (jvsteiner/agent-rules) — no native marketplace selected
npx claudepluginhub p/jvsteiner-agent-rulesPlugins from other owners that cover similar ground