Skip to main content

Module dev_allowlist

Module dev_allowlist 

Source
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_prefixes on supervisor start.

Functions§

effective_patterns
Returns the effective ordered preset list with extra patterns 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 + extra patterns into the JSON file at settings_path.