Remove Claude Code branding from commit messages using output styles
I write about: Software architecture and engineering, Better software better. DDD, Scala and Rust
Search for a command to run...
I write about: Software architecture and engineering, Better software better. DDD, Scala and Rust
No comments yet. Be the first to comment.
In Claude Code, a skill is a modular function-like component that can process requests โ like /code-review or /commit. As of version 2.1.1, these skills can be directly invoked through slash commands. So a code-review skill can also be invoked direct...
I have been meaning to share more about my LLM workflows and tooling for a while, partly to have a reference for conversations, but mostly to learn in public. Agent Chisels is where I will be sharing the custom artefacts (primarily skills, with comma...
This year I bit the bullet and moved mail, calendar and drive from Google to Proton. Knowing that my family is not being profiled when, for example, I plan a doctor's appointment feels liberating. Sure, there were fun and useful technical improvement...
This is a short post to share a positive experience I had using an LLM agent to quickly add a feature to an existing personal CLI time-tracking application. Below, I describe how I added it using Zed, Opencode and Claude. To start, I wasn't even sure...
I have been writing "Today I Learned" posts (TILs) for a few weeks now and I started writing them as a complement to long form blogging. But I found myself spending 45-60 minutes, sometimes longer, per TIL instead of 15-25. This defeated the purpose ...
When Claude Code creates git commits for you, it automatically adds its own signature to every commit message, including a promotional link and co-author attribution. Personally I think this is pretty annoying but especially for professional work or team repositories you may prefer cleaner commit messages.
By default, Claude Code adds these lines to every commit:
๐ค Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Since version 1.0.81, Claude Code supports 'output styles' (here is my own summary). Output styles are configuration files that allow you to customise Claude Code's behaviour by modifying its system prompt (the internal instructions that control how Claude responds).
This feature allows us to remove Claude Code's behaviour of adding itself to every commit message.
co-authored-by Claude byline in git commits and pull requests. The default value of this setting is true. See settings.json and set the value to false.Start claude.
Create a new output-style using the /output-style:new command. Name it, I used no-claude-in-commit-msg.
Complete the creation wizard. The initial content you enter doesn't matter since we'll replace it entirely in the next step.
Locate the new output style file. Look for a .md file with your chosen name in the .claude/output-styles/ directory (either in your project folder or home directory) and open it in your text editor.
Replace the entire file content with a modified system prompt that excludes commit message branding. You have two options:
Manual approach: Find the system prompt yourself to remove Claude Code references
Ready-to-use version: Use my version based on the system prompt of Claude Code 1.0.85
If you're curious about the changes, view the diff showing exactly which lines were removed to eliminate Claude Code self-references in commits and pull requests.
Save the file.
In claude: /output-style should now show the updated style.
Now let's verify that our custom output style works as expected:
First, let's see what happens with the default output style:
> /output-style
โฟ Set output style to default
> commit changes
โญโโโโโโโโโโโโโโโ
โ Bash command
โ
โ git commit -m "chore(claude): Add default output
โ style configuration
โ
โ ๐ค Generated with [Claude Code](https://claude.ai/code)
โ
โ Co-Authored-By: Claude <noreply@anthropic.com>"
โฐโโโโโโโโโโโโโโโ
Notice the Claude Code branding and co-author attribution in the commit message.
Now let's switch to our custom output style and try the same operation:
> /output-style
โฟ Set output style to 'no-claude-in-commit-msg'
> commit changes
โญโโโโโโโโโโโโโโโ
โ Bash command
โ
โ git commit -m "chore(claude): set output style
โ to no-claude-in-commit-msg"
โฐโโโโโโโโโโโโโโโ
Nice! The commit message is now clean, containing only the actual commit description without any Claude Code references.
You've successfully customised Claude Code to remove its self-referential branding from commit messages. Your git history will now be cleaner and more professional, containing only the essential commit information without promotional content.
For more details on output styles, check the official documentation or my own summary.