claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[FEATURE] Automatic Co-authored-by attribution for Claude Code on the web

Open azu opened this issue 1 month ago • 0 comments

Preflight Checklist

  • [x] I have searched existing requests and this feature hasn't been requested yet
  • [x] This is a single feature request (not multiple features)

Problem Statement

When using Claude Code on the web ( https://claude.ai/code ), all commits are attributed only to Claude Code:

Author: Claude Code <[email protected]>
Committer: Claude Code <[email protected]>

This means:

  • The user who instructed Claude doesn't get credit in Git history
  • The user doesn't appear in GitHub's contributor stats
  • It's unclear who collaborated with Claude on the changes

Proposed Solution

Automatically add Co-authored-by to all commits created by Claude Code on the web:

feat: implement user authentication

Implemented JWT-based authentication.

Co-authored-by: user <[email protected]>

How it should work:

  • Detect user from the authenticated GitHub account
  • Automatically append Co-authored-by to every commit message
  • Works for both direct commits and PR creation

Alternative Solutions

  1. Environment variables - Setting GIT_AUTHOR_NAME=user makes commits appear as user, but causes GPG/SSH signature verification failures because web sessions can't access signing keys, resulting in "Upload your public signing SSH key to verify your signature." errors

  2. SessionStart hooks - Doesn't work reliably for web sessions, requires per-repo configuration

  3. Manual instruction - Must tell Claude "add Co-authored-by" every time, easy to forget

None of these work well for web-based sessions.

Priority

Critical - Blocking my work

Feature Category

Other

Use Case Example

  1. User finds a bug while reviewing code on mobile
  2. Opens Claude Code on the web
  3. Asks Claude to fix and create a PR
  4. Current: Commit shows only "Claude Code"
  5. Desired: Commit shows Claude + Co-authored-by user
  6. User appears in contributor graphs and Git history

Additional Context

  • Uses Git's standard Co-authored-by mechanism
  • Works with GitHub/GitLab contributor stats
  • Similar to how GitHub web UI attributes commits to authenticated users

azu avatar Jan 17 '26 01:01 azu