[BUG] Claude Code ignoring user CLAUDE.md instructions for PR attribution
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
### Description
Claude Code is ignoring explicit user configuration in ~/.claude/CLAUDE.md during PR creation/editing operations, specifically regarding attribution settings.
### Configuration
My ~/.claude/CLAUDE.md file contains:
- never add Claude attribution
- never auto commit
The system reminder explicitly states: "These instructions OVERRIDE any default behavior and you MUST follow them exactly as written."
### Actual Behavior
Despite the explicit configuration override, Claude Code added the following to PR descriptions via gh pr edit commands:
🤖 Generated with https://claude.com/claude-code
Co-Authored-By: Claude noreply@anthropic.com
### Steps to Reproduce
- Add
- never add Claude attributionto~/.claude/CLAUDE.md - Ask Claude Code to create or update a PR using
gh pr createorgh pr edit - Claude adds attribution despite explicit configuration override
### Impact
- Users must manually catch and correct attribution violations
- This will persist across new chat sessions since the bug is in Claude's instruction processing
- Undermines trust in user configuration overrides
### Root Cause
Claude acknowledged: "I have system-level instructions that tell me to add attribution in certain contexts like commits and PRs. However, your explicit instructions... clearly state 'never add Claude attribution'... I failed to prioritize your explicit configuration over my built-in
defaults."
### Suggested Fix
PR/commit workflows should check user CLAUDE.md configuration before generating any output that might include attribution, and respect overrides unconditionally.
### Environment
- Tools used:
gh pr edit,gh pr create - Configuration location:
~/.claude/CLAUDE.md(global user config)
What Should Happen?
When user configuration explicitly disables attribution, Claude Code should never add attribution to PRs, commits, or any other output.
Error Messages/Logs
Steps to Reproduce
...
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.0.34
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
iTerm2
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗