Skip to content

mochi trust default ​

Show or set the trust of workspaces without their own

Synopsis ​

Defaults apply to a workspace whose own trust is not set.

worktrees: 'inherit' (the default) gives a git worktree its main checkout's trust and rules; 'off' treats it like any other workspace. unregistered: the state of a workspace registered nowhere that inherits nothing. 'unknown' (the default) refuses agent runs there until it is trusted.

shell
mochi trust default [worktrees inherit|off | unregistered unknown|trusted|restricted] [flags]

Examples ​

shell
mochi trust default
mochi trust default worktrees off
mochi trust default unregistered restricted

Options ​

FlagTypeDescription
-h, --helphelp for default
-o, --outputstringOutput format: text or json (default "text")

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync the executable cache first, pulling git-sourced workspaces from their remotes

See also ​

  • mochi trust — Manage which workspaces can run tasks without asking