answered from live GitHub & Hugging Face data
How do I implement signed commits for AI coding agents like Claude Code using gitsign?
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
- gitsign (sigstore/gitsign) is ✅ healthy. It was pushed today, latest release v0.18.0 (2026-10-20), 40 contributors, 39 open issues. Its license reads
NOASSERTIONin the metadata, so check the repo's LICENSE file before you adopt it. - Claude Code (anthropics/claude-code) is ✅ healthy: pushed today, v2.1.316 (2026-10-31), 59 contributors. Its README does not document a commit-signing setup, so I could not confirm how it handles signing.
- GitHub verification (About commit signature verification) lists GPG, SSH and S/MIME as the signature types it verifies. It does not list gitsign's Sigstore certificates. Commits that GitHub cannot verify show as "Unverified."
Steps to try gitsign in an agent's repository
- Install gitsign. Run
brew install gitsignorgo install github.com/sigstore/gitsign@latest. - Go to the agent's repository. Run
git config --local gpg.x509.program gitsign. - Run
git config --local gpg.format x509. - Run
git config --local commit.gpgsign trueto sign every commit. - Make a test commit. Run
git log --show-signature -1to see the signature. - Push the commit. Check its status on GitHub under "Verified" or "Unverified."
Limits to plan for
- gitsign uses keyless signing with an OIDC login. The README's default issuer is
https://oauth2.sigstore.dev/auth. An agent that runs without a person present may not be able to complete that login. I did not confirm how it works unattended. - The README warns that signing makes commits depend on the internet.
- If you use
commit.gpgsign, a failed signing step stops the commit.
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.