Live data from Hacker News

The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

alex000kim.com

611–620 of 636 posts

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#611
post #89

A few weeks ago I was using Opus and Sonnet in OpenCode. Is this not possible anymore?

It's still possible but if you do it using your Claude Max plan, it's technically no longer allowed. They don't want you using your subscription outside of Claude Code. Only API key usage is allowed. Google also doubled down on this and OpenAI are the only ones who explicitly allow you to do it.

So I guess OpenAI get's my money.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#612
post #538

Earlier quoted context omitted.

>Also given we both managed to produce more than one sentence, and include capital letters in our comments, it's entirely possible both of us will be accused of being an AI. Could anyone explain the esoteric meaning of why people started doing that shit? I got a hypothesis, what's going on is something like this: 1. Prove you are human: write Like A Fucking Adult You Weirdo (internal designator for a specific languag…

What?

What?

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#613
post #523

Earlier quoted context omitted.

>Python doesn't have inbuilt types Technically, neither does JavaScript.

Well, nobody mentioned it technically. Like nobody mentioned Assembly but it is under the hood.

False analogy.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#614

Earlier quoted context omitted.

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.

Comments are great until they diverge from the code. The "no comments, just self-explanatory code" reaction comes from the trauma of having to read hundreds of lines of comments only to discover they have nothing to do with how the code actually works, because over time the code has received updates but the comments haven't. In that case it's better to just have no comments or documentation of any kind--less cognitiv…

So don’t do that.

I’m not saying comments are magic or anything. It takes work to keep them in sync with the code.

It’s a useful goal. Not a rule that gets you out in jail if yo fail.

It doesn’t mean you can blindly trust comments. I treat all code, and comments, with skepticism until I can understand and run it.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#615
post #456

Earlier quoted context omitted.

You may be a bit overconfident about how clear you will be with your comments. The “dipshit” doesn’t mess everything up for fun. They don’t understand the comments written by the previous “dipshit” and thus are unable to update the comments.

Oh really? I'm overconfident in my ability to write and read simple clear text notes? Here's what I think. I think you guys heard the "self-documenting code" BS and ate it up, and now you're grasping at straws to defend your cargo cult position, inventing these "problems" to justify it. If you're looking at some code and there's a comment saying something that doesn't make sense to you, maybe that's a clue that you'r…

I agree with and appreciate your comment.

I’ll also note that I’ve worked with developers who didn't like git blame because someone might misinterpret the results. I think some people want excuses for poor work, rather than just working as correctly as possible.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#616
post #340

Earlier quoted context omitted.

So if I use Claude to write the first pass at the code, make a few changes myself, ask it to make an additional change, change another thing myself, then commit it — what exactly do you expect to see then?

A Co-Authored-By tag on the commit. It's a standard practice and the meaning is self-explanatory. This is what Claude adds by default too.

I make the commits myself, I don't let Claude commit anything.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#618
post #380

Earlier quoted context omitted.

> that's their problem not mine IME unfortunately that's not actually the case. It very much is your problem, as the architect of the original system, unless you can get yourself transferred to a department far, far away. I've never managed that except by leaving the company. To be clear, I don't believe it should be this way, but sadly unless you work in an uncommonly well run company it usually is.

I really can't imagine this ever becoming a real problem. Not once have I ever worked in a place where any kind of leadership would ever give a shit about comments nor anything else in the code itself. The lowest level leadership has ever gone is click a button to see if it works. And if anyone has a problem with comments existing it's trivial to find/replace them out of existence. Literally a one minute job, if you…

Leadership doesn't need to give a shit about the code to cause the cultural defect that leads to comments not being maintained. All they need to do is set the conditions which prevent code owners from having the agency to reject shoddy work. In my experience this always happens. It can manifest as either:

(1) "flat" organization where everyone owns everything and therefore nobody has the authority to reject a PR

or (2) "rubber stamp" culture where people who reject shoddy work are "not a team player" and therefore performance defective.

So far every company I've worked at has one or both of these symptoms. Working in the confines of those systems, it's not an irrational choice to decide that comments and other forms of documentation aren't worth trying to maintain, and are therefore detrimental.

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#619

Earlier quoted context omitted.

If those tools are writing the code then in general I do expect that to be included in the PR! Through my whole career I've seen PRs where people noted that code that was generated (people have been generating code since long before LLMs). It's useful context unless you've gone over the generated code and understand it and it is the same quality as if you wrote it yourself (which in my experience is the case where it…

> people have been generating code since long before LLMs How? LSTM?

https://github.com/mame/quine-relay

Re: The Claude Code Source Leak: fake tools, frustration regexes, undercover mode

#620

Earlier quoted context omitted.

You do not apply for copyright. In the US you can, optionally, register a copyright. You do not have to, but it can increase how much you get if you go to court. I do not know whether any other country even has copyright registration. Your main point that this is something the courts (or new legislation) will decide is, of course, correct. I am inclined to think this is only a problem for people who are vibe coding.…

My (limited) understanding was that without formal registration you cannot file any infringement suits against any works protected by said copyright. Then what's the point of the copyright other than getting to use that fancy 'c' superscript?

I think you're wrong but I may be wrong too, so if you have a link that talks about this formal registration requirement it would be great.
Post reply on HN