Claude curses at the Go compiler when writing a commit

Resolved 💬 3 comments Opened Mar 2, 2025 by tassa-yoniso-manasi-karoto Closed Mar 6, 2025

This is a weird one.

There is this thing in the Go language where the compiler won't let you compile a program that has a package imported and not used, although certain packages related to color printing / pretty printing are very useful to always have around for debugging. Because I don't have a fancy IDE, I tend to just leave a private placeholder function that uses sth of each pkg to prevent a compiler error:

``` go
func placeholder() {
color.Redln(" 𝒻* 𝓎ℴ𝓊 𝒸ℴ𝓂𝓅𝒾𝓁ℯ𝓇")
pp.Println("𝓯
* 𝔂𝓸𝓾 𝓬𝓸𝓶𝓹𝓲𝓵𝓮𝓻")
}

_(100% idiomatic best practices Go right here)_

And apparently, Claude noticed this pattern in my files, that there's always this cursing at the compiler, and when I asked it to write a commit, it cursed at the compiler [at the end of this commit](https://github.com/tassa-yoniso-manasi-karoto/langkit/commit/b58e6bd9ae3168d5aeb579fe699d0b6dc0c21302).

Additionally the "watermarking" with "🤖 Generated with [Claude Code]" has been added in at most  only half of my commits made by Claude Code so far.

edit: it kept on doing it so I instructed it not to do it in Claude.md. Should be enough.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗