# Rule Injector: Hermes Agent plugin

> Moves agent behavioural rules out of the system prompt and injects each one at the point of need, through three hooks: pre_llm_call for behavioural guards, transform_tool_result for corrections the model reads…

Canonical: https://hermeswatcher.com/plugins/rule-injector  
Tier: Community  
Official page (Nous Research): https://hermes-agent.nousresearch.com/docs/plugins/rule-injector  
Last updated in catalog: 2026-11-17

Moves agent behavioural rules out of the system prompt and injects each one at the point of need, through three hooks: pre_llm_call for behavioural guards, transform_tool_result for corrections the model reads in place, and pre_verify as a completion gate. A rule is {trigger, inject} — matched on keywords, regex, tool name, tool error, path or session scope, or a boolean compound of those — with a per-turn injection budget and an undroppable always-on floor. An optional adjudicator adds a semantic second pass over ambiguous turns, and propose.py drafts a rule from a user correction. Ships a local web dashboard (`python3 dashboard.py`, FastAPI, read-only) that lists the rule set and the recent activation trace, and seven starter rules; rules.json is a template the user replaces.

## Good to know before installing

Writes one activation trace line per fired rule, a rule-drafting audit line, and (only with the adjudicator enabled) a 48-hour verdict log holding excerpts of the user message and recent turns, all under the active HERMES_HOME's logs/ directory, and writes the plugin's rules.json when a rule is created through its own CLI; no shell and no telemetry; the optional dashboard (`python3 dashboard.py`, fastapi + uvicorn installed by the user) binds 127.0.0.1 and only reads the rules file and trace log; semantic triggers download a sentence-transformers embedding model from Hugging Face once and then run locally; the optional adjudicator, only when enabled, sends the current turn to the user's active model through Hermes' plugin LLM facade and holds no key of its own.

From the plugin's catalog listing.

## How to install

1. Install it. Hermes asks for any API keys it needs, then asks whether to turn it on.

```bash
hermes plugins install rule-injector
```

2. Said no? Turn it on later:

```bash
hermes plugins enable rule-injector
```

3. Restart Hermes so it loads the plugin.

Some plugins also need a sign-in or settings: see the official page. Memory plugins ask whether to become your memory provider instead. Steps follow the official plugins guide: https://hermes-agent.nousresearch.com/docs/user-guide/features/plugins

## Facts

- Category: Automation & multi-agent, Web, research & browsing
- Maintained by: klautimus (Community)
- Needs: No API keys declared
- Version: 1.1.0
- In the catalog since: 2026-11-17

## Links

- [Full setup and settings (official page)](https://hermes-agent.nousresearch.com/docs/plugins/rule-injector)
- [Source code](https://github.com/klautimus/hermes-rule-injector#readme)
- [All plugins](https://hermeswatcher.com/plugins.md)

---

HermesWatcher is an independent guide. It is not affiliated with or endorsed by Nous Research. The [official Hermes Agent documentation](https://hermes-agent.nousresearch.com/docs) and [repository](https://github.com/NousResearch/hermes-agent) from Nous Research are the authority; each page here lists the official sources it was written from. If this site and the official docs disagree, trust the official docs. Index for agents: https://hermeswatcher.com/llms.txt
