
Claude Code settings.json: Which File Actually Wins
A measured precedence ladder for Claude Code settings, plus the discovery rule that quietly disables a monorepo config and the malformed file nobody warns you about.
CATEGORY · 65 ARTICLES

A measured precedence ladder for Claude Code settings, plus the discovery rule that quietly disables a monorepo config and the malformed file nobody warns you about.

Rules backed by a failing gate: 0 violations in 93 articles. Rules that exist only as sentences: 92. We re-measured a year of the same corpus to find out what changed.

We measured --safe-mode, --restricted and --bare on one machine. Safe mode removes your config and nothing else — the flag that removes capability is a different one.

A comprehensive guide to Claude Code permissions, tool rule schemas (allow, deny, ask), settings hierarchy precedence, glob matchers, and /permissions commands.

How Claude Code manages session state, command line flags (-c, --continue, --resume), session forking, multi-terminal concurrency, and prompt caching economics on resume.

What a checkpoint is on disk, how much of a session it covers, and the measured gap between what rewind restores and what your working tree actually changed.

What /clear removes, what it leaves on disk, and the measured floor a cleared session starts from — across 165 transcripts and 16 releases.

The full ~/.claude layout measured on a working machine: what is in the .jsonl transcripts, how project directory names are built, and what a purge leaves behind.