de-claude
v1.0.0
Published
Remove Claude co-authorship attribution from unpushed git commits
Maintainers
Readme
de-claude
Remove Claude co-authorship attribution from unpushed git commits.
Installation
npm install -g de-claudeUsage
Run in any git repository:
de-claudeThis will:
- Find all unpushed commits with Claude attribution
- Show a preview of commits to be cleaned
- Ask for confirmation
- Remove the attribution lines and rewrite history
Options
--dry-run Show what would happen without making changes
-y, --yes Skip confirmation prompt
--verbose Show actual lines being removed
--range <range> Explicit commit range (e.g., HEAD~5..HEAD)
-h, --help Display help
-V, --version Display versionExamples
Preview changes without applying them:
de-claude --dry-runSee exactly which lines will be removed:
de-claude --dry-run --verboseSkip confirmation (useful for scripts):
de-claude --yesOnly process specific commits:
de-claude --range HEAD~3..HEADWhat it removes
Co-Authored-Bylines containing "Claude" or "@anthropic.com"🤖 Generated with [Claude Code]lines
Before
feat: Add user authentication
Implemented JWT-based auth flow with refresh tokens.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>After
feat: Add user authentication
Implemented JWT-based auth flow with refresh tokens.How it works
The tool uses git filter-branch to rewrite commit messages. It automatically detects:
- Tracking branch: Compares against your upstream (e.g.,
origin/main) - Feature branches: Finds commits since branching from main/master
- Local-only repos: Processes all commits on the current branch
Requirements
- Node.js 18+
- Git
License
MIT
