answered from live GitHub & Hugging Face data

How can I distinguish between pull requests from AI coding agents like Claude Code and human developers?

Verdict: You cannot reliably tell them apart from the PR author alone. Look at the bot account type first, then at commit trailers.

Signals by scenario

Scenario Where the agent shows up Reliable?
Hosted agent that runs as a GitHub App The PR author is a bot account. The type field is Bot in the API. Yes
Local Claude Code run from a developer's machine The commit author is the developer's own git identity. The PR author is the developer. No, unless trailers are present
Commit trailers naming an AI tool A Co-authored-by: or Assisted-by: line in the commit message. Only if the tool or team adds them

1. Check the account type for hosted agents.

2. Check commit trailers for local agents.

What does not work

Recommendation

  1. Filter PRs by type == Bot to find hosted agents.
  2. Scan commit messages for Co-authored-by and Assisted-by trailers to find local agents. Treat a missing trailer as "unknown", not "human".
  3. Require a human sign-off on any PR that matches an agent signal.

Choose the bot-account check if: the agent runs in the cloud or as a GitHub App. Choose the trailer check if: developers run agents on their own machines.

If you want agent commits to carry a verifiable record, githug does this. Its agents commit under their own identity. Agent commits carry trailers that name the accountable human, the agent and the run. The hug CLI sets this up and is free during the beta. Checks are available at githug.ai/v or through the githug-ai/verify GitHub Action.

docs.github.com/en/pull-requests/how-tos/commit-changes/creating-a-commit-with-multiple-authorsdocs.github.com/en/copilot/concepts/agents/anthropic-claudedocs.kernel.org/process/coding-assistants.htmlgit-scm.com/docs/git-interpret-trailersdocs.github.com/en/rest/users/usersdocs.github.com/en/rest/activity/eventsdocs.github.com/en/copilot/concepts/agents/about-third-party-coding-agents
Answered live from GitHub & Hugging Face · anthropic/claude-haiku-5.5 · 10/13/2026

Ask your own open-source question →