Live data from Hacker News

Claude Code 2.0

npmjs.com

251–260 of 431 posts

Re: Claude Code 2.0

#251
post #250
post #249

It still bothers me that almost every agentic TUI is written in TS + React. It often consumes at least a few GB of RAM. No one bothers about it. Everybody is trying to ship as fast as possible.

Where did you get React from?

You can decompile it, but it's pretty well known that it uses TypeScript, React, and Ink. Same for gemini, codex and others.

Re: Claude Code 2.0

#252
post #249

It still bothers me that almost every agentic TUI is written in TS + React. It often consumes at least a few GB of RAM. No one bothers about it. Everybody is trying to ship as fast as possible.

I highly recommend Crush which is built with Go

The UX is definitely better because it uses the bubble tea library which is probably the best TUI framework ever

And you can use a ton of different providers and models

Re: Claude Code 2.0

#253
post #201

Earlier quoted context omitted.

Comments in code are instant technical debt. They need to be maintained alongside the code, so you are *programming" twice. Avoid comments, except when they really explain some obscure, incomprehensible section of code or to prevent explorers from the future getting smacked on the face twice by the same stick. I find myself using the latter often to tell future agents what not to do in the next few lines.

Comments are absolutely important. Your code answers ‘what’ but not why. Comments are for the why.

Most Claude Code comments answer the "what", or worse they answer the why in a way that makes no sense outside the context of that session. Stuff like adding a comment saying why they removed our changed code that they'd just written

Re: Claude Code 2.0

#254

Earlier quoted context omitted.

> When you use Claude Code, we collect feedback When they ask "How is Claude doing this session?", that appears to be a sneaky way for them to harvest the current conversation based on the terms-of-service clause you pointed out.

I have this same suspicion. Worse, there’s no way to opt out of giving a response.

If you turn off "Help improve Claude" you will never get this prompt (I never do).

https://claude.ai/settings/data-privacy-controls

Re: Claude Code 2.0

#255
post #226

Earlier quoted context omitted.

Wouldn't it stand to reason that they would provide a sort of utility for a collegue as they read through the generated code.

comments for me are a code smell: - like all documentation, they are prone to code rot (going out of date) - ideally code should be obvious; if you need a comment to explain it, perhaps it's not as simple as it could be, or perhaps we're doing something hacky that we shouldn't

Comments are often the best tool for explaining why a bit of code is formulated how it is, or explaining why a more obvious alternate implementation is a dead end.

An example of this: assume you live in a world where the formula for the circumference of a circle has not been derived. You end up deriving the formula yourself and write a function which returns 2piradius. This is as simple as it gets, not hacky at all, and you would /definitely/ want to include a comment explaining how you arrived at your weird and arbitrary-looking "3.1415" constant.

Re: Claude Code 2.0

#256
post #49

Something I realized about this category of tool (I call them "terminal agents" but that already doesn't work now there's an official VS Code extension for this - maybe just "coding agents" instead) is that they're actually an interesting form of general agent . Claude Code, Codex CLI etc can effectively do anything that a human could do by typing commands into a computer. They're incredibly dangerous to use if you d…

Something I've seen discussed very little is that Claude Code can be opened in a directory tree of any type of document you like (reports, spreadsheets, designs, papers, research, ...) and you can play around in all sorts of ways. Anthropic themselves hint at this by saying their whole organisation uses it, but the `Code` moniker is probably limiting adoption. They could release a generalised agent with a friendlier…

I have it master my music. I drop all the stems in a folder, tell it what I want, and off it goes to write a python script specifically for the album. It’s way better than doing it in the DAW, which usually takes me hours (or days in some cases). It can get it to 90% in minutes, only requiring some fine-tuning at the end.

Re: Claude Code 2.0

#257
post #49

Something I realized about this category of tool (I call them "terminal agents" but that already doesn't work now there's an official VS Code extension for this - maybe just "coding agents" instead) is that they're actually an interesting form of general agent . Claude Code, Codex CLI etc can effectively do anything that a human could do by typing commands into a computer. They're incredibly dangerous to use if you d…

They're only as dangerous as the capabilities you give them. I just created a `codex` and `claude` user on my Linux box and practically always run in yolo mode. I've not had a problem so far. Also, I think shellagent sounds cooler.

I tried this but it's incredibly annoying as you'll get a mixture of file ownerships and permissions.

Instead I run it in bubblewrap sandbox: https://blog.gpkb.org/posts/ai-agent-sandbox/

Re: Claude Code 2.0

#258

Earlier quoted context omitted.

Something I've seen discussed very little is that Claude Code can be opened in a directory tree of any type of document you like (reports, spreadsheets, designs, papers, research, ...) and you can play around in all sorts of ways. Anthropic themselves hint at this by saying their whole organisation uses it, but the `Code` moniker is probably limiting adoption. They could release a generalised agent with a friendlier…

I have it master my music. I drop all the stems in a folder, tell it what I want, and off it goes to write a python script specifically for the album. It’s way better than doing it in the DAW, which usually takes me hours (or days in some cases). It can get it to 90% in minutes, only requiring some fine-tuning at the end.

Wow, could you expand on this? What kind of effects can you get out of it? I’m somewhat skeptical that this could even come close to a proper mastering chain, so I’d be extremely interested to learn more :)

Re: Claude Code 2.0

#259

Earlier quoted context omitted.

I have this same suspicion. Worse, there’s no way to opt out of giving a response.

If you turn off "Help improve Claude" you will never get this prompt (I never do). https://claude.ai/settings/data-privacy-controls

i have that option switched off but still got the score card 1 to 5 yesterday while working on some code.

Re: Claude Code 2.0

#260
post #49

Something I realized about this category of tool (I call them "terminal agents" but that already doesn't work now there's an official VS Code extension for this - maybe just "coding agents" instead) is that they're actually an interesting form of general agent . Claude Code, Codex CLI etc can effectively do anything that a human could do by typing commands into a computer. They're incredibly dangerous to use if you d…

Instead of containers, which may not always be available, I'm experimenting with having control over the shell to whitelist the commands that the LLM can run [0]. Similar to an allow list, but configured outside the terminal agent. Also trying to make it easy to use the same technique in macOS and Linux

[0]: https://ricardoanderegg.com/posts/control-shell-permissions-...

Post reply on HN