Expand description
Common dev-command allowlist seeding for the supervisor.
Implements the dev-command-allowlist capability of the
common-dev-allowlist-preset change: write a curated preset of
prefix patterns (cargo build, git commit, just, mdbook build, openspec validate, find, grep, sed -n, …) into
.claude/settings.json::allowed_bash_prefixes so the supervisor
does not hand-approve every dev-loop command variant.
The preset is hard-coded in DEV_ALLOWLIST_PRESET (one source
of truth, reviewable in PRs). Users extend it through
[supervisor.common_dev_allowlist] extra = [...] in the repo
config. The merge semantics are identical to
crate::supervisor::curl_allowlist: existing entries are
preserved, missing entries are appended, no duplicates are
written, and the parent directory is created when missing.
Constants§
- DEV_
ALLOWLIST_ PRESET - Common dev-loop prefix patterns seeded into Claude’s
allowed_bash_prefixeson supervisor start.
Functions§
- effective_
patterns - Returns the effective ordered preset list with
extrapatterns appended after the built-in preset. - seed_
supervisor_ session - Seeds the dev allowlist into every Claude settings target a supervisor session needs.
- setup_
dev_ allowlist - Merges the dev-allowlist preset +
extrapatterns into the JSON file atsettings_path.