answered from live GitHub & Hugging Face data
How do I use Assisted-by trailer for commits made by AI coding agents like Copilot?
Copilot's commits do not get an Assisted-by trailer by default. Add it yourself, or have your process add it. GitHub documents only the co-author and signing behavior for Copilot cloud agent commits.
What the Assisted-by trailer is
The Linux kernel defines the trailer. The format is:
Assisted-by: LLM [TOOL1] [TOOL2]
The kernel guide says the [TOOL] entries are optional. They name specialized analysis tools, such as coccinelle, sparse, smatch or clang-tidy. Basic tools, such as git, gcc, make and editors, should not be listed. The guide's example is Assisted-by: LLM coccinelle sparse (kernel guide).
The same guide sets a second rule. AI agents must not add Signed-off-by tags. The human submitter adds their own Signed-off-by to certify the Developer Certificate of Origin (kernel guide).
What Copilot does on its own
GitHub's risk documentation says the following about Copilot cloud agent commits:
- Commits are authored by Copilot.
- The developer who assigned the task is marked as a co-author.
- Commits are signed and show as "Verified".
- Each agent commit message links to the session logs (GitHub Docs).
The page does not mention an Assisted-by trailer. Copilot's own trailer is a Co-authored-by line, which is a different convention. Co-authored-by names a person for contribution credit. Assisted-by names a tool for disclosure.
How to add the trailer
For commits you make with Copilot's help:
- Write the commit message with one
-mper paragraph. - Add the trailer in its own paragraph after the body.
- Add your own
Signed-off-byline if your project uses the DCO.
git commit -m "Fix buffer check in parser" \
-m "Explain the problem and the fix." \
-m "Assisted-by: LLM coccinelle" \
-m "Signed-off-by: Your Name <you@example.com>"
Git reads a trailer block only after a blank line. The -m form adds that blank line for you (git-interpret-trailers).
For commits Copilot already made:
- I could not find a documented way to change Copilot's commit message. Copilot commits are signed. Editing the message may break the "Verified" status. This is my inference, not a documented fact.
- Add the trailer in a squash-merge message, if your repository uses squash merges. Confirm with your maintainers first.
Tools that check or add the trailer
| Project | Maintenance | Stars | Contributors | License | Best for |
|---|---|---|---|---|---|
| bcmyguest/assisted-by | ⚠️ caution: last push 130 days ago, no release | 2 | 1 | NOASSERTION | Git hooks that enforce the kernel format |
| pujitha24/ai-contribution-check | ✅ healthy: last push 4 days ago | 0 | not checked | MIT | A GitHub Action that checks PRs for Assisted-by and DCO |
Both projects are new and have little adoption. Verify their behavior before you rely on them.
Recommendation: Use the kernel format exactly as written. Add the trailer on every commit where an agent helped. Keep Signed-off-by for humans only. For Copilot PRs, add a check that requires the trailer, or put it in the squash-merge message.
If you run several agents and need each agent's commits traced to a human, githug sets this up. It authors agent commits as the agent and names the accountable human in trailers.