Skip to content
Menu

Rules and approvals

Rules that hold after the chat ends.

Write a rule once and it governs that kind of work for everyone it applies to. Test it on what it should catch and what it should let through, preview the change, and confirm.

.md

Write a rule you can test.

Give it a recognizable name. Say what to match, by keywords or a pattern, what it inspects (a user message, a tool call or both) and the message to show when it matches. Priority decides which rule wins when several match. Real positive and negative examples matter most for a rule that matches by meaning.

The five rule actions.

ActionEffect
refuseDeclines the request and returns the deciding rule and its explanation.
denyDenies the matching action. A connection with pre-run checks can stop a tool call it intercepts.
require_deferRequires a fresh answer from your AI, which gets the rule text and the relevant sources.
require_toolRoutes the work to a named tool. That call’s permission, inputs, result and receipt are its own.
allowAllows a request under a condition. A narrower, higher-priority exception can still take precedence.

Preview, then confirm.

  1. PreviewAdding or removing a rule first returns a summary and a one-time confirm code. Read the exact wording, scope and effect.
  2. ConfirmAn authorized identity completes the same request with the code. The code belongs to that change and that identity.
  3. CheckReopen the rule: its standing, approver and time. A proposal that needs an administrator stays pending until approved.
  4. TestIn a shared scope, try one matching and one non-matching request to see the rule act where you meant it to.

A project instruction is not a team rule.

An agent that declared its environment sees its project instructions, marked declared, on later turns. A teammate’s agent does not get them automatically. To make a practice hold for every eligible agent on the team, propose an active rule at the right scope. Its status, action and approver show what has really been authorized.

Where a rule acts.

Over MCP alone, your AI receives the rules and follows them. With hooks, supported tool calls are checked before they run, so a deny can stop the action itself. Read the guarantee on the record of each action.

How a turn works →Permissions and publishing →

Prompts for this page

All prompts →

Copy one, fill in the parts in angle brackets, and give it to your AI.

Ask your AIDraft and test a rule
Draft a Duplex rule named "<name>" that <refuses / requires review of> requests to <action>. Match it on <keywords or meaning>. Add two examples it should catch and two similar requests it should let through. Show me the preview and confirm code, and wait for my OK before confirming.

Where to find more in the MatterSpace Duplex docs:
- Rules and approvals, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
Ask your AIWhy was this blocked?
That request was refused. Show me the Duplex rule that decided it, its exact wording, its scope and priority, who approved it, and any other rules that matched.

Where to find more in the MatterSpace Duplex docs:
- Rules and approvals, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt
Ask your AIWhich rules apply to me?
List the active Duplex rules that apply to my work in this scope, grouped by action (refuse, deny, require_defer, require_tool, allow), and show any proposals waiting for approval.

Where to find more in the MatterSpace Duplex docs:
- Rules and approvals, this topic in full: https://www.matterspace.ai/duplex/docs/rules.md
- Every prompt, and where to paste the standing ones: https://www.matterspace.ai/duplex/docs/prompts.md
- Exact tools, operations, settings and answers: https://www.matterspace.ai/duplex/docs/reference.md
- Errors and what to do about them: https://www.matterspace.ai/duplex/docs/troubleshooting.md
- Every docs page, with what it covers: https://www.matterspace.ai/duplex/docs/llms.txt