#settings.json
7 articles
-
Fix Claude Code Bash timeouts and truncated output: BASH_DEFAULT_TIMEOUT_MS and bashOutputMaxChars
Why Claude Code's Bash tool stops at 2 minutes or cuts long output, and how to tune it with BASH_DEFAULT_TIMEOUT_MS, BASH_MAX_TIMEOUT_MS, and bashOutputMaxChars.
-
Pin environment variables in Claude Code's settings.json with the env key: precedence and pitfalls
How the env key in Claude Code's settings.json works: it overrides shell variables, applies to every session and subprocess, and when a saved change reaches a running session.
-
Remove or customize the Co-Authored-By trailer Claude Code adds to commits with the attribution setting
How to hide or rewrite the Co-Authored-By commit trailer and the PR attribution line with the attribution setting (commit, pr, sessionUrl), plus the deprecated includeCoAuthoredBy.
-
Stop Claude Code loading other teams' CLAUDE.md files with claudeMdExcludes
Keep a monorepo root or another team's CLAUDE.md out of your context with claudeMdExcludes: pattern syntax, which settings file to use, what cannot be excluded, and how to verify.
-
Turn off Claude Code auto memory or move it: autoMemoryEnabled and autoMemoryDirectory
What Claude Code's auto memory records and where, how to disable it with autoMemoryEnabled or CLAUDE_CODE_DISABLE_AUTO_MEMORY, how to relocate it, and the MEMORY.md load limit.
-
When Claude Code deletes transcripts: the cleanupPeriodDays default and how to change retention
Claude Code stores transcripts in plain text under ~/.claude. What cleanupPeriodDays does (default 30 days, minimum 1), what the sweep deletes and skips, and how to stop writing.
-
Claude Code permissions in settings.json: allow, deny and ask rules with real examples
Control what Claude Code may do without asking: allow / deny / ask rules in settings.json, the pattern syntax, scope precedence, and recommended setups for solo and team work.