{"name":"CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG","slug":"claude-code-restrict-personal-config","family":"env","title":"Environment variables","noun":"environment variable","description":"Setting CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG stops your own skills, agents and hooks from widening permissions, and makes key hooks required","description_source":"entry","described_by":{"version":"2.1.295","anchor":"new-claude-code-restrict-personal-config-mode-limits-what-a"},"presence":{"first_seen":"2.1.295","removed_in":null,"in_current_build":true,"newest_mined":"2.1.295","builds":1,"mined_builds":138,"first_cited":{"version":"2.1.295","released_at":"2026-10-08 18:22:58","spans":9}},"aliases":[],"entries":[{"version":"2.1.295","anchor":"new-claude-code-restrict-personal-config-mode-limits-what-a","heading":"A new setting limits what your own skills, agents and hooks can do","line":"Setting CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG stops your own skills, agents and hooks from widening permissions, and makes key hooks required","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"},{"version":"2.1.295","anchor":"new-claude-code-restrict-personal-config-env-var-recognized","heading":"New CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG mode restricts your own Claude Code files","line":"Setting `CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG` starts a session that restricts your own Claude Code files, alongside the other restricted modes","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"},{"version":"2.1.295","anchor":"spawned-sessions-get-claude-code-restrict-personal-config1","heading":"Sessions started by Claude Code can inherit the restrict-personal-config mode","line":"Under a certain condition, Claude Code now sets `CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG` to `1` for the sessions it starts","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"},{"version":"2.1.295","anchor":"claude-code-restrict-personal-config-blocks-all-prompts-and","heading":"New option to block a session when your personal settings file is broken","line":"With `CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG` set, errors in your user settings file block every prompt and tool call until they are fixed","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"},{"version":"2.1.295","anchor":"claude-code-restrict-personal-config-blocks-agent-defined-mc","heading":"Restricted sessions block your own agents' MCP servers and cloud launches","line":"With CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG set, your own agents' MCP servers are skipped and launching an agent in the cloud is refused","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"},{"version":"2.1.295","anchor":"hook-output-is-restricted-for-personal-hooks","heading":"Your own hooks can no longer rewrite tool calls or answers in personal mode","line":"In a new personal mode, hooks from your own files can no longer change a tool call's input or certain tool results, and Claude Code says so","released_at":"2026-10-08 18:22:58","reason":"named in this entry"},{"version":"2.1.295","anchor":"cloud-agent-launch-refused-when-claude-code-restrict-persona","heading":"Cloud agents cannot be launched from a session that restricts personal config","line":"With `CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG` set, launching a cloud agent is refused and you are told to use worktree isolation","released_at":"2026-10-08 18:22:58","reason":"found in this entry's text, named in this entry"}],"entries_total":7,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"CLAUDE_CODE_RESTRICTED","slug":"claude-code-restricted","description":"New --restricted flag starts a locked-down session with no shell tools and no settings files."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/claude-code-restrict-personal-config","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}