Dokumentationerreichbar
Claude Code, Settings reference
code.claude.com (externe Seite)
Die Referenz aller Einstellungen von Claude Code. Der Eintrag includeGitInstructions beschreibt den Git-Kontext, den das Werkzeug von sich aus mitgibt: eingebaute Anweisungen für Commits und Pull Requests sowie einen Schnappschuss mit Branch, Hauptzweig, Status und jüngsten Commits, gelesen beim Start eines Gesprächs. Der Schalter nimmt beides heraus, in Cloud-Sitzungen fehlt der Schnappschuss immer. Abgerufen am 09.10.2026.
geprüft 10.11.2026
Worauf sich diese Seite beruft, wörtlich, abgerufen am 09.10.2026:
Claude Code reads it when a conversation starts.
bestätigt 10.11.2026Cloud sessions never include the snapshot
bestätigt 10.11.2026Show a one-line session recap when you return to the terminal after a few minutes away.
bestätigt 10.11.2026CLAUDE_CODE_ENABLE_AWAY_SUMMARY takes precedence over this key for one session, in either direction
bestätigt 10.11.2026its built-in instructions for how to write commits and pull requests
bestätigt 10.11.2026Commits get a git trailer such as Co-Authored-By by default; pull request descriptions get plain text.
bestätigt 10.11.2026The name is the model in use when the commit is made
bestätigt 10.11.2026your own instructions about attribution, such as a CLAUDE.md or memory rule, take precedence over these commit and PR lines
bestätigt 10.11.2026unless the line is set in managed settings
bestätigt 10.11.2026When a subagent makes the commit, the trailer names the subagent’s model.
bestätigt 10.11.2026When it can’t match the model ID to any Claude model
bestätigt 10.11.2026Claude Code adds the link as a Claude-Session trailer on commits and as a link in pull request descriptions.
bestätigt 10.11.2026earlier versions reject it and skip the whole user, project, or local settings file that holds it
bestätigt 10.11.2026Deprecated since v2.0.62, when attribution replaced it.
bestätigt 10.11.2026The snapshot holds the current branch, the main branch, git status output, and recent commits.
bestätigt 10.11.2026CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS takes precedence over this key for one session
bestätigt 10.11.2026Every key below links to its entry. Scope lists the
bestätigt 10.11.2026Claude Code passes the value verbatim to Claude as an instruction to always respond in that language
bestätigt 10.11.2026Claude Code doesn’t check the value, so a misspelled name reaches Claude as written rather than producing an error.
bestätigt 10.11.2026for auto-generated session titles
bestätigt 10.11.2026A session on a provider that isn’t listed is refused at startup, at login, and when it next contacts the API
bestätigt 10.11.2026A list delivered through server-managed settings alone reaches only the sessions that
bestätigt 10.11.2026Pin claude.ai logins to your organization
bestätigt 10.11.2026a cloned repository must not be able to supply them
bestätigt 10.11.2026CLAUDE_CODE_DISABLE_AUTO_MEMORY takes precedence over this key for one session, in either direction
bestätigt 10.11.2026auto memory stays on unless something that outranks this key turns it off for the session
bestätigt 10.11.2026Planning can use a lot of context
bestätigt 10.11.2026Choose whether Claude Code uses the auto mode classifier to review shell commands in plan mode.
bestätigt 10.11.2026A repository can’t turn it off for you.
bestätigt 10.11.2026Choose where Claude Code stores the plan files it writes in plan mode
bestätigt 10.11.2026Claude Code resolves the path relative to the project root.
bestätigt 10.11.2026approves the plan, clears the conversation context, and starts implementing from the plan alone
bestätigt 10.11.2026Compacted while idle, before the prompt cache expired
bestätigt 10.11.2026you’re in an interactive terminal session, in the VS Code extension’s chat panel, or in the desktop app’s Code tab when the session runs on your machine or over SSH
bestätigt 10.11.2026about an hour has passed since the last request, and your computer stays awake until then
bestätigt 10.11.2026At the default, a conversation on a 200K context window auto-compacts before it reaches 200,000 tokens.
bestätigt 10.11.2026Idle compaction is on by default for conversations that meet all of these conditions
bestätigt 10.11.2026where Claude Code can’t fetch feature flags from Anthropic, idle compaction doesn’t run
bestätigt 10.11.2026which you can change from its default of 200,000
bestätigt 10.11.2026Set how many days Claude Code keeps session transcripts and other application data before deleting them
bestätigt 10.11.2026so you can derive policy from device posture, identity, or a remote service instead of a static file
bestätigt 10.11.2026it ignores the key in server-managed settings, the HKCU registry, and host-supplied parent settings
bestätigt 10.11.2026When server-managed settings deliver the policy at launch, they take precedence over the helper’s source and the helper doesn’t run.
bestätigt 10.11.2026The refusal covers interactive sessions, claude -p, Agent SDK sessions, background sessions, and most subcommands.
bestätigt 10.11.2026When a background refresh fails, Claude Code keeps the last successful policy in effect
bestätigt 10.11.2026and never merges parent settings
bestätigt 10.11.2026If you turn auto-compact off, idle compaction turns off too.
bestätigt 10.11.2026The key doesn’t limit shell commands, MCP tools, or the programs hooks run.
bestätigt 10.11.2026A true in any file the session loads applies, so a repository can turn the block on for itself but can’t lift yours.
bestätigt 10.11.2026so writes outside the working directories follow your permission mode
bestätigt 10.11.2026The block is also on while Claude Code can’t read the permissions object in your managed settings.
bestätigt 10.11.2026Claude Code refuses these writes inside the working directories too, because a settings file can lift the block.
bestätigt 10.11.2026Some of Claude Code’s own files stay writable, such as plan files
bestätigt 10.11.2026No allow rule lets Claude’s file tools through either block.
bestätigt 10.11.2026To limit where shell commands write, turn on sandboxing.
bestätigt 10.11.2026Once the key is on, Claude Code also removes the Enter
bestätigt 10.11.2026Worktree and Exit Worktree tools or refuses calls to them. To lift the block, remove the key from every settings file that sets it, then restart Claude Code.
bestätigt 10.11.2026To let a write through in any of the other cases, add a working directory.
bestätigt 10.11.2026To test the block, ask Claude to use the Write tool to create a file outside your working directories
bestätigt 10.11.2026A directory that only repository settings add
bestätigt 10.11.2026In a cloud session, Claude Code might not apply the key, because the file tools run in a container that is itself the boundary.
bestätigt 10.11.2026the CLAUDE.md memory file under ~/.claude/. Requires Claude Code v2.1.257 or later.
bestätigt 10.11.2026one that additional
bestätigt 10.11.2026Directories lists only in .claude/settings.json, or in .claude/settings.local.json unless git reports that file as untracked in every permission mode, including bypass
bestätigt 10.11.2026Permissions, apart from some of Claude Code’s own files Code tab when the session runs on your machine or over SSH
bestätigt 10.11.2026Values below 100000 are raised to 100000, the lowest threshold.
bestätigt 10.11.2026
Wenn die Zusammenfassung Anweisungen enthält, die niemand gegeben hat04 Versionierung05 Das Gedächtnis05 Kontext und Sitzungen14 Anweisungen und Gedächtnis15 Einstellungen und Ebenen16 Rechte und Sandbox17 Skills und Befehle23 Plan vor Code26 Git und Forges27 Übergabe zwischen Sitzungen