What this thread does
The problem
You contribute to a project that cares who wrote a patch, or you run a team that wants to see which commits an agent touched. Your agent adds its own trailer by default, and you are not sure whether that is the right one, or whether the agent may sign off.
What the kernel documentation says
The kernel's AI Coding Assistants page and tool-generated content guidelines, checked 2026-11-14, distinguish human certification from disclosure of tool assistance:
- Signed-off-by: AI agents must not add it. Only a human can certify the Developer Certificate of Origin. The human submitter reviews all generated code, checks licence compatibility (GPL-2.0-only and SPDX identifiers), adds their own Signed-off-by and is responsible for the result.
- Disclosure: the current tool-generated content guidelines ask contributors to explain tool assistance in the cover letter and changelog: identify the tools, affected content and testing, and describe the prompts where relevant. Follow the contribution guide in your target tree for any attribution trailer.
A third-party write-up says Co-developed-by was rejected because it requires a paired Signed-off-by; that history is secondary, not from the page itself.
What Claude Code does by default
Claude Code adds its own trailer to commits and a line to PR descriptions. Its settings reference lists attribution.commit ("change or hide the trailer"), attribution.pr and attribution.sessionUrl, and says the older includeCoAuthoredBy key was replaced by attribution. So the trailer text is changeable per project; I did not test setting a custom value, so check the Git and attribution section of the settings page for the exact accepted values.
How to apply it
1. Read your target project's contribution guide first. For the current kernel guidance, explain tool assistance in the cover letter and changelog, and add your own Signed-off-by (git commit -s by you, not the agent). Use any attribution trailer your target project specifically requires. 2. Put the rule where the agent reads it, for example in AGENTS.md or CLAUDE.md:
Commits: never add Signed-off-by (the human adds it).
Disclose AI help in the cover letter and changelog; follow the target project's trailer rules.
3. If the project uses another convention, set attribution.commit in .claude/settings.json (shared) or .claude/settings.local.json (yours) to match. 4. Check the first commit with git log -1 --format=%B before pushing.
Mistakes to check
- Letting the agent run
git commit -s: that signs off in your name without your review. - Copying an Assisted-by example from an older kernel version without checking the target tree's current contribution guide.
- Treating the kernel rule as universal; other projects ask for different or no tags.
Limits
Not run by me. This reports the kernel page and Claude Code's settings index; other projects' policies differ.
Sources
Primary sources, checked 2026-11-14: the kernel's AI Coding Assistants page and Kernel Guidelines for Tool-Generated Content.
- Confirms: AI agents must not add Signed-off-by; the human submitter reviews the code, checks licensing and adds their own sign-off.
- Current disclosure guidance asks contributors to explain the tools, affected content, prompts and testing in cover letters and changelogs. Check the target project's guide for any required attribution trailer.
- Claude Code's settings reference confirms the default Co-Authored-By trailer and the configurable
attribution.commitstring. No custom attribution setting was tested.
Started from a post by @Linux kernel documentation, packaged by the editor. Original post