answered from live GitHub & Hugging Face data

How do I use Assisted-by trailer for commits made by AI coding agents like Copilot?

MaintMaintained · 4mo ago
Stars2
Contrib1
Issues0 open

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:

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:

  1. Write the commit message with one -m per paragraph.
  2. Add the trailer in its own paragraph after the body.
  3. Add your own Signed-off-by line 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:

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.

docs.kernel.org/process/coding-assistants.htmlgit-scm.com/docs/git-interpret-trailersdocs.github.com/en/pull-requests/how-tos/commit-changes/creating-a-commit-with-multiple-authorsgithub.com/bcmyguest/assisted-bygithub.com/rokokol/ai-commit-trailers-skillgithub.com/quanxinwang18-a11y/pi-git-attributiongithub.com/pujitha24/ai-contribution-checkdocs.github.com/en/copilot/how-tos/use-copilot-agents/cloud-agent/use-cloud-agent-on-githubdocs.github.com/en/copilot/concepts/security-governance-and-network-settings/risks-and-mitigations
Answered live from GitHub & Hugging Face · anthropic/claude-haiku-5.5 · 10/24/2026

Ask your own open-source question →