Skip to content

meta(agents): Remove Claude co-author guidance#16803

Merged
szokeasaurusrex merged 4 commits intomasterfrom
szokeasaurusrex/remove-claude-attribution
Mar 5, 2026
Merged

meta(agents): Remove Claude co-author guidance#16803
szokeasaurusrex merged 4 commits intomasterfrom
szokeasaurusrex/remove-claude-attribution

Conversation

@szokeasaurusrex
Copy link
Member

DESCRIBE YOUR PR

These lines cause AI agents, other than Claude Code, to incorrectly attribute Claude in commit messages.

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

These lines cause AI agents, other than Claude Code, to incorrectly attribute Claude in commit messages.
@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment Mar 5, 2026 5:17pm
sentry-docs Ready Ready Preview, Comment Mar 5, 2026 5:17pm

Request Review


Use **pnpm**: `pnpm install`, `pnpm dev`, `pnpm build`, `pnpm test`

## Commit Attribution
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an explicit guideline to add this to every commit message, see:
https://github.com/getsentry/skills/blob/main/plugins/sentry-skills/skills/commit/SKILL.md#ai-generated-changes

We should simply improve it, so the note is not hardcoded to Claude

Copy link
Member Author

@szokeasaurusrex szokeasaurusrex Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all AI agents have a specific commit email address, e.g. Codex lacks one as far as I am aware. I guess this suggestion would work for Cursor, though.

Maybe we can register a bot account to indicate commits generated by other AI agents? Something like ai-agent-<xyz>@noreply.sentry.io?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, more fundamentally @stephanie-anderson -- if we already have this line in the skill (as you noted), then why should it also be included in AGENTS.md?

I think it is actually a bit redundant, and this guidance should just belong in the skill, and not be repeated here. Repeating here also means additional tokens/context are being used.

I don't feel super strongly about this, just want to question fundamental assumptions 😄

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think the AGENTS.md should hint to use the commit skill instead

@sergical
Copy link
Member

sergical commented Mar 5, 2026

There's already #16597 @armenzg are you okay with merging that?

@szokeasaurusrex
Copy link
Member Author

szokeasaurusrex commented Mar 5, 2026

@sergical I commented on #16597

My main complaint with that PR is it's adding a lot of text, which means the AGENTS.md will consume more context. And, this info is potentially redundant with the commit skill, as I discussed with @stephanie-anderson in the inline comment above

@sergical
Copy link
Member

sergical commented Mar 5, 2026

@szokeasaurusrex i agree that we want to minimize the default context loaded in every agent session, but removing all of attribution guidelines breaks it for Cursor, and Claude Code which are the defacto supported agents at Sentry.

Maybe the silver line is just having the 3 lines that are in https://github.com/getsentry/sentry-for-ai/blob/main/AGENTS.md#commit-attribution

- At the end of each plan, give me a list of unresolved questions to answer, if any.

## Pull Request generation
## Commit and Pull Request generation
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephanie-anderson does this look good?

@szokeasaurusrex
Copy link
Member Author

@sergical I have updated this PR to reference using the Sentry commit and PR skills which already contain the attribution line guidelines -- as folks should already be using that, I think this may be sufficient?

Copy link
Member

@sergical sergical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll also add the commit skill #16804 to make sure it's available if folks dont have it installed globally, what do you think?

@szokeasaurusrex
Copy link
Member Author

@sergical see my comment on that PR, but in general, I think that's a sensible direction 👍

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) March 5, 2026 18:16
@szokeasaurusrex szokeasaurusrex merged commit 5793bfb into master Mar 5, 2026
20 of 22 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-claude-attribution branch March 5, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants