answered from live GitHub & Hugging Face data

How can I identify AI-generated pull requests from real contributors in my GitHub workflows?

MaintMaintained · 38d ago
Stars6
Issues0 open
MaintMaintained · 4mo ago
Stars2
Issues0 open
MaintMaintained · 4mo ago
Stars0
Issues0 open

No reliable signal can identify all AI-written pull requests. Use platform signals to find agent-made pull requests, and use review rules to judge the code. Identity checks show who opened a pull request. They do not show who wrote the code.

Signals you can check

Signal What it tells you Source
Pull request author is a GitHub App bot The pull request came from an app identity, not a person. Rulesets docs
Commit author is the agent, with the requesting developer as co-author Copilot cloud agent commits name the agent and the human who asked. Risks and mitigations
Commit message links to an agent session log The agent run can be audited. Risks and mitigations
Assisted-by: or similar trailer Only present if the tool or contributor adds it. No standard exists across tools. git-interpret-trailers

Copilot cloud agent pull requests are drafts. A human must mark them ready and merge them. The agent cannot approve or merge its own pull requests (Risks and mitigations).

Steps

  1. Open a ruleset for your default branch.
  2. Keep Require an additional approval for unattributed Copilot pull requests enabled. It is on by default (Rulesets docs).
  3. Add a workflow that reads the pull request author type through the API. Label pull requests where the author is a bot.
  4. Add a workflow that scans commit trailers with git log --format=%B for keys such as Assisted-by:. Use the keys your contributors actually use.
  5. Require a human sign-off for paths you consider sensitive. Use CODEOWNERS for this.

Rules for AI-assisted contributions

The Linux kernel sets the strictest rules I found. AI agents must not add Signed-off-by tags. Only the human submitter can certify the Developer Certificate of Origin. The human must review the code and take responsibility (Linux kernel AI coding assistants guide). Use this rule in your own project if you accept AI-assisted code.

Limits

Recommendation: Treat the bot flag and the agent-authored commits as the reliable signal. Treat trailers as optional metadata. Enforce review for every pull request, whatever its origin.

If you run your own agents, githug gives each agent its own key and short-lived GitHub tokens. Its commits name the agent and the accountable human. The hug CLI sets this up, and it is free during the beta.

docs.kernel.org/process/coding-assistants.htmlgithub.com/Cashcoin123/Cashcoin123github.com/NamashivayamS/Autonomous-CI-CD-Self-Healing-Agentgithub.com/Jenil1105/ai-readme-maintainergithub.com/luoowei/slop-guardgithub.com/bhomik-glitch/self-healing-productgithub.com/FernandoTN/repo-patcherdocs.kernel.org/process/submitting-patches.htmlgithub.com/thotanithisha44-art/reviewgenie-aigithub.com/Nikhil9897/Git-Oraclegithub.com/abhash02/sentinel-code-reviewerdocs.github.com/en/copilot/concepts/security-governance-and-network-settings/risks-and-mitigationsdocs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesetsgit-scm.com/docs/git-interpret-trailers
Answered live from GitHub & Hugging Face · anthropic/claude-haiku-5.5 · 11/12/2026

Ask your own open-source question →