I stopped Claude Code from writing "Co-authored-by" on my commits for good
retained text
I got a bit tired of having to instruct my AI Coding agents to not write they co-authored my commits. These tools often decided to ignore my instructions not to do so even after I put these in [`CLAUDE.md`](http://CLAUDE.md) or [`AGENTS.md`](http://AGENTS.md) `.` Each Agent harnas has their own settings to disable this, but somehow they decide to enable it by default, and somehow even after configuring the setting I still sometimes get this. In my opinion Claude Code, Codex, Copilot are all tools and not actually people that can be an author. But since these companies don't share my opinion I decided to build a tool to block them for good. A small open source repo with a pre-commit hook that checks each commit message before it is committed: [https://github.com/RamsesKools/no-ai-attribution](https://github.com/RamsesKools/no-ai-attribution) This follows a pattern that I keep rediscovering: if you want to force AI Agent behavior, then you have to build an environment where they have no chance to screw up, because you can't guarantee that they will follow your instructions.
document fetched 2026-09-15 00:41 · canonical https://reddit.com/r/ClaudeCode/comments/1wg7bvl/i_stopped_claude_code_from_writing_coauthoredby