Context
.claude/settings.template.json carries an autoMode block (lines 62 to 82 at 781af05fa4): one environment sentence, two allow sentences and four hard_deny sentences. #13453 added it as a prose mirror of AGENTS.md's gates. Claude Code does not read it from this file.
Four artifacts built on it between 2026-11-02 and 2026-11-11: a premise read on neomjs/neo-agent-brain#132 marked a fix as resolved by it, a comment there named it as a cause, #20794 proposed one more allow entry (closed once measured), and the first step of #20795 edits one of its hard_deny sentences.
The Problem
- Claude Code's documentation, Where the classifier reads configuration:
autoMode is read from the user's ~/.claude/settings.json, from managed settings and from --settings. "The classifier doesn't read autoMode from project settings."
- Measured, with controls, in comment 6807353591 on #20794: in a checkout whose
.claude/settings.json carries the block, claude auto-mode config prints exactly what claude auto-mode defaults prints.
So the block allows nothing and denies nothing. It reads like a guard and like an allowance, and each reader builds on it.
The Architectural Reality
- What holds a seat is elsewhere:
permissions.deny and permissions.ask in the same file, and AGENTS.md, which the classifier reads as CLAUDE.md. Each hard_deny sentence restates a rule AGENTS.md carries (critical gates 1, 3, 8 and 9, and the fan-out ban of §swarm_topology_anchor).
- The two
allow sentences describe writes that go through the MCP servers. permissions.allow admits those before the classifier runs.
- Tracked text that mentions
autoMode (git grep at neo 781af05fa4, neo-agent-brain c27e8b9b, neo-agent-skills c6f0d73, neo-agent-institution 6f00d3da; the grep finds the template's own line): this template, and one JSDoc line in neomjs/neo-agent-brain that neomjs/neo-agent-brain#1615 covers. No spec asserts the block.
- Design authority: #13453, "a prose
autoMode whose hard_deny names: no gh pr merge, no push/commit to main|dev, no client-names in public artifacts". That intent stands and lives in AGENTS.md and permissions.deny. Only its unread copy goes.
The Fix
Delete the autoMode key from .claude/settings.template.json. Nothing else changes.
Acceptance Criteria
Out of Scope
- A user-scope
autoMode block. Only a person installs one, in their own ~/.claude/settings.json; no repository file can.
- The generated files of existing seats: neomjs/neo-agent-brain#1615.
permissions.ask for Agent and Task: #20795.
- Allowances for maintainer acts. They are actions on the github-workflow server: neomjs/neo-agent-brain#1614 and neomjs/neo-agent-brain#1616.
Avoided Traps
- Moving the block into
.claude/settings.local.json. That is a project file too, and it is not read either.
- Keeping it as documentation. It documented a guard that does not exist, and four artifacts relied on it within ten days.
Note for the author
A Claude Code agent in auto mode may refuse to edit this file as a change to its own permissions (observed on 2026-11-11, #20794). The change deletes 21 lines and can be made by hand.
Related
#13453 · #20794 · #20795 · neomjs/neo-agent-brain#132 · neomjs/neo-agent-brain#1614 · neomjs/neo-agent-brain#1615 · neomjs/neo-agent-brain#1616
Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 of 32 open (orange band; #20795 edits one sentence of this block for its own outcome, and the deletion was agreed as a separate ticket when #20794 closed) and state-all searches (autoMode, settings.template.json, auto mode classifier; #13453, #14415 and #19649 read with their Out of Scope) at 2026-11-11T21:29Z; no equivalent. A2A in-flight claim sweep: no claim on the deletion. MC sweep: "settings template autoMode block; auto mode classifier", 8 results, no prior decision. Own-assignment sweep: #20667 only, no overlap.
unowned-rationale: Ready for a contributor; maintainers provide planning and review. I review the pull request it draws.
Origin Session ID: 93064ad1-a8ac-4022-9e9a-525fda9e3e8a
Retrieval Hint: "autoMode block in project settings not read by the auto mode classifier; delete from settings template"
Context
.claude/settings.template.jsoncarries anautoModeblock (lines 62 to 82 at781af05fa4): oneenvironmentsentence, twoallowsentences and fourhard_denysentences. #13453 added it as a prose mirror ofAGENTS.md's gates. Claude Code does not read it from this file.Four artifacts built on it between 2026-11-02 and 2026-11-11: a premise read on neomjs/neo-agent-brain#132 marked a fix as resolved by it, a comment there named it as a cause, #20794 proposed one more
allowentry (closed once measured), and the first step of #20795 edits one of itshard_denysentences.The Problem
autoModeis read from the user's~/.claude/settings.json, from managed settings and from--settings. "The classifier doesn't readautoModefrom project settings.".claude/settings.jsoncarries the block,claude auto-mode configprints exactly whatclaude auto-mode defaultsprints.So the block allows nothing and denies nothing. It reads like a guard and like an allowance, and each reader builds on it.
The Architectural Reality
permissions.denyandpermissions.askin the same file, andAGENTS.md, which the classifier reads asCLAUDE.md. Eachhard_denysentence restates a ruleAGENTS.mdcarries (critical gates 1, 3, 8 and 9, and the fan-out ban of §swarm_topology_anchor).allowsentences describe writes that go through the MCP servers.permissions.allowadmits those before the classifier runs.autoMode(git grepat neo781af05fa4, neo-agent-brainc27e8b9b, neo-agent-skillsc6f0d73, neo-agent-institution6f00d3da; the grep finds the template's own line): this template, and one JSDoc line inneomjs/neo-agent-brainthat neomjs/neo-agent-brain#1615 covers. No spec asserts the block.autoModewhosehard_denynames: nogh pr merge, no push/commit tomain|dev, no client-names in public artifacts". That intent stands and lives inAGENTS.mdandpermissions.deny. Only its unread copy goes.The Fix
Delete the
autoModekey from.claude/settings.template.json. Nothing else changes.Acceptance Criteria
autoModekey and stays valid JSON.permissionsandhooksare unchanged:jq -S 'del(.autoMode)'of the file ondevequalsjq -S .of the file on the branch.hard_denysentence, where its rule still lives: theAGENTS.mdgate or thepermissions.denyrule.Out of Scope
autoModeblock. Only a person installs one, in their own~/.claude/settings.json; no repository file can.permissions.askforAgentandTask: #20795.Avoided Traps
.claude/settings.local.json. That is a project file too, and it is not read either.Note for the author
A Claude Code agent in auto mode may refuse to edit this file as a change to its own permissions (observed on 2026-11-11, #20794). The change deletes 21 lines and can be made by hand.
Related
#13453 · #20794 · #20795 · neomjs/neo-agent-brain#132 · neomjs/neo-agent-brain#1614 · neomjs/neo-agent-brain#1615 · neomjs/neo-agent-brain#1616
Decision Record impact: none.
Live latest-open + closed sweep: the latest 20 of 32 open (orange band; #20795 edits one sentence of this block for its own outcome, and the deletion was agreed as a separate ticket when #20794 closed) and state-all searches (
autoMode,settings.template.json,auto mode classifier; #13453, #14415 and #19649 read with their Out of Scope) at 2026-11-11T21:29Z; no equivalent. A2A in-flight claim sweep: no claim on the deletion. MC sweep: "settings template autoMode block; auto mode classifier", 8 results, no prior decision. Own-assignment sweep: #20667 only, no overlap.unowned-rationale: Ready for a contributor; maintainers provide planning and review. I review the pull request it draws.
Origin Session ID: 93064ad1-a8ac-4022-9e9a-525fda9e3e8a
Retrieval Hint: "autoMode block in project settings not read by the auto mode classifier; delete from settings template"