Convenience function to create a PreToolUse hook that applies Deputy's
canonical file-write permission policy to write_file, edit_file, and
multi_edit. Prefer configuring Permissions as the Agent's authority
policy; this helper is useful as an additional hook-level restriction.
Value
A HookMatcher object
Examples
if (FALSE) { # \dontrun{
dir.create("output", showWarnings = FALSE)
agent$add_hook(hook_limit_file_writes("output"))
} # }