From 15f2d9164fcb53be9eb17feb83a4c9eb7677571d Mon Sep 17 00:00:00 2001 From: Deli Gong Date: Wed, 8 Jul 2026 17:36:49 +0800 Subject: [PATCH 1/2] Migrate cc-headless to the new attribution setting includeCoAuthoredBy is deprecated in Claude Code; replace it with the attribution object, disabling commit trailers, PR footers, and session links. --- cc-headless/.claude/settings.json | 6 +++++- cc-headless/README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cc-headless/.claude/settings.json b/cc-headless/.claude/settings.json index bad5878..2218167 100644 --- a/cc-headless/.claude/settings.json +++ b/cc-headless/.claude/settings.json @@ -1,6 +1,10 @@ { "model": "opus", - "includeCoAuthoredBy": false, + "attribution": { + "commit": "", + "pr": "", + "sessionUrl": false + }, "permissions": {}, "env": { "DISABLE_TELEMETRY": "1", diff --git a/cc-headless/README.md b/cc-headless/README.md index 4d79d92..6c74815 100644 --- a/cc-headless/README.md +++ b/cc-headless/README.md @@ -8,7 +8,7 @@ Configuration for running Claude Code with API keys instead of the default subsc - **Custom statusline** showing context usage, model, session count, directory, git info, and line changes - **Model preset** set to Opus -- **No co-authored-by** in commits (`includeCoAuthoredBy: false`) +- **No Claude attribution** in commits, PRs, or session links (`attribution` set to empty; replaces the deprecated `includeCoAuthoredBy`) - **Telemetry disabled** via `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` - **Onboarding bypassed** so Claude Code starts immediately From 30f8459e9e17fb432b7ac7a587dc9292409b7357 Mon Sep 17 00:00:00 2001 From: Deli Gong Date: Wed, 8 Jul 2026 21:32:55 +0800 Subject: [PATCH 2/2] Minimize cc-headless settings to current documented options Replace the four individual disable vars (DISABLE_TELEMETRY, DISABLE_ERROR_REPORTING, DISABLE_BUG_COMMAND, CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY) with the single umbrella CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, which covers all of them plus the autoupdater, and drop the empty permissions object, which is a no-op. This matches what the README already claimed the config does. --- cc-headless/.claude/settings.json | 6 +----- cc-headless/README.md | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/cc-headless/.claude/settings.json b/cc-headless/.claude/settings.json index 2218167..d14bdbf 100644 --- a/cc-headless/.claude/settings.json +++ b/cc-headless/.claude/settings.json @@ -5,12 +5,8 @@ "pr": "", "sessionUrl": false }, - "permissions": {}, "env": { - "DISABLE_TELEMETRY": "1", - "DISABLE_ERROR_REPORTING": "1", - "DISABLE_BUG_COMMAND": "1", - "CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY": "1", + "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1", "CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS": "1", "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000" }, diff --git a/cc-headless/README.md b/cc-headless/README.md index 6c74815..244b82e 100644 --- a/cc-headless/README.md +++ b/cc-headless/README.md @@ -9,7 +9,7 @@ Configuration for running Claude Code with API keys instead of the default subsc - **Custom statusline** showing context usage, model, session count, directory, git info, and line changes - **Model preset** set to Opus - **No Claude attribution** in commits, PRs, or session links (`attribution` set to empty; replaces the deprecated `includeCoAuthoredBy`) -- **Telemetry disabled** via `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` +- **Nonessential traffic disabled** — the single `CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC` variable covers telemetry, error reporting, the `/feedback` command, feedback surveys, and the autoupdater - **Onboarding bypassed** so Claude Code starts immediately ## Setup