[FEATURE] Automatic Co-authored-by attribution for Claude Code on the web
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
-
Environment variables - Setting
GIT_AUTHOR_NAME=usermakes 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 -
SessionStart hooks - Doesn't work reliably for web sessions, requires per-repo configuration
-
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
- User finds a bug while reviewing code on mobile
- Opens Claude Code on the web
- Asks Claude to fix and create a PR
- Current: Commit shows only "Claude Code"
- Desired: Commit shows Claude + Co-authored-by user
- User appears in contributor graphs and Git history
Additional Context
- Uses Git's standard
Co-authored-bymechanism - Works with GitHub/GitLab contributor stats
- Similar to how GitHub web UI attributes commits to authenticated users