arai_add_guard
Register a persistent rule to enforce on AI tool calls, preventing actions like writing to restricted paths or skipping tests. Rules take effect immediately and are logged.
Instructions
Register a new guardrail that Δrai will enforce on subsequent tool calls. Use when you discover a rule mid-session that should persist for the rest of this project (e.g. 'never write to /etc', 'always run tests before push'). The rule is parsed the same way CLAUDE.md instructions are and stored locally β it takes effect on the very next PreToolUse hook.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional rationale β why this rule is being added. Recorded in the audit log so a human reviewer can see the agent's justification. | |
| rule | Yes | The rule, phrased as an imperative. Examples: 'Never force-push to main', 'Always run pytest before committing', 'Never edit files in vendor/'. |