Filesystem
core.filesystem
Safe patterns
core.filesystem.ls | ^ls\b[^|><]*$ |
core.filesystem.cat | ^cat\b[^|><]*$ |
core.filesystem.bat | ^bat\b[^|><]*$ |
core.filesystem.head | ^head\b[^|><]*$ |
core.filesystem.tail | ^tail\b[^|><]*$ |
core.filesystem.less | ^less\b[^|><]*$ |
core.filesystem.wc | ^wc\b[^|><]*$ |
core.filesystem.file | ^file\b[^|><]*$ |
core.filesystem.stat | ^stat\b[^|><]*$ |
core.filesystem.find | ^find\b[^|><]*$ |
core.filesystem.du | ^du\b[^|><]*$ |
core.filesystem.df | ^df\b[^|><]*$ |
core.filesystem.tree | ^tree\b[^|><]*$ |
core.filesystem.grep | ^grep\b[^|><]*$ |
core.filesystem.rg | ^rg\b[^|><]*$ |
core.filesystem.diff | ^diff\b[^|><]*$ |
core.filesystem.sort | ^sort\b[^|><]*$ |
core.filesystem.md5sum | ^md5sum\b[^|><]*$ |
core.filesystem.sha256sum | ^sha256sum\b[^|><]*$ |
core.filesystem.realpath | ^realpath\b[^|><]*$ |
core.filesystem.dirname | ^dirname\b[^|><]*$ |
core.filesystem.basename | ^basename\b[^|><]*$ |
core.filesystem.readlink | ^readlink\b[^|><]*$ |
core.filesystem.test | ^test\b[^|><]*$ |
core.filesystem.bracket | ^\[[^|><]*$ |
core.filesystem.double_bracket | ^\[\[[^|><]*$ |
core.filesystem.cargo_check | ^cargo\s+check\b[^|><]*$ |
core.filesystem.cargo_clippy | ^cargo\s+clippy\b[^|><]*$ |
core.filesystem.go_vet | ^go\s+vet\b[^|><]*$ |
core.filesystem.env | ^env\b[^|><]*$ |
core.filesystem.printenv | ^printenv\b[^|><]*$ |
core.filesystem.which | ^which\b[^|><]*$ |
core.filesystem.whoami | ^whoami\b[^|><]*$ |
core.filesystem.uname | ^uname\b[^|><]*$ |
core.filesystem.pwd | ^pwd\b[^|><]*$ |
core.filesystem.echo | ^echo\b[^|><]*$ |
core.filesystem.date | ^date\b[^|><]*$ |
core.filesystem.hostname | ^hostname\b[^|><]*$ |
core.filesystem.id | ^id\b[^|><]*$ |
core.filesystem.groups | ^groups\b[^|><]*$ |
core.filesystem.mkdir | ^mkdir\b[^|><]*$ |
core.filesystem.touch | ^touch\b[^|><]*$ |
Destructive patterns
core.filesystem.recursive_delete_root | |||
core.filesystem.recursive_delete_force | -f | ||
core.filesystem.recursive_delete | ls -la | ||
core.filesystem.find_destructive | find | findfind . -name '*.tmp' | |
core.filesystem.mv_system_path | |||
core.filesystem.shred_device | |||
core.filesystem.chmod_broad | chmod 644 file | ||
core.filesystem.chown_recursive | |||
core.filesystem.overwrite_truncate | sudo tee | ||
core.filesystem.sensitive_read | ssh-keygen -l -f ~/.ssh/id_rsa |
Git
core.git
Safe patterns
core.git.git_status | ^git\s+status\b[^|><]*$ |
core.git.git_log | ^git\s+log\b[^|><]*$ |
core.git.git_diff | ^git\s+diff\b[^|><]*$ |
core.git.git_show | ^git\s+show\b[^|><]*$ |
core.git.git_branch | ^git\s+branch\b[^|><]*$ |
core.git.git_tag | ^git\s+tag\b[^|><]*$ |
core.git.git_remote_v | ^git\s+remote\s+-v\b[^|><]*$ |
core.git.git_rev_parse | ^git\s+rev-parse\b[^|><]*$ |
Destructive patterns
core.git.reset_hard | git stashgit reset --soft | ||
core.git.force_push | git push --force-with-lease | ||
core.git.clean_force | git clean -n | ||
core.git.checkout_discard | git checkout -- path/to/file | ||
core.git.restore_discard | git restore path/to/file | ||
core.git.rebase_active | --onto--root | git loggit rebase <branch> | |
core.git.branch_force_delete | git branch -d | ||
core.git.stash_drop_clear | git stash show | ||
core.git.worktree_force_remove | git worktree remove--force | ||
core.git.reflog_expire | git reflog--expire=now | ||
core.git.gc_prune | git gc--prune=now |
Obfuscation
core.obfuscation
Destructive patterns
core.obfuscation.pipe_to_shell | |||
core.obfuscation.base64_to_shell | |||
core.obfuscation.eval_subshell | |||
core.obfuscation.curl_pipe_shell | curl -o script.sh | ||
core.obfuscation.python_exec |
Stencila
core.stencila
Safe patterns
core.stencila.stencila_secrets_list | ^stencila\s+secrets\s+list\b[^|><]*$ |
core.stencila.stencila_auth_status | ^stencila\s+auth\s+status\b[^|><]*$ |
core.stencila.stencila_cloud_status | ^stencila\s+cloud\s+status\b[^|><]*$ |
core.stencila.stencila_db_status | ^stencila\s+db\s+status\b[^|><]*$ |
core.stencila.stencila_db_log | ^stencila\s+db\s+log\b[^|><]*$ |
core.stencila.stencila_db_verify | ^stencila\s+db\s+verify\b[^|><]*$ |
core.stencila.stencila_status | ^stencila\s+status\b[^|><]*$ |
core.stencila.stencila_formats_list | ^stencila\s+formats\s+list\b[^|><]*$ |
core.stencila.stencila_models_list | ^stencila\s+models\s+list\b[^|><]*$ |
Destructive patterns
core.stencila.secrets_modify | stencila secrets list | ||
core.stencila.auth_modify | stencila auth status | ||
core.stencila.cloud_auth | stencila cloud status | ||
core.stencila.publish | |||
core.stencila.uninstall | |||
core.stencila.push | stencila status | ||
core.stencila.db_destructive | stencila db status | ||
core.stencila.clean | stencila status |
rust/agents/src/tool_guard/shell/packs/core.rs