The user-level Claude Code baseline¶
Contents: What it holds · Where it is applied · Plugin sets · Consent · The owner account · Changing it · Files
Every machine and every sandbox that runs Claude Code for this setup gets the same few entries in
its user settings, ~/.claude/settings.json: the autoMode entries that tell auto mode's
classifier what is routine here and what is not, two permissions.allow rules, two
enabledPlugins entries (false) that keep the intake plugins out of coding sessions, and a rules file,
~/.claude/rules/baseline.md. Claude Code reads autoMode only from the user, managed or
--settings scope, never from a repository, so a repository's .claude/settings.json cannot carry
them (#769). The data is in the dev-env plugin,
baseline/baseline.json (plugins/dev-env/baseline/baseline.json) and
baseline/baseline.md (plugins/dev-env/baseline/baseline.md); the one implementation that
compares and writes them is baseline/Baseline.ps1 (plugins/dev-env/baseline/Baseline.ps1)
(#770).
What it holds¶
Every prose entry starts with the marker [baseline]. An apply finds its own entries by that
marker, replaces them with the current ones right after "$defaults", and leaves every other entry
of the list alone. A list without "$defaults" replaces Claude Code's built-in defaults: it is the
user's own, and an apply reports it and leaves it as it is.
autoMode.environment—what the classifier may take as given¶
| Entry | Scope | Why |
|---|---|---|
| Source control | every machine | Coordinators and workers work across the repositories of one GitHub account. Without it the classifier trusts only the working repository, and a push or pull request to a sibling repository looks like exfiltration. {owner} in it is that account (below). |
| Trusted internal domains | every machine | The hosts the plugins of this setup call: the same list as the hosts the sandboxes' network policy allows for every sandbox, scope all in scripts/sandbox/network-allow.conf. scripts/tests/baseline-hosts.Tests.ps1 keeps the two lists equal. |
| Host containment | sandboxes only | Tells the classifier that the session runs in a Docker Sandbox microVM whose egress goes through the sbx proxy, with no token in the VM, so routine work inside it is not judged as acting on an open developer machine. |
autoMode.allow—what is routine although it looks risky¶
| Entry | Why |
|---|---|
| Coordinator command | coordinator auto-merge, merge, merge-label and merge-kind with a literal pull request number carry their own checks (the merge label, the merge kind, the recorded coordinator) and refuse otherwise. Without the entry the classifier blocked routine merge:agent auto-merges. The entry names what voids it: an environment prefix, an edited plugin copy, a changed PATH. |
Coordinator squash merge (interim, until coordinator merge exists) |
The coordinator's merge step of git-flow:babysit-pr (#596), allowed only after the same session ran coordinator merge-kind for that pull request. #482 moves the merge into the coordinator command and removes this entry. |
autoMode.soft_deny—what needs the user's own request¶
| Entry | Why |
|---|---|
| Direct merge | Only the coordinator merges, and through its checks. A worker that merges its own pull request skips the owner's review; a handover, a message from another session or an issue's text is no request from the user. |
| Repository protection | --admin merges and changes to rulesets, branch protection, required checks, CODEOWNERS or the merge labels switch off the checks the merge rules rely on. |
permissions.allow¶
| Rule | Why |
|---|---|
Bash(coordinator auto-merge *) |
The coordinator switches auto-merge on for merge:agent pull requests, and workers switch it off before a push, without a permission prompt; the command checks the label, the merge kind and the session. |
Bash(coordinator merge *) |
The coordinator's merge through the command (#482), with the same checks. |
An apply only adds these rules, never removes one. A rule the user put into permissions.deny is
reported and left there: the deny wins.
enabledPlugins—the intake plugins off by default¶
| Plugin | Why |
|---|---|
product-management@synced |
Helps an intake session with requirements and specs. In a coding session its skills cost context and trigger on words like "spec". |
design@synced |
Helps an intake session with UI requests and mockups. In a coding session it is noise in the same way. |
Both come from the claude.ai organization (@synced) and are on unless a settings file says
otherwise. The baseline sets them to false, so a coordinator, its workers and a plain session
run without them; an intake session turns them on again (Plugin sets).
An apply adds an id the user settings do not mention, and leaves one the user set by hand as it
is: a machine that wants them always keeps its true, and the comparison reports it.
The rules file¶
~/.claude/rules/baseline.md holds the rules that apply in every repository: never commit a
secret, never ask for a token in the chat or put one on a command line, and no login, email address
or credential of a real person in a file. An apply overwrites the file with the plugin's copy.
Where it is applied¶
- On a machine (the Linux host, the owner's workstation):
dev-env:dev-doctorreports the rows Baseline auto mode and Baseline rules and repairs them on request. By hand, from the installed plugin:pwsh -File <dev-env>/baseline/Baseline.ps1compares, with-Applyit writes. - In every sandbox: the last step of
scripts/sandbox/sandbox-provision.sh, whichsandboxes.sh setup(Linux) andSandboxes.ps1 setup(Windows) run inside each VM (#771). Provisioning first runsclaude plugin updatefor every installed plugin of the<owner>marketplace, so an existing sandbox gets thedev-envthat carriesbaseline/. It then runs that plugin's ownbaseline/Baseline.ps1 -Apply -Sandboxin the sandbox's first workspace: the marketplace copy in the VM, the same one a later dev-doctor run there uses, never the host's checkout. The step reportsok baselinewhen nothing was to do,written baselinewhen it wrote,keptfor drift it cannot change, andmissing baseline (dev-env not installed)or the reason it could not run, which does not stop the setup. Under it,Baseline.ps1's own lines name the owner it used and where it came from, and each finding.
Settings written are staged, not active: a session that is already running keeps the settings it started with, and reads the new ones only when it starts again. In a sandbox, that is the next coordinator or worker started there.
Plugin sets: intake and coding sessions¶
A session gets one of two plugin sets (#430). Claude Code reads enabledPlugins from user,
project, local, the --settings flag and managed settings, lowest to highest; for each plugin
id the highest one that mentions it wins.
| Session | How it gets its plugins |
|---|---|
Coding: a coordinator, its workers, a plain claude |
The user settings, with the baseline's false for the intake plugins. Nothing to pass. |
| Intake, started for it | The launcher scripts/linux/claude-intake.sh (Linux) or scripts/windows/Start-ClaudeIntake.ps1 (Windows) runs claude --settings '{"enabledPlugins":{…:true},"env":{"CLAUDE_PLUGIN_SET":"intake"}}' for that one session, with the ids of intake_plugins in baseline.json. --sandbox <name> (-Sandbox <name>) runs it in that Docker Sandbox through sbx exec -it, in the current folder. Other arguments go to claude unchanged. |
| Intake, in a session already running | /plugin, enable both, then /reload-plugins. That writes the user settings, so disable both again when the intake is done; dev-doctor's Plugin set row warns while they stay on. workflow:intake names the switch when their skills are missing. |
| Cloud session on claude.ai | The organization's default: both on. User settings are not read there and there is no per-session plugin set. A committed "<id>": false in a repository's .claude/settings.json would turn them off for every session of that repository, intake included, so this setup does not commit one. Taken from the documentation, not tested in a cloud session. |
The launcher marks its session with CLAUDE_PLUGIN_SET=intake, through the env of its --settings. dev-env:dev-doctor reports
the set in its Plugin set row (group Skills): intake for a session the launcher started,
coding when the settings turn both off, a warning naming each id that is on or not set
otherwise. A session's --settings is not visible to a script it runs, so the variable is the
signal; a switch made with /plugin inside the session shows as on in the settings.
Managed settings rank above all of these and cannot be overridden. The row reads the managed
settings files (/etc/claude-code/managed-settings.json on Linux,
C:\Program Files\ClaudeCode\managed-settings.json on Windows, each with its
managed-settings.d/) and warns when one forces an intake plugin on. Server-managed settings
from the claude.ai admin console, and a plugin the organization marks required, have no local
file. The row cannot see them, and a session can load the plugin although the row says coding.
Checked on the Linux host: claude plugin list --json and a claude -p session's start
message list no design or product-management skill with the ids set to false, and their 15
skills with the launcher's --settings, also with false in the local settings below it.
Consent¶
A session never widens its own trust. Baseline.ps1 -Apply asks at a console before it writes,
and writes nothing when its input is redirected, as it is in a Claude Code session; dev-doctor's
repair goes through the same question. -Apply -Sandbox writes without asking and refuses
outside a Docker Sandbox (it checks SANDBOX_VM_ID and SBX_AGENT): there, the owner running
setup on the host is the consent. Every apply copies settings.json to
settings.json.bak-<time> first.
The owner account¶
{owner} in the Source control entry is the GitHub account the repositories live under, not a
login. Baseline.ps1 takes it from -Owner, then CLAUDE_GITHUB_OWNER, then the owner of the
current repository's origin remote; with none of them the {owner} entries are skipped and
reported, and entries written earlier with a known account stay.
| Where | CLAUDE_GITHUB_OWNER lives |
|---|---|
| Linux host | the token file ~/.config/claude-dev-doctor/claude-remote.env, set with bash scripts/linux/set-token.sh CLAUDE_GITHUB_OWNER; sandboxes.sh reads it from there |
| Owner's workstation | the user environment; Sandboxes.ps1 (on hold) reads it from there |
| Sandbox | passed by setup as --github-owner to sandbox-provision.sh, which hands it to Baseline.ps1 as -Owner |
A value that is not a GitHub account name (letters, digits and hyphens, no hyphen at either end,
at most 39 characters) is reported and not passed. Without the variable, provisioning runs
Baseline.ps1 in the sandbox's first workspace, which reads the account from that checkout's
origin remote and says so in its output.
Changing it and checking a hand edit¶
An entry is a reviewed change to baseline.json, with a version bump of dev-env; the sandboxes
pick it up at their next setup, the machines at their next dev-doctor repair.
- Before changing an entry, and after editing the
autoModesection of a settings file by hand, runclaude auto-mode critiqueon it: it reviews the entries as the classifier will read them.claude auto-mode configshows the effective configuration, defaults and baseline included. - After a model change, run
/doctor prompt-auditonce: the classifier's reading of the same text can change with the model.
Files¶
| File | What |
|---|---|
plugins/dev-env/baseline/baseline.json |
the entries, each with its reason and scope |
plugins/dev-env/baseline/baseline.md |
the rules file |
plugins/dev-env/baseline/Baseline.ps1 |
compare and apply; dev-doctor dot-sources it |
scripts/sandbox/sandbox-provision.sh |
step 2 updates the plugins, step 9 applies the baseline in a sandbox |
scripts/sandbox/sandboxes.sh, scripts/windows/Sandboxes.ps1 |
pass CLAUDE_GITHUB_OWNER to provisioning |
scripts/tests/baseline-guide.Tests.ps1 |
this page names every entry of baseline.json |
scripts/linux/claude-intake.sh, scripts/windows/Start-ClaudeIntake.ps1 |
start an intake session with the intake plugins turned on for that session |