defineHarnessPermissions
Purpose and behavior
Section titled “Purpose and behavior”Define ordered allow and deny rules over tool names, command patterns and repository paths. The harness evaluates them before before-tool hooks, and again after a hook rewrites the input; the first matching rule wins. Permissions are not a security boundary: the sandbox isolates.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredHarnessPermissionsOptionsOrdered rules and the default effect when none applies.options.rulesRequiredreadonly HarnessPermissionRule[]Ordered rules; the first one that applies decides.options.defaultOptionalPermissionEffect | undefinedEffect when no rule applies; defaults to allow.