ArmorClaude LogoArmorClaude
Getting Started

Policy Rules

Control what tools Claude can use with allow/deny rules from the chat prompt

View Source

Policy Rules

Control what tools Claude can use, right from the chat prompt. Policy rules are evaluated before intent plans. A denied tool stays denied even if it is in the plan.

Commands

CommandExample
Create a rulePolicy new: deny WebFetch
List all rulesPolicy list
View one rulePolicy get policy1
Delete a rulePolicy delete policy1
Clear all rulesPolicy reset
Modify a rulePolicy update policy1: allow WebFetch
Reorder rulesPolicy prioritize policy2 1
Show helpPolicy help

How Rules are Evaluated

  1. Rules evaluate top-to-bottom in the order they appear
  2. First matching rule wins (deny, allow, or require_approval)
  3. No match means allow (default-open for local policies)

New rules are added at the top, giving them the highest priority.

Data Classification

ArmorClaude auto-detects sensitive data in tool arguments:

ClassWhat it detects
PCICredit card numbers (Luhn validation), card-related keywords
PAYMENTPayment tool names, banking keywords (IBAN, SWIFT, routing)
PHIHealth/medical data (manual policy)
PIIPersonal data, SSN (manual policy)

Example: Block Payment Data

Policy new: deny * for payment data

If Claude tries to write a credit card number to a file, ArmorClaude will detect PCI data, match against the payment policy, and block the tool call.

Agent-Managed Policies

When ArmorClaude blocks a tool, Claude sees the denial and may ask:

"The WebFetch call was blocked by policy1. Would you like me to update the policy to allow it?"

If you say yes, Claude calls the policy_update MCP tool to modify or delete the rule, then retries. This is safe because policy_update is whitelisted (never blocked by intent enforcement) and the policy change is logged.

Where Policies are Stored

Policies persist across sessions in the plugin data directory:

cat ~/.claude/plugins/data/armorclaude-armoriq/policy.json

They survive restarts, plugin updates, and re-installs.

On this page