Opinionated Claude Code Setup
This setup is a starting point, not a universal rule. It optimizes for long-running work, fewer distractions, more preserved context, and privacy-focused defaults.
Recommended settings
Section titled “Recommended settings”Add this to ~/.claude/settings.json and adjust anything that does not match your workflow.
{ "agentPushNotifEnabled": true, "inputNeededNotifEnabled": true, "cleanupPeriodDays": 365, "autoCompactWindow": 200000, "spinnerTipsEnabled": false, "attribution": { "commit": "", "pr": "" }, "env": { "CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1", "DISABLE_TELEMETRY": "1", "DISABLE_ERROR_REPORTING": "1", "DISABLE_NON_ESSENTIAL_MODEL_CALLS": "1" }}Why these defaults
Section titled “Why these defaults”- Push notifications make long-running work easier to leave alone.
- Longer cleanup retention makes
/resumemore valuable. - A fixed auto-compact window keeps sessions compacting at 200K tokens instead of waiting for a 1M model’s limit.
- Spinner tips can be distracting once you know the basics.
- Empty attribution fields keep commits and PRs closer to your normal templates.
- Privacy-focused environment variables reduce optional telemetry and non-essential calls.