Every agent merges settings from several layers, and a single project or local file can quietly widen permissions. Learn each vendor's precedence order, which keys a repository file can and cannot set, and how list values merge. Then diff the effective configuration on real machines against your baseline.
Read in this order
- OfficialSettings files and precedence (Claude Code docs)Start here: the layers, their precedence and how list values merge.
- OfficialDebug your configuration (Claude Code docs)How to see the effective configuration and trace where each value came from.
- OfficialConfiguration reference (OpenAI Codex docs)The Codex keys and layers, to build the same baseline diff there.