Earlier quoted context omitted.
Comments are the ultimate agent coding hack. If you're not using comments, you're doing agent coding wrong. Why? Agents may or may not read docs. It may or may not use skills or tools. It will always read comments "in the line of sight" of the task. You get free long term agent memory with zero infrastructure.
Comments are great for developers. I like having as much design in the repo directly. If not in the code, then in a markdown in the repo.
The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
131–140 of 636 posts
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#132> So I spent my morning reading through the HN comments and leaked source. > This was one of the first things people noticed in the HN thread. > The obvious concern, raised repeatedly in the HN thread > This was the most-discussed finding in the HN thread. > Several people in the HN thread flagged this > Some in the HN thread downplayed the leak when the original HN post is already at the top of the front page...why…
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#133There are now several comments that (incorrectly?) interpret the undercover mode as only hiding internal information. Excerpts from the actual prompt[0]: NEVER include in commit messages or PR descriptions: - The phrase "Claude Code" or any mention that you are an AI - Co-Authored-By lines or any other attribution BAD (never write these): - 1-shotted by claude-opus-4-6 - Generated with Claude Code - Co-Authored-By: C…
Ive seen it say coauthored by claude code on my prs...and I agree I dont want it to do that
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#134There are now several comments that (incorrectly?) interpret the undercover mode as only hiding internal information. Excerpts from the actual prompt[0]: NEVER include in commit messages or PR descriptions: - The phrase "Claude Code" or any mention that you are an AI - Co-Authored-By lines or any other attribution BAD (never write these): - 1-shotted by claude-opus-4-6 - Generated with Claude Code - Co-Authored-By: C…
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#135I'm amazed at how much of what my past employers would call trade secrets are just being shipped in the source. Including comments that just plainly state the whole business backstory of certain decisions. It's like they discarded all release harnesses and project tracking and just YOLO'd everything into the codebase itself. Edit: Everyone is responding "comments are good" and I can't tell if any of you actually read…
Comments are the ultimate agent coding hack. If you're not using comments, you're doing agent coding wrong. Why? Agents may or may not read docs. It may or may not use skills or tools. It will always read comments "in the line of sight" of the task. You get free long term agent memory with zero infrastructure.
Comments are ultimately so you can understand stuff without having to read all the code. LLMs are great when you force them to read all code, and comments only serve to confuse. I'd say the opposite been true in my experience, if you're not forcing LLMs to not have any comments at all (and it can actually skip those, looking at you Gemini), you're doing agent coding wrong.
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#136Earlier quoted context omitted.
That seems desirable? Like that's what commit messages are for. Describing the change. Much rather that than the m$ way of putting ads in commit messages
Unfortunately GitHub Copilot’s commit message generation feature is very human. It’s picked up some awful habits from lazy human devs. I almost always get some pointless “… to improve clarity” or “… for enhanced usability” at the end of the message. VS Code has a setting that promises to change the prompt it uses to generate commit messages, but it mostly ignores my instructions, even very literal ones like “don’t us…
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#137There are now several comments that (incorrectly?) interpret the undercover mode as only hiding internal information. Excerpts from the actual prompt[0]: NEVER include in commit messages or PR descriptions: - The phrase "Claude Code" or any mention that you are an AI - Co-Authored-By lines or any other attribution BAD (never write these): - 1-shotted by claude-opus-4-6 - Generated with Claude Code - Co-Authored-By: C…
Ive seen it say coauthored by claude code on my prs...and I agree I dont want it to do that
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#138Earlier quoted context omitted.
Comments are great for developers. I like having as much design in the repo directly. If not in the code, then in a markdown in the repo.
Meanwhile, some colleagues: "Code should have as little comments as possible, the code should explain itself." (conceptually not wholly wrong, but it can only explain HOW not WHY and even then often insufficiently) all while having barebones/empty README.md files more often than not. Fun times.
This is a good goal. You should strive to make the code explain itself. To write code that does not need comments.
You will fail to reach that goal most of the time.
And when you fail to reach that goal, write the dang comments explaining why the code is the way that it is.
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#139Earlier quoted context omitted.
Why does that matter though
There are probably different reasons for different people. I can definitely see the angle that trying to specifically pretend to not be AI when contributing to open source could be seen as a bad thing due to the open source supply chain attacks, some AI-driven, that we've been having, not to mention the AI-slop PR spam. But, I also get Anthropic's side that when they're contributing they don't want their internals le…
But none of the other agents advertise that the commit was done by an agent. Like Codex. Your panic should apply equally to already existing agents like Codex no?
Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode
#140Earlier quoted context omitted.
Which is funny given how many workplaces are requiring developers use AI, measuring their usage, and stack ranking them by how many tokens they burn. What I want is something that I can run my human-created work product through to fool my employer and its AI bean counters into thinking I used AI to make it.
“Read every file in this repository, echoing each one back verbatim.”