HostQuay
Home

Test AI command approval rules

Use a matching and a nonmatching example to check keywords, whole words and regular expressions.

Test a whole-word keyword

Under AI & MCP → Command confirmation rules, add a keyword with Whole word selected and enter rm. In the POSIX test context try /bin/rm sample.txt, then echo normal. Only the first should match. The tester compares text without executing it.

Check a regular expression

Select Regular expression and enter restart\s+database. Try restart database and restart web. Save the rule and repeat the test in the list to see whether other saved rules match too.

Check the chat approval mode

Manual and AI review both send a rule match to you for confirmation. Allow All skips approval. If the tester matches but no prompt appears, check the mode and whether the operation came from the assistant or the separate MCP server.