Claude Code CLI setup: settings scopes, permissions, hooks and subagents
Claude Code reads settings from four places, evaluates permission rules in a fixed order and runs hooks you define on tool events. Knowing which file wins and what a hook can block turns ad-hoc prompts into a repeatable team setup.