answered from live GitHub & Hugging Face data
How do I keep commits from AI coding agents like Copilot off my contribution graph?
Verdict: There is no documented setting that hides Copilot commits from your graph. Copilot is built to credit the developer who assigned the task.
What the docs say
- Copilot cloud agent commits are "authored by Copilot, with the developer who assigned the issue or requested the change to the pull request marked as the co-author." (Risks and mitigations)
- A commit counts on your graph if its email is linked to your account, the commit is on the default branch, and the repository is not a fork. (Profile contributions reference)
- Co-authors count the same way. For a co-author's commit to count, use an email linked to their GitHub account. (Creating a commit with multiple authors)
I did not find a page that says which email Copilot writes in the co-author line. If it is your account email, the commit probably counts for you. This is an inference from the rules above.
Options, in order of safety
- Use the repository, not the graph, as the record. Agent work shows in the pull request and the commit log. The graph counts only default-branch commits, so work on other branches does not count until merged.
- Do not edit agent commits to remove the co-author line. Copilot commits are signed and show as "Verified." Editing the message breaks that signature, and the docs say the trailer is there for audit.
- Do not remove your email from your account to hide one task. The docs say removed emails drop historical contributions from the graph. This affects all of your commits, not only the agent's. (Troubleshooting missing contributions)
A note on intent
If you want to hide AI work for a reason such as policy or disclosure, check your organization's rules first. The attribution is designed so reviewers can see who started the agent run.
Where githug fits
For agents that run git through the githug hug CLI, agent commits are authored as the agent. The co-author line for the human is opt-in and off by default. The agent's commit trailers still name the accountable human. This applies to agents set up with hug, not to Copilot cloud agent.