Paste this one-liner into Bash (requires Python 3):
python3 -c 'import json, os; from pathlib import Path; p = Path(os.environ.get("CLAUDE_CONFIG_DIR") or Path.home() / ".claude") / "settings.json"; p.parent.mkdir(parents=True, exist_ok=True); d = json.loads(p.read_text()) if p.exists() else {}; d.pop("includeCoAuthoredBy", None); d["attribution"] = {"commit": "", "pr": "", "sessionUrl": False}; p.write_text(json.dumps(d, indent=2) + "\n")'Updates $CLAUDE_CONFIG_DIR/settings.json when that environment variable is set, otherwise ~/.claude/settings.json. Creates the file if needed, preserves unrelated settings, removes deprecated includeCoAuthoredBy, and sets empty commit and PR attribution with sessionUrl disabled. Invalid existing JSON is left untouched. Restart Claude Code after applying.