Permissions Reference¶
Annotated companion to .claude-plugin/permissions-allow.json (allow list) and .claude-plugin/permissions-deny.json (deny list) — canonical sources merged into ~/.claude/settings.json by /foundry:setup. Working copy at .claude/permissions-guide.md, kept in sync by /audit (Check 4 drift check) and /manage add perm / /manage remove perm.
Force and mirror pushes explicitly denied — see Deny List below; local Git, branch and tag deletion included, runs freely. Deny rules evaluated before allow rules; matching deny always blocks regardless of any allow entry. Force-push (git push --force/-f/--force-with-lease/--force-if-includes/--mirror) denied unconditionally via .claude/settings.json deny — no override, any branch. The deny list is a literal-prefix backstop only (no path, wrapper, sh -c or abbreviation forms); commit-guard.js is the primary guard. Regular git push and every other remote write (subtree push, send-pack, http-push, lfs push) not settings.json-denied; gated by commit-guard.js single-use push token — each push requires a fresh git-push AskUserQuestion, whose Approve lets approval-guard.js record the token (no auto-arm); the former /tmp sentinel no longer authorizes anything. git remote not denied — prompt user for approval.
Deny List — always blocked¶
| Permission | Description | Why denied |
|---|---|---|
Bash(chmod 777:*) |
World-writable permissions | Security risk; overly broad file permissions |
Bash(rm -rf:*) |
Recursive force delete | Irreversible; destroys entire directory trees |
Bash(ssh:*) |
SSH connections | Prevents agent from opening remote sessions |
Bash(sudo:*) |
Privilege escalation | Agents must not gain root access |
Bash(curl -X DELETE:*) |
HTTP DELETE requests | Destructive external state mutation |
Bash(curl --request DELETE:*) |
HTTP DELETE requests (alternate form) | Destructive external state mutation |
GitHub writes through gh are not denied here. hooks/gh-write-guard.js blocks every gh write unless the user approved that exact command: a gh-write AskUserQuestion answered Approve records a single-use token (claude-gh-write-approval.json in the git common dir, 15 min) and the guard spends it with a PreToolUse allow. A gh force update to remote history (gh repo sync --force, gh pr update-branch --rebase, a gh api force field, a GraphQL force: argument) is blocked with no approval path, the same as the git force-push ban. A settings deny rule still applies after a hook allow, so a gh write deny entry would deny the approved command; the plugins ship none. Local git branch -D/-d and git tag -d are no longer denied either: local Git runs freely. Stale gh deny entries are scrubbed only by /foundry:setup, which removes exactly the retired entries of both kinds listed in .claude-plugin/permissions-deny-retired.json.
Built-in tool permissions¶
Pre-authorize Read, Glob, Grep, Write on dirs skills and teammates access frequently as own config or runtime state. Without these, agents prompted to confirm accessing own config files or writing output to skill run dirs.
| Permission | Description | Typical use case |
|---|---|---|
Read(.claude/*.md) |
Read top-level .claude/ markdown files |
Agents read CLAUDE.md, permissions-guide.md, TEAM_PROTOCOL.md at spawn |
Read(.claude/**/*.md) |
Read any nested .claude/ markdown file |
Agents and skills read own agent/skill/rule files; curator reads config files for audit |
Read(.claude/logs/**) |
Read log files under legacy .claude/logs/ |
Legacy fallback reads — /calibrate and /session merge pre-relocation entries alongside .notes/logs/ for historical context; logs now write to .notes/logs/ (see Write(.notes/**)) |
Read(./**) |
Read any file in project root | Teammates read TEAM_PROTOCOL.md and agent files at spawn; skills read own SKILL.md files |
Glob(./**) |
Glob-match any file in project | /audit and /manage enumerate agents, skills, hooks, source files without shell find |
Grep(./**) |
Search content in any project file | /audit checks cross-references; /calibrate locates skill keyword patterns |
Read(/tmp/**) |
Read temporary files under /tmp/ |
/calibrate reads checkpoint files for background agent health monitoring; skill temp output files |
Write(.plans/**) |
Write plan and blueprint files to .plans/ |
/brainstorm writes spec and tree files to .plans/blueprint/; /develop:plan writes plans to .plans/active/ |
Write(.notes/**) |
Write notes and lessons to .notes/ |
Skills write lessons, diary entries, guides to .notes/ |
Write(.reports/**) |
Write files into .reports/ skill run dirs |
Skills and Codex write timestamped run artifacts (result.jsonl, analysis files) to .reports/<skill>/ |
Write(.temp/**) |
Write prose output files to .temp/ |
Quality-gates long output; research, review, resolve, session, other skills write findings to .temp/output-<slug>-<date>.md |
Write(.cache/**), Write(.developments/**), Write(.experiments/**) |
Write to remaining artifact root dirs | /analyse GitHub API cache; /develop review-cycle runs; /optimize experiment runs |
Edit(.temp/**), Edit(.reports/**), Edit(.plans/**), Edit(.notes/**), Edit(.cache/**), Edit(.developments/**), Edit(.experiments/**) |
Create/edit files in artifact dirs without prompting | File creation is gated on Edit(...) entries, not Write(...) — without these, every new .temp//.reports/ file raises a create prompt in subagents even though the matching Write(...) rule exists |
Glob(~/.claude/**) |
Glob-match files in home .claude/ directory |
/foundry:setup link checks for existing symlinks/files before linking; /investigate probes verify agent/skill/config files exist in ~/.claude/; scoped to .claude/ only to avoid broad home-dir timeout |
Read(~/.claude/**) |
Read files in home .claude/ directory |
/foundry:setup reads ~/.claude/settings.json for merging; /investigate probes read ~/.claude/settings.json during environment checks |
Known limitation — sensitive-file gate on .claude/¶
Claude Code applies an additional, undocumented "sensitive file" classifier to tool-call writes/edits under project .claude/ — confirmed on .claude/state/skill-contract.md and independently corroborated on .claude/calibrate/runs/.
- This is separate from the
permissions.allow/deny/askarrays above: matchingEdit/Bashallow entries suppress the ordinary permission prompt, but the sensitive-file gate still fires on top of that — no settings.json field pre-authorizes it. - The dialog's own "Yes, and always allow access to
<dir>from this project" option is the only permanent grant, and it must be clicked live, once per project; it cannot be scripted intopermissions-allow.jsonor merged by/foundry:setup. - Hook-side writes (Node
fs, e.g.task-log.js's PreCompact write ofsession-context.md) are not tool-calls and bypass this gate entirely — prefer that pattern for new regenerable-state writes where feasible, before adding another Bash/Edit tool-call under.claude/. skill-contract.mdhas since been relocated to.temp/state/skill-contract.md, and calibrations/session-archive/audit-errors logs relocated to.notes/logs/, specifically to route around this gate (.temp/and.notes/are not sensitive-file-gated); the audit-errors.jsonl append exposure is resolved by that relocation — the only remaining known exposure under.claude/is the one-shot.claude/permissions-guide.mdsetup copy.
Known limitation — "Contains expansion" gate on $(...)¶
Bash commands containing command substitution $(...) (also backticks and process substitution) make prefix allow-rules fail-closed — the permission prompt shows reason "Contains expansion" no matter what the allow list says. Two-part mitigation shipped in plugins: (1) skill files use IFS= read -r VAR < file instead of VAR=$(cat file) for sentinel reads (see rules/claude-config.md §TMPDIR Sentinel Scoping); (2) every plugin except codemap-py (Python-only hooks by contract) registers one Bash PreToolUse auto-allow hook, hooks/allow-dispatch.js, and ships three decision modules behind it.
sentinel-read-allow.js decides by shape: it auto-allows commands whose only substitutions are the blueprint idioms ($(cat "${TMPDIR:-/tmp}/…") sentinel reads, $(date -u +FMT) stamps) — or that contain the substitution-free IFS= read -r VAR < sentinel form, which no prefix allow-rule can match (first token is the IFS= assignment) — and whose every segment starts with a read-only whitelisted token; anything else falls through to the normal prompt.
Substitutions that capture other command output ($(git rev-parse ...), $(jq ...), $(python ...)) are shape-uncoverable, so blueprint-allow.js decides by provenance instead: it normalizes and hashes the whole command, exact-matches it against the plugin's committed blueprint-manifest.json (every verbatim bash block/command shipped in skills/, agents/, rules/ whose commands all pass the generator's fail-closed allowlist — shell builtins, read-only utilities, plugin python scripts, listed test and lint tools, plus reviewed shapes such as python -c with fixed code and mutating plugin helpers listed with their guard; state files are read as KEY=value data, never sourced, and a value read from state is never run as a command; a block running an unlisted command such as ln, perl or an unknown CLI is left out and prompts — generated by bin/build_blueprint_manifest.py), and — after an independent danger re-check — allows a hit without a prompt.
The danger check refuses anything that could point a command name at another program: hash, builtin, alias, eval, source/. and their kin, the zsh commands/functions/aliases and bash BASH_CMDS/BASH_ALIASES tables, set -A, read -a, printf -v, assignments to lookup, start-up and word-splitting variables (PATH, zsh path, BASH_ENV, ZDOTDIR, LD_PRELOAD, LD_LIBRARY_PATH, LD_AUDIT, DYLD_*, prompt strings, zsh options, and IFS anywhere but as the prefix of a read), a function whose name has no underscore and may shadow a command, and an assignment that stores command-substitution text for a later expansion to run. Lookup writes are judged by spelling in any position and quoting, so an operand the shell evaluates as arithmetic cannot assign one. ASCII controls except tab/newline and Unicode Zs/Zl/Zp/Cf in lookup-name write positions are refused too. Operands of an allowlisted literal program or a direct .py/.js script path, echo operands and admitted formatter operands are data; entirely single-quoted text in these exempt positions and quoted-delimiter heredoc bodies to text programs stay inert. Arithmetic, subscripts and ${…} operators receive no exemption.
The generator, blueprint re-check and sentinel-read lane admit printf and print -f only with a fully literal format using string conversions (%s and fixed widths such as %-Ns), %% and the escapes \n, \t, \\. Numeric conversions, %b, %c, %q, %n, length modifiers, *, positional conversions and octal/hex escapes are refused; operands of an admitted format are data. An expanded or otherwise unmodeled format falls through to the ordinary permission prompt.
Beyond those names it fails closed on every shell form its reader does not model: a ${…} other than a plain read (${x}, ${x:-y}, ${x#y}, ${x/a/b}, ${#x}, ${x:0:8}), arithmetic other than a $((…)) that only reads and compares values, a heredoc opened other than as <<WORD, <<-WORD or with the whole delimiter quoted, a ( attached to a word other than NAME=(, =(…) and name() (so no zsh glob qualifier passes), and a shell option other than pipefail, errexit, nounset and nomatch. No shipped block uses them, and audit Sub-check 23e keeps it that way. Text with a backslash-escaped blank at a line end or before # is refused before matching: normalization would erase a blank the shell treats as part of a word, so the shell would run a different command than the digest covers.
The gh-write and push guards read printed text as shell source only where it reaches execution: a shell's pipe or heredoc input, eval, env -S, xargs/parallel placeholders, or a file subsequently run or sourced in the same command. The printer grammar is closed: literal echo with only -n, literal print with only -n/-r, both without backslashes in operands; or literal printf/print -f with %s, %-Ns, %% and only \n, \t, \\ escapes. Padding is bounded to 65,536 and ASCII operands. Other conversions, escapes or run-time printer operands make executable output unreadable and block the command; there is no general printf/echo decoder. Only the command word selects a stdin consumer, and written scripts match by normalized path. Printing a shell name as ordinary data does not select a consumer, and eval of a substitution does not consume later echo text.
Known limitation: arithmetic over a variable whose value carries outside text (for example, n=$(…); [[ n -eq 0 ]] or $((n))) is not judged; bash and zsh re-evaluate the value as an arithmetic expression, which could assign a variable, and this behaviour predates the closed lists and remains outside the classifier's scope.
The trust statement shifts from "this shape looks safe" to "this exact text exists in a reviewed, versioned plugin file": a command that captures output is covered once it matches a blueprint entry byte-for-byte; any deviation (hand-typed, adapted, or reordered) misses and still prompts, which is the intended fail-closed behavior for non-blueprinted code. Entries containing the plain ${CLAUDE_PLUGIN_ROOT} bootstrap token also bind their normalized source template to its SHA-256 key. The hook verifies that binding and renders only its independently trusted owning-plugin root into an in-memory exact lookup; it never rewrites the incoming command. Each helper block starts PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name <plugin>) || exit $?; export PLUGIN_ROOT; helper-only fragments depending on that assignment are not independently auto-allowed.
github-read-allow.js decides by gh read: it auto-allows a command whose every part is an allowlisted gh read (gh pr view, gh issue list, a gh api GET, a GraphQL query the text shows), in every session and spawned agent, with no grant or record; a gh write is never allowed here and gh-write-guard.js gates it.
No module is registered as a hook of its own. The dispatcher calls them as libraries in rank order — provenance first, shape second, gh read third — emits the first allow, and appends one audit record naming what each of them said (§Audit records). Each keeps its standalone entry point, their own test suites and their place in the propagation manifest; a user's own settings.json may still register either directly, and such a registration keeps working but bypasses the dispatcher, so its decision is never recorded. Migrate one by removing the settings.json entry: the plugin's own registration already covers the same commands.
Audit records¶
The dispatcher writes one JSON line per Bash call describing what it decided, and hooks/audit-close.js writes one describing what happened afterwards. Records live in ~/.claude/logs/audit/, one file per session (s-<key>.jsonl, where the key is a hash of the session id), plus a shared _no-session.jsonl for calls that arrive without one.
Each record names the plugin and hook that wrote it, the session and tool-call ids, the working directory, the effective decision with its lane and provenance, and every module's individual verdict. It carries a record_hash over its own canonical form.
Four things this log deliberately does not do:
- It never records command text. Only a digest of the normalized command, and for a provenance allow the manifest
srcit matched. Note the limit honestly:task-log.jsalready writes the first 200 characters of every Bash command intotimings.jsonlunder the sametool_use_id, so anyone holding~/.claude/logs/can recover command text regardless (credentials in it are masked first, and the directory is tightened to0700). The guarantee is about this file. - It is not tamper-evident.
record_hashdetects a record that changed after it was written. The same user owns the log, the hooks and the checker, so nothing here establishes that a record was not forged. - It never infers authority from execution. That a tool ran proves it was not blocked, not that a human approved it — a sibling plugin's allow, a
settings.jsonrule or a permission mode all execute without a prompt. - It never coordinates. With four plugins installed, each writes its own rows and nothing locks, claims or dedupes. Four observations of one completion are corroboration; the reader reconciles them.
Read and prune it with the shipped verifier:
PLUGIN_ROOT=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_plugin_root.py" --plugin-name foundry) || exit $?; export PLUGIN_ROOT
python "$PLUGIN_ROOT/bin/verify_blueprint_audit.py" verify
python "$PLUGIN_ROOT/bin/verify_blueprint_audit.py" prune --older-than 30 --dry-run
verify exits 1 only when a record's own hash fails; torn framing from concurrent appends and every classification finding are warnings. prune is the only thing in the system that deletes a log file, is never run by a hook, and never prunes _no-session.jsonl by age — a growing one means the host stopped sending a session id, which is a regression to investigate. Nothing schedules prune; run it from your own scheduler if you want retention automatic.
RIG_AUDIT=0 disables audit writing everywhere. It disables logging only: every module is still evaluated and the same permission decision is still emitted.
Both hooks were validated against committed text — the share of shipped blueprint blocks each covers. That is a different population from the commands sessions actually execute, so measure the second before trusting it: after the guarded resolver prologue, python "$PLUGIN_ROOT/bin/audit_hook_coverage.py" --since <hook-ship-date> --skills-only replays every Bash call in the local transcripts through the installed hooks and reports the split by mechanism. Pass --since, or sessions predating a hook drag the rate toward zero; the denominator counts every Bash call, including ad-hoc ones no blueprint ever produced, so the result is a floor rather than a verdict.
Web¶
| Permission | Description | Typical use case |
|---|---|---|
WebSearch |
Search web for current information | Fetch current docs, CVE advisories, package release notes, ecosystem news |
Shell utilities¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(curl:*) |
HTTP requests and file downloads | Hit REST API, download file, fetch raw URLs for link verification |
Bash(echo:*) |
Print strings to stdout | Pipe content into another command, emit simple diagnostics |
Bash(find:*) |
Locate files by name, type, or modification time | Discover files matching pattern across directory tree |
Bash(find .cache*) |
Locate files inside .cache/ (GitHub API cache) |
/analyse GitHub API response cache inspection and TTL cleanup |
Bash(find .experiments*) |
Locate files inside .experiments/ skill run dirs |
/optimize run iteration inspection and TTL cleanup |
Bash(find .developments*) |
Locate files inside .developments/ skill run dirs |
/develop review-cycle artifact inspection and TTL cleanup |
Bash(find .notes*) |
Locate files inside .notes/ |
Notes inspection and TTL cleanup |
Bash(find .plans*) |
Locate files inside .plans/ |
Blueprint spec TTL cleanup; plan file inspection |
Bash(find .reports*) |
Locate files inside .reports/ (skill runs) |
/analyse, /calibrate, /audit, /resolve artifact inspection and TTL cleanup |
Bash(find .temp*) |
Locate files inside .temp/ (prose output) |
Quality-gates long output inspection and TTL cleanup |
Bash(grep:*) |
Search file content by regex pattern | Filter command output, find usages across codebase |
Bash(head:*) |
Read first N lines of file | Inspect file headers, preview log beginnings |
Bash(tail:*) |
Read last N lines of file | Follow live logs with -f, inspect recent entries |
Bash(ls:*) |
List directory contents | Check file existence, inspect directory structure |
Bash(wc:*) |
Count lines, words, or bytes | Measure file count, line budget checks |
Bash(diff:*) |
Compare two files line-by-line | Confirm patch outcome, spot drift between config files |
Bash(cp:*) |
Copy files | /foundry:setup uses this to copy rules and settings to ~/.claude/ |
Bash(ln:*) |
Create symlinks | /foundry:setup link symlinks agents, skills, rules into ~/.claude/ |
Bash(mkdir:*) |
Create directories | Ensure target paths exist before writing |
Bash(mkdir -p .cache/*) |
Create subdirs inside .cache/ |
/analyse creates .cache/gh/ for GitHub API response caching |
Bash(mkdir -p .notes/) |
Create .notes/ directory |
Skills write lessons, diary entries, guides to .notes/ |
Bash(mkdir -p .plans/active/) |
Create .plans/active/ plan directory |
/develop:plan creates active plans directory before writing plan files |
Bash(mkdir -p .plans/blueprint/) |
Create .plans/blueprint/ directory |
/brainstorm creates blueprint directory before writing spec and tree files |
Bash(mkdir -p .plans/closed/) |
Create .plans/closed/ directory |
Plans moved here when completed |
Bash(mkdir -p .reports/calibrate/*) |
Create .reports/calibrate/ skill run subdirs |
/calibrate creates timestamped run dir before spawning pipeline agents |
Bash(mkdir -p .reports/resolve/*) |
Create .reports/resolve/ skill run subdirs |
/resolve creates run dir for lint+QA gate artifacts |
Bash(mkdir -p .reports/audit/*) |
Create .reports/audit/ skill run subdirs |
/audit creates timestamped run dir before spawning curator agents |
Bash(mkdir -p .reports/review/*) |
Create .reports/review/ final report subdirs |
/oss:review creates pr-<N>/run-<NNN>/, /develop:review creates its per-run dir, for the consolidated final report |
Bash(mkdir -p .temp/review/*) |
Create .temp/review/ intermediate handover subdirs |
/oss:review, /develop:review create per-run dir for subagent handover files |
Bash(rm -f .temp/state/*) |
Delete regenerable skill-contract.md under .temp/state/ |
Compaction lifecycle clears skill-contract.md on skill completion — .temp/ is not sensitive-file-gated, so this entry works (unlike the old .claude/state/ location) |
Bash(mkdir -p .reports/analyse/*) |
Create .reports/analyse/ skill run subdirs |
/analyse creates subdirs for thread, ecosystem, health modes |
Bash(mkdir -p .experiments/*) |
Create .experiments/ skill run subdirs |
/optimize creates run dir for run mode artifacts |
Bash(mkdir -p .developments/*) |
Create .developments/ skill run subdirs |
/develop creates run dir for review-cycle artifacts |
Bash(mkdir -p .temp/) |
Create .temp/ prose output directory |
Skills write quality-gates prose output (research, review, resolve, session) to .temp/ |
Bash(time:*) |
Measure wall-clock execution time | Establish baseline before optimisation pass |
Bash(rsync:*) |
Efficient file sync between directories | File mirroring and drift detection; --dry-run for preview, no --delete ever |
Bash(sed:*) |
Stream editor for text transformation | Rewrite paths, strip comments, process file content in pipelines |
Bash(awk:*) |
Column-oriented text processing | Extract fields, compute sums, reformat tabular output |
Bash(cat:*) |
Concatenate and print file contents | Pipe multi-file content into command; display small files |
Bash(sort:*) |
Sort lines of text | Deduplicate sorted output, produce ordered lists for diffing |
Bash(uniq:*) |
Filter adjacent duplicate lines | Count occurrences, collapse repeated log lines |
Bash(cut:*) |
Extract fixed columns or delimited fields | Pull specific CSV/TSV columns, trim output fields |
Bash(tr:*) |
Translate or delete characters | Normalise line endings, uppercase/lowercase transforms |
Bash(xargs:*) |
Build and execute commands from stdin | Batch-apply command to list of files or arguments |
Bash(tee:*) |
Write stdin to stdout and file simultaneously | Capture command output while still piping downstream |
Bash(jq:*) |
Query and transform JSON | Parse API responses, inspect settings.json, filter JSONL logs |
Bash(date:*) |
Print or format current date/time | Timestamp log entries, generate dated filenames |
Bash(which:*) |
Locate executable on PATH | Verify tool installed before invoking |
Bash(comm:*) |
Compare two sorted files line by line | /oss:resolve: compare worktree lists before and after cleanup to detect unreported leftovers (requires oss plugin) |
Bash(mktemp:*) |
Create temporary file with unique name | Create temp files for safe content comparison before overwriting |
Bash(touch:*) |
Create file or update modification time | /audit health monitoring: create per-agent checkpoint files for stall detection |
Bash(printf:*) |
Formatted output; auto-allow lanes accept only literal string formats, %% and \n/\t/\\ escapes |
Print audit and setup text without numeric evaluation or general escape decoding |
Bash(basename:*) |
Strip directory and suffix from file path | Extract agent/skill names from full file paths in audit and manage scripts |
Bash(dirname:*) |
Extract directory component from file path | Compute parent directory of file path in shell pipelines |
Bash(node --check:*) |
Validate Node.js script syntax without running | /audit upgrade correctness check for hook JS files after applying config changes |
Bash(cd:*) |
Directory navigation | Change working directory before running commands in subdirectory (split from compound cd&&cmd patterns) |
GitHub CLI — primarily read-only¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(gh auth status:*) |
Check GitHub CLI authentication state | Pre-flight check in /resolve and any skill requiring gh auth |
Bash(gh pr view:*) |
Inspect PR metadata, body, review status | Used by /oss:review and /develop:fix to understand PR under review |
Bash(gh pr checkout:*) |
Check out PR branch locally | /resolve uses this to enter PR branch state before applying changes |
Bash(gh pr diff:*) |
Fetch full diff of PR | /oss:review fetches diff for static analysis |
Bash(gh pr list:*) |
List open or merged PRs | /analyse health and duplicate-detection modes |
Bash(gh pr checks:*) |
Read CI check status on PR | Verify CI passed before marking fix complete |
Bash(gh repo view:*) |
Fetch repository metadata (name, owner) | /resolve detects owner/repo slug for constructing API call paths |
Bash(gh run list:*) |
List recent workflow runs | /cicd-steward diagnosis: find failing run |
Bash(gh run view:*) |
View logs and status of specific CI run | Read error output from failed job |
Bash(gh issue view:*) |
Read issue body, labels, comments | /analyse and /develop:fix read issue before starting work |
Bash(gh issue list:*) |
List issues | /analyse dupes and health overview |
Bash(gh release view:*) |
Inspect existing release's notes and assets | /release reads previous release as baseline |
Bash(gh release list:*) |
List releases | Find most recent tag to set changelog range |
Bash(gh api graphql:*) |
Execute GitHub GraphQL API queries; the prefix also matches mutations, which hooks/gh-write-guard.js blocks before this allow applies unless the user approved that exact command |
/analyse discussion mode fetches Discussion threads via GraphQL API |
Bash(gh api repos/*) |
GitHub REST API calls for repo resources; the prefix also matches writes (-f/-F fields send a POST, -X), which hooks/gh-write-guard.js blocks before this allow applies unless the user approved that exact command |
/analyse, /oss:review, /resolve fetch PR reviews, issue data via REST |
Bash(gh api search/*) |
GitHub REST API search endpoint | /resolve searches for downstream usage of changed APIs |
Git — read-only¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(git fetch:*) |
Fetch from remote without merging | /resolve fetches remote refs to detect fork divergence before merging |
Bash(git log:*) |
Browse commit history | /release reads commits since last tag; general history inspection |
Bash(git shortlog:*) |
Summarise history grouped by author | Contributor stats for release notes |
Bash(git describe:*) |
Derive version string from nearest tag | Determine current version in release automation |
Bash(git diff:*) |
Show unstaged / staged / commit-to-commit changes | Pre-commit review, diffing patch before applying |
Bash(git show:*) |
Inspect specific commit, tag, or blob | Read content of tagged release or specific file at ref |
Bash(git rev-list:*) |
Enumerate commits in range | Count distance between refs, find commits to include in release notes |
Bash(git rev-parse:*) |
Resolve refs to hashes; get project root | Many skills use --show-toplevel to locate project root; MEMORY.md path derivation |
Bash(git ls-files:*) |
List tracked files in index | /audit and /manage enumerate tracked config files |
Bash(git branch:*) |
List or inspect local branches | Check active branch; list branches without touching remote |
Bash(git tag:*) |
List or inspect local tags | Find latest release tag without pushing |
Bash(git status:*) |
Show working-tree state: staged, unstaged, untracked | Pre-commit check, verifying clean state before release |
Git — local write¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(git merge:*) |
Merge branch into current branch (with or without committing) | /resolve merges PR head branch to detect and stage conflict resolution; --no-commit --no-ff for inspection, --ff-only for clean pointer advance |
Bash(git merge-base:*) |
Find common ancestor commit of two branches | /resolve uses this to find diverge point between source and target for diff analysis |
Bash(git worktree:*) |
Add, list, or remove linked working trees | /resolve creates temporary isolated worktree in /tmp to run merge without touching user's main working directory |
Bash(git commit:*) |
Commit staged changes to local history | /optimize run commits each experiment atomically before verifying metric |
Bash(git revert:*) |
Revert commit by creating inverse commit | /optimize run reverts failed experiments with git revert HEAD --no-edit — preserves history, avoids reset --hard |
Bash(git add:*) |
Stage files for next commit | Stage changes after edit before prompting user to commit |
Bash(git checkout:*) |
Switch branches or restore individual files from ref | Switch to feature branch; restore file to HEAD state |
Bash(git stash:*) |
Shelve uncommitted changes temporarily | Save work in progress before pulling or switching context |
Bash(git apply:*) |
Apply patch file to working tree | Apply generated diff or contributor's patch |
Python toolchain¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(pytest:*) |
Run test suite via pytest entry point |
Quick test run during TDD loop in /develop:feature and /develop:fix |
Bash(pre-commit run:*) |
Run pre-commit hooks on staged or all files | Verify formatting and linting before marking task done |
Bash(python -m pytest:*) |
Run tests via module interface | Environment-safe alternative when pytest binary not on PATH |
Bash(python -m doctest:*) |
Execute doctests embedded in module | Validate inline usage examples in docstrings |
Bash(python -m pre_commit run:*) |
Run pre-commit via module interface | Alternative invocation inside virtual environments |
Bash(python -m cProfile:*) |
Profile script and output timing data | /optimize Step 1 baseline measurement |
Bash(ruff:*) |
Lint and auto-fix Python source | Run after edits; check for diagnostics, format for style |
Bash(mypy:*) |
Static type-checking | Validate type annotations on module or package |
Bash(pip show:*) |
Display metadata for installed package | Check installed version, confirm dependency present |
Bash(pip list:*) |
List all installed packages and versions | Dependency audit, environment snapshot |
Bash(pip index:*) |
Query PyPI for available versions of package | Check whether newer release available |
Bash(pip-audit:*) |
Scan installed packages for known CVEs | Pre-release dependency CVE scan |
Bash(uv run pytest:*) |
Run tests via uv-managed pytest | Same as pytest:* but uses project's uv-managed environment |
Bash(uv run python -m pytest:*) |
Run tests via uv python module interface | Environment-safe pytest invocation through uv |
Bash(uv run python -m doctest:*) |
Execute doctests via uv python | Validate inline usage examples via uv-managed interpreter |
Bash(uv run python -m cProfile:*) |
Profile script via uv python | /optimize baseline measurement through uv-managed interpreter |
Bash(uv run ruff:*) |
Lint and auto-fix Python source via uv | Run ruff through uv to ensure project venv rules apply |
Bash(uv run mypy:*) |
Static type-checking via uv | Run mypy through uv to use project-pinned version |
Bash(uv run pre-commit run:*) |
Run pre-commit hooks via uv | Verify formatting/linting via uv-managed pre-commit |
Bash(uv run pip-audit:*) |
Scan packages for CVEs via uv | Pre-release CVE scan through uv-managed environment |
Bash(uv pip show:*) |
Display metadata for installed package | Check installed version in uv-managed environment |
Bash(uv pip list:*) |
List all packages installed via uv | Dependency audit of uv-managed environment |
Bash(uv pip check:*) |
Verify package compatibility in uv environment | Detect dependency conflicts without installing anything |
Bash(uv tree:*) |
Show dependency tree for project | Visualize transitive deps; identify why package installed |
macOS / ecosystem¶
| Permission | Description | Typical use case |
|---|---|---|
Bash(claude:*) |
Invoke Claude Code CLI | SessionStart hook runs claude auth status to cache plan info |
Bash(node:*) |
Run Node.js scripts | Hooks (task-log.js, statusline.js) are Node scripts executed by Claude Code |
WebFetch — allowed domains¶
| Permission | Description | Typical use case |
|---|---|---|
WebFetch(domain:github.com) |
GitHub web pages and repo content | Fetch README, release pages, action marketplace entries |
WebFetch(domain:docs.github.com) |
GitHub documentation | GitHub Actions syntax, REST API reference |
WebFetch(domain:raw.githubusercontent.com) |
Raw file content from GitHub repos | Read source files, configs, or changelogs directly |
WebFetch(domain:pypi.org) |
PyPI package metadata | Release history, classifiers, dependency info |
WebFetch(domain:pre-commit.ci) |
pre-commit.ci run status and badge URLs | Verify CI badges before adding to README |
WebFetch(domain:claude.ai) |
Claude product pages | Check product/plan capabilities |
WebFetch(domain:claude.com) |
Claude Code landing and docs | Read Claude Code documentation |
WebFetch(domain:anthropic.com) |
Anthropic blog, model cards, policy docs | Research model capabilities, fetch release announcements |
WebFetch(domain:docs.anthropic.com) |
Claude Code documentation | Fetch Claude Code docs; redirects to code.claude.com — both domains needed for full coverage |
WebFetch(domain:code.claude.com) |
Claude Code documentation | /audit fetches hook, agent, skill schemas for validation |
WebFetch(domain:arxiv.org) |
ML preprints | /research:topic and research:scientist fetch papers |
WebFetch(domain:developers.openai.com) |
OpenAI developer documentation | Codex CLI docs, API reference |
WebFetch(domain:platform.openai.com) |
OpenAI platform and API reference | Model capabilities, pricing, endpoint docs |
WebFetch(domain:openai.com) |
OpenAI blog and model release notes | Track new model releases |
WebFetch(domain:www.anthropic.com) |
Anthropic main site | Research blog posts, model announcements, policy pages |
WebFetch(domain:support.claude.com) |
Anthropic support and help centre | Lookup Claude feature behaviour, plan limits, billing FAQs |
WebFetch(domain:hr.linkedin.com) |
LinkedIn profile pages | Release contributor lookup: confirm contributor's real name via profile (see oss/release/guidelines/writing-rules.md) |
WebFetch(domain:scholar.google.com) |
Google Scholar academic search | research:scientist and /research:topic find papers and citation counts |
Skills — pre-approved invocations¶
Only skills invoked programmatically (by another skill, hook, or automated workflow) need Skill() entry. Skills invoked directly by user (/audit, /oss:review, /develop:feature, etc.) never need pre-authorization — user's own invocation is approval. Adding all 14 skills to allow list = noise.
| Permission | Description | Why programmatic (not user-invoked) |
|---|---|---|
Skill(calibrate) |
Invoke /calibrate skill without confirmation |
Post-fix quality gate in /develop and CLAUDE.md self-improvement loop; runs without user at prompt |
Top-level settings.json keys¶
Non-permission top-level keys in settings.json controlling Claude Code behaviour. Not part of permissions block but documented here as canonical settings.json reference.
| Key | Value in this project | Description |
|---|---|---|
autoCompactThreshold |
0.7 |
Fraction of context capacity triggering automatic compaction. 0.7 = compact at 70% full. Lower = compact earlier (safer for long sessions); higher = use more context before compacting. |
ordering |
"auto" |
Controls tool-call ordering. "auto" lets Claude Code choose optimal execution order. Undocumented in public docs as of 2026-04-07 — re-check quarterly; keep as "auto" unless release notes document other values. |
teammateMode |
"in-process" |
Controls how agent teammates spawn. "in-process" runs teammates in same process (low overhead, shared memory); alternative "subprocess" for full isolation. Required alongside CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 in env. |
model |
"opusplan" |
Default model for session. "opusplan" = hybrid alias — Opus in plan mode, Sonnet in execution. Other aliases (Anthropic API; other providers and older Claude Code builds lag, e.g. haiku→Haiku 4.5): opus→Opus 5.5, sonnet→Sonnet 5.5, haiku→Haiku 5.5, fable→Fable 5.1, best→latest Fable else opus, opus[1m]/sonnet[1m]→1M-context variants. |
effortLevel |
"high" |
Default effort level for all tasks. Omitting it leaves each model's own default — medium for the 5.5 models in Claude Code, high at the raw API — so "high" here raises effort on those models. Accepts low, medium, high, xhigh; max is interactive-only (/effort, --effort). Per-model override via modelSettings.<model-id>.effortLevel. Manual extended thinking is removed on the 5 family — effort steers adaptive thinking instead. |
autoUpdatesChannel |
"stable" |
Release channel for auto-updates. "stable" = released versions only; "beta" includes pre-release builds. |
fastModePerSessionOptIn |
false |
Whether fast mode enabled per-session (opt-in). false = normal mode by default; user must explicitly toggle /fast to enable. |