Rules
Short rules the agent always follows, how new ones are suggested and learned, and the To decide list.
A rule is one checkable sentence an agent must follow: "Every new endpoint has an integration test", or "Don't flag missing comments in generated files". Each rule has a number, R-12 for example, and the agent cites that number when it raises a finding because of it. Rules come from people: written by hand, suggested from a review, from a chat or from a coding session, or learned from what people decided in past reviews. A rule reaches an agent only once a person approves it.
Before you start
- You need an agent. Rules matter most for agents that review code. See Reviews.
- A rule that belongs to one repository needs that repository on the agent. See Repositories.
What a rule is made of
| Part | What it says | Limit |
|---|---|---|
| Kind | Flag it: raise a finding when the rule is not followed. Don't flag it: the team knows and accepts this; never raise it. | |
| Sentence | The rule itself, one line. | 300 characters |
| Why | The reason the team holds it. | 600 characters |
| Applies to | Path globs, one per line, gitignore-style: *.go is every Go file at any depth; payments/ is everything under that directory; a leading / (as in /payments/) anchors it to the repository root. Empty means everywhere. | 10 globs, 200 characters each |
A rule's number is unique in your organisation and never reused. An agent or a repository may hold at most 100 active rules.
Where rules live
- An agent's own rules go into the file
<agent>/rules.md, one line per rule with its number, kind, sentence, why and globs. The agent's main skill carries a single line about them: how many rules, their numbers, and the file to read before it reviews or changes code. See Know-how. - A repository's rules go into that repository's skill. They reach every agent that holds the repository. The Rules section shows them as one line, Repository rules: N active across N repositories, linking to the agent's repositories.
Only active rules reach an agent. Suggestions waiting for a decision, dismissed suggestions and retired rules never do.
Background job agents (the scanners, summariser, distiller and coach) are not given rules. The Rules section on their page says so: Not given to the background job — only the hand-written part and added skills are.
Write a rule
- Open Agents › your agent › Know-how and go to Rules.
- Open Add a rule.
- Choose the Kind, write the Sentence, and add Why and Applies to if they help.
- Choose Save rule. A rule you write is active at once and gets the next R-number.
Writing a rule needs Admin. Anyone else suggests one, as below.
Suggest a rule
A suggested rule waits in the agent's To decide list until an admin, or a maintainer of the agent (for a repository rule, a maintainer of an agent that holds it), approves or dismisses it. You suggest one from a review finding or from your coding session; each needs Member. You can also ask for a rule in a portal chat, which works a little differently (below).
From a review finding
When someone decides a review finding with a reason, the finding shows Make this a rule. It turns that person's words into a rule, so the next review does not raise the same point again.
- On the review page, choose Make this a rule under the finding.
- The form opens From <name>'s note on F-n and quotes the note.
- Pick where it Belongs to: the review's repository, or an agent. The Kind starts as Don't flag it when the finding was marked not an issue, and Flag it otherwise.
- Edit the Sentence, Why and Applies to, then choose Suggest rule.
The finding then shows a receipt instead of the link: Suggested R-n · waiting for a maintainer, then R-n · approved by <name> or Suggested R-n · dismissed by <name>. One note gives one suggestion. See Decide a review.
From a chat
In a portal chat, ask the agent to add, change or retire a rule. It proposes the change as a card under its answer instead of a suggestion in To decide. When an admin or one of its maintainers chooses Apply on the card, the change takes effect at once. See Changes the agent proposes in chat.
From your coding session
In Claude Code or Cursor with the Entropix plugin, run:
/entropix:suggest-rule <agent>
The suggest-rule skill reads the agent's current rules so it does not repeat one, drafts one sentence with you, shows it exactly as it will be sent and asks before it calls the suggest_rule MCP tool. It reports the receipt and the link where a maintainer decides. The To decide list shows the same command under Or suggest one from your editor. See Plugin skills and MCP tools.
suggest_rule field | What it holds |
|---|---|
text | The sentence, at most 300 characters, one line. |
kind | flag or dont_flag. |
why | The reason, if there is one. |
applies_to | Up to ten path globs. |
words | The person's own words it comes from. Up to 2,000 characters are kept. |
repository | The repository's SSH URL, only for a rule that belongs to one of the agent's repositories. |
Limits on suggestions
An agent or repository may have at most 30 suggested rules waiting. A sentence already suggested for the same owner is refused, with the number of the waiting suggestion.
Decide a suggestion
The To decide panel on the Know-how tab lists everything waiting: suggested rules, rules learned from reviews, and older memory suggestions. The To decide N chip above it shows how many. A suggested rule shows as a New rule card with Approve and Dismiss right there; a rule learned from reviews has Review, which opens its page. When nothing waits, the panel says Nothing to decide.
To decide on the suggestion's own page (its R-number):
- Read the sentence, the words it came from, and its impact.
- Choose Approve to make it active as it is.
- Or choose Edit then approve, change it, and choose Approve edited.
- Or choose Dismiss, with an optional Reason to dismiss.
A repository's page lists its own Suggested rules (N) the same way, with Approve all shown (N). See Repositories.
Rules learned from reviews
Once a day, when people have decided new findings, Entropix reads what they decided in your organisation's reviews over the last 90 days (up to 200 cases) and suggests rules they point at. It never makes a rule active by itself.
- a new rule, from a reason people keep giving;
- a reword or a narrower scope for a rule people keep ignoring;
- retiring a rule that is still Noisy after a reword was tried.
A run suggests at most 10 changes, and no more are made while 50 wait. A suggestion needs evidence from at least two pieces of work and two people, at least one of them not the author of the change. A fix commit weighs more than a note, and a note more than a bare mark; the author's own decisions count half. If more than half of the last 20 decided suggestions were dismissed, it asks for three pieces of work and three people instead.
The From recent reviews panel shows the last run: Never looked yet., Looking now…, Last looked … ago: read N cases, suggested N., or why it failed. An Admin can run it now with Look for rules in recent reviews, at most once every 10 minutes.
A learned suggestion has its own page. It shows What changes (a new rule, a diff, or It would be retired: it stays in the history and reaches no agent again.), its Impact, and the cases behind it under Cases for (N) and Cases against (N), each linking to the review. You decide it with Approve, Edit then approve or Dismiss. A dismissal reason is kept, and the same suggestion comes back only with new cases.
Your operator can turn on two more ways of learning (see Feature switches): a reasoned "not an issue" at Send back or Approve drafts a don't-flag suggestion for To decide, and a learned don't-flag rule is retired after three changes where people wanted fixed what it would hide.
Rule health
Every rule shows a health badge, worked out from how people mark the findings that cite it.
| Badge | Means |
|---|---|
| New | Fewer than 5 findings citing it have been marked. |
| Healthy | People mark at most a tenth of its findings not an issue. |
| On review | More than a tenth of its findings are marked not an issue. |
| Noisy | More than a quarter are marked not an issue. |
| Never cited | Active for 30 days and no finding has cited it. |
| Retired | No longer active. It stays on record and reaches no agent. |
Marks by the author of the change are shown but do not count towards health.
The rule page
Choose a rule's R-number to open its page. It shows who owns the rule (the agent, or the repository and the agents that hold it), its kind, sentence, why and globs, and where it came from: a file at a commit, a review, or Written by <name>.
- History: every version, with diffs.
- Record: how many times findings cited it and how they were marked (to fix, accepted, ignored, unmarked), with the author's own marks shown apart.
- Why people ignored it: the notes people left when they marked a citing finding not an issue.
- Recent citations: up to 10 findings that cited it.
When a suggestion for this rule is waiting, a banner links to it with Review it.
Edit or retire a rule
An Admin chooses Edit, changes it and chooses Save as a new version. To stop a rule, choose Retire, add a Reason (optional) and choose Retire R-n. A retired rule keeps its number and history.
What you can and can't do
- Read every rule, its record and history, whatever your role.
- As a member, suggest rules from a review finding, a chat or your coding session.
- As an admin or a maintainer of the agent, approve, edit then approve, or dismiss suggestions.
- As an admin, write, edit and retire rules, and run Look for rules in recent reviews.
- Make a suggestion active without a person approving it. No tool or job does.
- Reuse a rule number, even after a rule is retired.
- Give rules to a background job agent.
- Suggest with a viewer's token:
suggesting a rule needs a member or an admin.
Troubleshooting
| You see | What to do |
|---|---|
<owner> already has 30 suggested rules waiting — review those first | Decide some waiting suggestions in To decide first. |
<label> already suggests this for <owner> | The same sentence is already waiting. Open that suggestion instead. |
agent <name> does not hold <url> | Add the repository to the agent first (Repositories), or suggest the rule for the agent instead. |
A refusal starting approving or dismissing suggested rules for <name> needs an organisation admin or one of the agent's maintainers | Ask an admin, or a maintainer listed on the agent's Settings tab. |
| This suggestion contains hidden text or HTML, which the rendered view hides. | Read the suggestion as written before you approve it. |