$worker
shell
v0.3.5Unix shell + filesystem worker — exec with allowlist/denylist/timeout/output caps and background jobs; fs::ls|stat|mkdir|rm|chmod|mv|grep|sed|read|write with host jail, denylist, size caps, and sandbox-target forwarding
- macOS: arm64 · x64
- Linux: arm64 · armv7 · x64
skill doc
skills/grep.md
Searching a directory tree with regex
When to use
- Where a caller would otherwise reach for
rgorgrep -rn: faster and structured. - Pre-step before
shell::fs::sedto preview what would be rewritten. - Cross-file search inside a worker without spawning a process.
Notes
include_globandexclude_globare arrays of glob strings (e.g.["**/*.rs"],["**/target/**"]). The keys are singular_glob, not plural_globs.- The flag is
ignore_case, notcase_insensitive. - Multiline mode is off by default; encode
(?m)inside the pattern when multiline anchoring is needed. - When
max_matchesis hit,truncated: trueis set and the walk stops. Tighten the pattern or narrowpathinstead of bumping the cap blindly. - Binary files are skipped automatically. The wire
FsMatchhas nocolumnfield; the legacyfilealias is accepted on the deserialiser side but the response always renders aspath. - Same jail and denylist rules as
shell::fs::ls.