answered from live GitHub & Hugging Face data

How do I implement signed commits for AI coding agents like Claude Code using gitsign?

MaintActive · today
Stars1.1k
Releasev0.18.012d ago
Contrib40
Issues39 open
MaintActive · today
Stars154k
Releasev2.1.3162d ago
Contrib59
Issues16k open

Verdict: gitsign can sign an agent's commits, but GitHub may show them as "Unverified," and an unattended agent may not be able to sign at all. I could not confirm either point from GitHub's docs, so test before you rely on it.

What I checked

Steps to try gitsign in an agent's repository

  1. Install gitsign. Run brew install gitsign or go install github.com/sigstore/gitsign@latest.
  2. Go to the agent's repository. Run git config --local gpg.x509.program gitsign.
  3. Run git config --local gpg.format x509.
  4. Run git config --local commit.gpgsign true to sign every commit.
  5. Make a test commit. Run git log --show-signature -1 to see the signature.
  6. Push the commit. Check its status on GitHub under "Verified" or "Unverified."

Limits to plan for

Options compared

Option Attribution to the agent Verified on GitHub Unattended use Main cost
gitsign Signing identity is your OIDC identity Not confirmed Uncertain Login per session, or a cached credential
SSH signing key for the agent Key belongs to the agent Yes, if the key is added to the agent's GitHub account Yes Key rotation is your job
GitHub App bot Bot identity Yes, if the App signs through the API Yes Commits made through the API carry no custom author or signature data

GitHub's bot signing rule applies only when the request has no custom author or signature information (docs).

Recommendation: If you need GitHub to show a commit as "Verified," use an SSH signing key on a dedicated agent account. If you only need a cryptographic record, test gitsign first with the steps above.

Choose gitsign if you sign by hand and do not need the agent to sign alone. Choose SSH or a GitHub App if the agent must sign commits without a person present.

Note: githug gives each agent its own key. That key mints GitHub tokens that last one hour and work on one repository. Agent commits are authored as the agent, with trailers that name the accountable human and the run. Co-authored-by for the human is opt-in. Check githug for the current beta setup with hug init --repo owner/repo. This is a different signing path from gitsign, so it does not replace the steps above.

github.com/sigstore/gitsigndocs.github.com/en/authentication/managing-commit-signature-verification/about-commit-signature-verificationgithub.com/anthropics/claude-code
Answered live from GitHub & Hugging Face · anthropic/claude-haiku-5.5 · 11/2/2026

Ask your own open-source question →