chore: attribute agent commits to the bot identity

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
goodolclint-claude[bot]
2026-09-01 13:42:10 -05:00
parent f96511bbe0
commit c706315483
2 changed files with 19 additions and 0 deletions
+8
View File
@@ -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"
}
}
+11
View File
@@ -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