statementSaid on 2026-09-09
`CLAUDE_CODE_SUBAGENT_MODEL` in settings.json is a safeguard, not a permission: it makes a forgotten `model` cheap instead of inherited, but a forgotten `model` remains a defect.
A statement by author, said on 2026-09-09. Statements are as reported by the cited publishers — not verified by DecisionGateway.
**`CLAUDE_CODE_SUBAGENT_MODEL` в settings.json — страховка, а не разрешение.** Она делает забытый `model` дешёвым вместо унаследованного. Забытый `model` остаётся дефектом.
Discussion
Related claims
Before a subagent's first run in a project, a `.claude/SUBAGENT-MODELS.md` task-class-to-model map must exist, created first if missing, and committed to the repository.author · commitmentA subagent must never run on the parent's model by default; the model is specified explicitly in every Agent call, except for forks, which always inherit the parent.author · commitmentEvery subagent run is logged to `.claude/subagent-cost-log.md` with task class, model, whether escalation occurred and the outcome, and the log is the only basis for editing the map.author · commitmentAfter a user selects "是,且不再询问", command text containing secrets may be written into .claude/settings.local.json and then mistakenly committed to repositories.Apiiro · allegationMore than 100,000 Claude Code local settings files have been uploaded to public GitHub repositories.Apiiro · investigationThe problem stems from Claude Code writing approved Shell commands into local settings files, which get committed with the project if not ignored by Git.post author · statement