Commit 2053f18
Require AI agents to attribute their GitHub comments (#1567)
* Attribute Claude-authored GitHub comments
gh posts comments as the authenticated user, making AI-generated
review/issue comments indistinguishable from the human's own. Requiring
a robot prefix keeps authorship transparent to reviewers.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Make AI comment attribution agent-agnostic
Per review, the Copilot-facing instruction file should not hard-code
"Claude" attribution. A generic prefix keeps both files correct for
whichever agent authors the comment.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Generalize comment-attribution rule to any authenticated user
Drops the hard-coded username so the guidance reads correctly for any
contributor whose gh account posts the comment.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* Tell agents to keep GitHub comments brief
Verbose AI comments add noise to PR threads; a brevity rule keeps them
scannable and pushes longer context into the PR description.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 3cb6b87 commit 2053f18
2 files changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
0 commit comments