safe-chains 0.235.7

Auto-allow safe bash commands in agentic coding tools
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
[[command]]
name = "mdls"
description = "Queries Spotlight metadata attributes for files on macOS. Read-only: retrieves indexed metadata and prints to stdout, never modifying files or the Spotlight index. Ships as a system binary since macOS 10.4; no independent release cycle."
url = "https://ss64.com/mac/mdls.html"
level = "Inert"
bare = false
standalone = ["-V", "-h", "-r", "--help", "--raw", "--version"]
valued = ["-n", "--name", "--nullMarker"]
examples_safe = ["mdls README.md", "mdls -n kMDItemFSName ~/Library/Preferences/com.apple.finder.plist"]
examples_denied = ["mdls ~/.ssh/id_rsa", "mdls -n kMDItemFSName /etc/shadow"]

[command.path_gate]
positional = "read"