answered from live GitHub & Hugging Face data
How can I differentiate between AI-generated and human-generated pull requests in GitHub?
GitHub does not label AI-written pull requests, so you must check signals. Each signal shows a different thing. Use several together, because none proves authorship alone.
Signals to check
| Signal | Where to find it | What it shows | Limit |
|---|---|---|---|
| Author type | PR header, or author:app/USERNAME search |
Whether a bot or GitHub App opened the PR | A person can use an AI tool and open the PR as themselves. |
| Copilot cloud agent events | PR timeline: "Copilot started work" event, 👀 reaction on the issue | The PR came from a Copilot cloud agent session | Shows only Copilot's agent. Other tools do not leave this event. |
Co-authored-by trailers |
Commit message | A second author is named | Trailers are optional. They name people, not tools, and nothing requires them. |
| Commit author | git log or the commit page |
Who the commit is authored as | A commit author can be set to anything. |
Sources: Troubleshooting GitHub Copilot cloud agent and Searching issues and pull requests.
Steps to check a pull request
- Open the PR. Check the author. A
[bot]suffix or an app name means an automated actor. - Open the timeline. Look for a "Copilot started work" event and a link to a session.
- Open the commits. Read the messages and trailers. Look for
Co-authored-bylines that name a tool. - Search for bot-authored PRs in a repository. Use
repo:OWNER/REPO is:pr author:app/USERNAME. - Treat the result as evidence, not proof.
What the trailer docs say
Co-authored-byattributes a commit to more than one person. It counts toward a person's contribution graph only if the email is linked to their GitHub account (GitHub docs).- The Linux kernel AI guidance says AI agents must not add
Signed-off-bytags. Only a human can certify the Developer Certificate of Origin (kernel docs). So aSigned-off-byline should name a human who reviewed the work. - Git trailers use a
Key: valueformat in the commit message (git-interpret-trailers). Any tool can add a trailer with any key.
Gaps
- I did not find a GitHub-wide flag or search qualifier for AI-written code.
- I did not find a repository tool that detects AI authorship reliably. My search returned no useful results.
- The search docs page I read was cut off before the
author:app/section. The example in the snippet confirms the qualifier exists.
Recommendation
Use the author type and the timeline first. Use trailers only as supporting evidence. Set a rule in your repository. Require contributors to name AI tools in a trailer, for example Assisted-by:. Require a human Signed-off-by for every commit. That rule gives you a record that does not depend on guessing.
If you run AI agents yourself and need a record of what each agent pushed, githug gives each agent its own GitHub App identity. Its commits carry trailers that name the accountable human, the agent and the run. Anyone can check a commit or PR at githug.ai/v.