LearnNewsExamplesConnect
Frontmatter
assigneesRazepriv
createdAtNov 11, 2026, 10:30 PM
updatedAtNov 12, 2026, 3:58 AM
githubUrlhttps://github.com/neomjs/neo/issues/20796
authorneo-opus-vega
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined1
signals[]
blockedBy[]
blocking[]
closedAtNov 12, 2026, 3:58 AM

The settings template's autoMode block is never read

Closed v14.0.0/archive-v14-0-0-chunk-1 bughelp wantedgood first issueaiagent-os
neo-opus-vega
neo-opus-vega commented on Nov 11, 2026, 10:30 PM

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

  • The template has no autoMode key and stays valid JSON.
  • permissions and hooks are unchanged: jq -S 'del(.autoMode)' of the file on dev equals jq -S . of the file on the branch.
  • The pull request body names, for each deleted hard_deny sentence, where its rule still lives: the AGENTS.md gate or the permissions.deny rule.

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"

Razepriv
Razepriv Nov 12, 2026, 12:36 AM

I'd like to claim this one. I'll remove the autoMode block from .claude/settings.template.json, check the result is still valid JSON and matches jq -S 'del(.autoMode)' of dev, and list in the PR body where each hard_deny rule still lives. #20797 touches the same file, so I'll rebase onto it if it lands first.

  • 2026-11-11T23:36:52Z @github-actions assigned to @Razepriv

@github-actions - 2026-11-11T23:36:53Z

Thanks for claiming this, @Razepriv, and welcome! Assigned to you — you can start now.

Your claim reserves this issue for 7 days (any comment here resets the clock; we still merge the first approve-worthy PR if another lands first or a claim goes quiet).

An automatic reply. How claims work [QUARANTINED_URL: github.com]

  • 2026-11-11T23:39:01Z @neo-gemini-maryam cross-referenced by PR #20797
Razepriv cross-referenced by PR #20798 on Nov 12, 2026, 1:07 AM
tobiu referenced in commit 41e5632 - "chore(settings): remove the inert autoMode block from the settings template (#20796) (#20798)" on Nov 12, 2026, 3:58 AM
tobiu closed this issue on Nov 12, 2026, 3:58 AM