rules

rules is a command for coding agents from Ingramradical235/anty-framework. It costs 10 tokens per session (542 once invoked), scanned A, a copy of rules, MIT.

A command for managing user rules stored in `.anty/rules.md`. These rules are added to every agent interaction with the highest priority.

In plain words
What is it for?
Use it to list rules, add new ones, edit existing rules, or remove rules.
Why use it?
It gives you one place to see and change the instructions agents must follow.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/ingramradical235/anty-framework/rules
Clone the repo
git clone --depth 1 https://github.com/Ingramradical235/anty-framework

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rules

README.md
[![agentmods](https://agentmods.dev/badge/commands/ingramradical235/anty-framework/rules.svg)](https://agentmods.dev/commands/ingramradical235/anty-framework/rules)
Your own site
<a href="https://agentmods.dev/commands/ingramradical235/anty-framework/rules"><img src="https://agentmods.dev/badge/commands/ingramradical235/anty-framework/rules.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 542 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.00542
Opus 5 $0.00005 $0.00271
Sonnet 5 $0.00002 $0.00108
Haiku 4.5 $0.00001 $0.00054

Measured 3d ago against content hash 2cddc7f03146, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to rules — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

commands/rules.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/anty:rules — View/Edit User Rules

Trigger

User runs /anty:rules

Behavior

Read and display the contents of .anty/rules.md, then allow the user to view, add, modify, or remove rules. Rules are injected into every agent interaction with the highest priority.

Default View (no arguments)

  1. Read .anty/rules.md
  2. Display current rules with numbered list:
    ====================================================
      USER RULES
    ====================================================
    Rules are injected into every agent interaction
    with HIGHEST priority. Agents must follow these.
    ====================================================
    
    1. [rule text]
    2. [rule text]
    3. [rule text]
    ...
    
    ====================================================
    Commands:
      "add [rule]"    — Add a new rule
      "edit [n]"      — Edit rule number n
      "remove [n]"    — Remove rule number n
      "done"          — Exit rules editor
    ====================================================
    

Adding a Rule

When user says "add [rule text]":

  1. Append the new rule to .anty/rules.md
  2. Display updated rules list
  3. Confirm: "Rule added: [rule text]"

Editing a Rule

When user says "edit [n]":

  1. Display current rule #n
  2. Ask user for new text
  3. Replace rule #n in .anty/rules.md
  4. Display updated rules list
  5. Confirm: "Rule #[n] updated."

Removing a Rule

When user says "remove [n]":

  1. Display rule #n and ask for confirmation
  2. On confirmation, remove rule #n from .anty/rules.md
  3. Renumber remaining rules
  4. Display updated rules list
  5. Confirm: "Rule #[n] removed."

Rules Format in .anty/rules.md

# User Rules

These rules have the HIGHEST priority and override all other instructions.

1. [rule text]
2. [rule text]
3. [rule text]

Edge Cases

  • If .anty/rules.md does not exist, create it with the header template
  • If file exists but has no rules, display "No rules set. Use 'add [rule]' to create your first rule."
  • Preserve any markdown formatting within rule text

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 82 lines · 10 tokens per session scan A 2cddc7f03146

Subscribe to this mod's changes

rules is a command published in the GitHub repository Ingramradical235/anty-framework (1 stars, last pushed 4d ago), licensed MIT. It adds 10 tokens to every session and 542 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to rules, differing in 0 lines, and is treated as a copy.