docs: Claude Code v2.1.251 - per-model effort storage, CLAUDE_CODE_SUBAGENT_MODEL demoted, project settings security hardening - #1231
Merged
Conversation
…BAGENT_MODEL demoted, project settings security hardening Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: v2.1.251 ships three interconnected behavior changes that will silently break existing setups:
CLAUDE_CODE_SUBAGENT_MODELis now the lowest-priority model source for agent teams (spawn prompt and definitionmodelfield both outrank it), effort levels are now stored per-model under a newmodelSettingskey instead of the singleeffortLevelkey, and project/local settings can no longer set a broad class of sensitive env vars. Any organization that relied on the env var to enforce a specific model for all teammates, or that setCLAUDE_CONFIG_DIR/OTEL_LOG_RAW_API_BODIESin project settings, will see different behavior silently after upgrading.HIGHLIGHTS:
CLAUDE_CODE_SUBAGENT_MODELpriority order reversed (agent-teams.md,env-vars.md,model-config.md): was highest priority (overrode spawn prompt and definition'smodelfield); now third and lowest — spawn prompt model comes first, definition'smodelsecond, env var third. Explicitly noted as a breaking change vs. pre-v2.1.251. Admins using this env var to force all teammates onto a specific model must now set it in the spawn prompt or definition instead.modelSettingsper-model effort key (settings-reference.md, v2.1.251+):/effortand the/modelpicker's slider now save effort per model undermodelSettingsrather than writing the singleeffortLevelkey.effortLevelbecomes a fallback default for models with no saved entry. Cross-file precedence: a model'smodelSettingsentry in any file beatseffortLevelin the same file, but managedeffortLeveloutranks user-levelmodelSettings./effort autoclears the active model's saved entry.settings-reference.md,env-vars.md): project and local settings can no longer setCLAUDE_CONFIG_DIR,HOME,TMPDIR/TMP/TEMP/XDG_*,OTEL_LOG_RAW_API_BODIES,ENABLE_BETA_TRACING_DETAILED,BETA_TRACING_ENDPOINT, or the startup/sync variables. Claude Code drops them silently with a--debug-visible warning. Before v2.1.251, most of these were writable from project settings.updatedInputnow governs permission evaluation (hooks.md): permission rules and Bash auto-background eligibility are now checked against the input your hook returns, not the input Claude sent. Hooks that rewrite commands should ensure the rewritten version still satisfies the intended permission rules.model-config.md): env var → model-default hold (Fable 5/Opus 4.8/4.7 first-run) → settings (modelSettingstheneffortLevel) → built-in model default. Previously documented as "env var overrides/effortoverrideseffortLevel."env-vars.md):BETA_TRACING_ENDPOINT(OTLP endpoint for detailed beta tracing, ignored in project/local settings) andCLAUDE_CODE_AUTO_BACKGROUND_WORKER_CHECKIN_SECONDS(seconds between background subagent check-in reminders, requires v2.1.248+).CLAUDE_CODE_EFFORT_LEVELscope clarified: now explicitly overrides--effortand/effortat command-line level too, not just the settings keys.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning