Skip to content

Settings, policy, and integrations

This page maps settings, managed policy, helper scripts, and local integrations visible in the extracted runtime.

Use Settings schema reference for the canonical settings roots/key groups and Environment variables reference for env-var-only controls. This page owns the settings/policy/integration behavior narrative.

Source anchors

Semantic aliasSourceApproximate locationString or symbolMeaning
ProjectUserSettingsSchemacli.jsline ~185, byte 0x11b83b.claude/settings.jsonProject/user settings overlay schema text.
TranscriptRetentionSettingcli.jsline ~185, byte 0x11904ccleanupPeriodDaysTranscript retention setting.
ManagedUiPolicySettingscli.jsline ~185, byte 0x11a6b4disableAllHooks, statusLine, disableAgentViewManaged settings/policy surfaces for hooks/status/agent view.
RemoteControlPolicySettingcli.jsline ~185, byte 0x11a7e1disableRemoteControlManaged policy surface for Remote Control.
SkillShellPolicySettingcli.jsline ~185, byte 0x11a8f2disableSkillShellExecutionManaged policy surface for shell execution in skills/custom slash commands.
ApiKeyHelperSettingcli.jsline ~185, byte 0x118a65apiKeyHelperSettings helper script that outputs authentication values.
StatusLineSettingsMutationcli.jsline ~1593, byte 0x4eddc6~/.claude/settings.jsonStatus-line setup instructions mutate user settings.
SettingsInjectionFlagcli.jsline ~19525, byte 0xdc1cba--settings <file-or-json>Adds settings JSON file or inline JSON for a session.
IdeIntegrationFlagcli.jsline ~19525, byte 0xdc1e09--ideAuto-connect IDE integration flag.
ChromeIntegrationFlagcli.jsline ~19525, byte 0xdc2268--chromeChrome integration flag.
StartupFileResourceFlagcli.jsline ~19525, byte 0xdc22de--file <specs...>Startup file-resource download integration.

Settings layers

flowchart TD
User[~/.claude/settings.json] --> Merge[Settings merge]
Project[.claude/settings.json] --> Merge
Local[.claude/settings.local.json] --> Merge
Managed[managed settings / policy] --> Merge
Flags[--settings / --managed-settings / --setting-sources] --> Merge
Merge --> Runtime[Runtime config]
Runtime --> Tools[Tools and permissions]
Runtime --> Context[Prompt/context]
Runtime --> Integrations[IDE / Chrome / MCP / plugins]

Confirmed settings and policy groups

GroupExamplesRuntime implication
Settings roots~/.claude/settings.json, .claude/settings.json, .claude/settings.local.jsonUser, project, and local overlays participate in runtime config.
RetentioncleanupPeriodDaysControls chat transcript retention period.
Hooks/status linedisableAllHooks, statusLine, subagentStatusLineEnables/disables hook and status-line execution.
Remote/agent policydisableRemoteControl, disableAgentViewManaged policy can disable Remote Control and agent UI paths.
Skills/slash safetydisableSkillShellExecutionReplaces inline shell execution in skills/custom slash commands with placeholders.
Authentication helpersapiKeyHelper, proxyAuthHelperLets settings point to helper scripts for credentials/proxy auth.
Plugin/MCP configmcpServers, plugin marketplaces, output styles, hooksIntegrations can be contributed through settings and plugins.
IDE/Chrome/file resources--ide, --chrome, --fileAdds editor/browser/file startup integration surfaces.

Security interpretation

The settings schema exposes both capability-enabling and capability-disabling controls. This matters because the runtime accepts rich extension points—hooks, plugins, MCP, custom slash commands, status lines, helper scripts—but also exposes managed-policy switches that can disable or constrain those extension points.

Created and maintained by Yingting Huang.