From c7063154836790b943bde2d10e60e5a619911f9b Mon Sep 17 00:00:00 2001 From: "goodolclint-claude[bot]" <323206664+goodolclint-claude[bot]@users.noreply.github.com> Date: Tue, 1 Sep 2026 13:42:10 -0500 Subject: [PATCH] chore: attribute agent commits to the bot identity Co-Authored-By: Claude Opus 5 (1M context) --- .claude/settings.json | 8 ++++++++ CLAUDE.md | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .claude/settings.json diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..f4d957c --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,8 @@ +{ + "env": { + "GIT_AUTHOR_NAME": "goodolclint-claude[bot]", + "GIT_AUTHOR_EMAIL": "323206664+goodolclint-claude[bot]@users.noreply.github.com", + "GIT_COMMITTER_NAME": "goodolclint-claude[bot]", + "GIT_COMMITTER_EMAIL": "323206664+goodolclint-claude[bot]@users.noreply.github.com" + } +} diff --git a/CLAUDE.md b/CLAUDE.md index d217a8a..552d192 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -27,6 +27,17 @@ git push -u origin feat/my-feature gh pr create ``` +### Agent commit identity + +`.claude/settings.json` sets `GIT_AUTHOR_*` / `GIT_COMMITTER_*` to +`goodolclint-claude[bot]`, so commits made from an agent session are attributed to the App +rather than to the operator. The push itself is an ordinary local `git push` over the +operator's SSH key — the env vars change authorship, not transport. No `Co-Authored-By` +trailer is needed when they are in effect. + +The env block applies at session start, so a session that predates this file still commits +as the operator. + ### Dev container (recommended) A Docker-based dev environment replicates the full CI setup locally. Works on ARM Macs