Live data from Hacker News

Claude Code now supports hooks

docs.anthropic.com

171–180 of 184 posts

Re: Claude Code now supports hooks

#171
post #86

Earlier quoted context omitted.

>nothing is really fit for the job but still shipped because it kind of works well enough. This is true for most of the software these days (except for professional software like Photoshop and the like) without LLMs.

Exactly. As a non-software engineer, people talk about software as some fine art on here while my experience as a user is that most software basically sucks in one way or another.

Your experience is a perfect reflection of reality. Most software is not well done.

In trades I found people were very opinionated about the Right Way to do things, but we tended to cut corners constantly there as well. People who work in a craft seem to like the idea of doing things right more than they actually do things right in practice. We end up with gaps in our flooring, ugly solder joints in our plumbing, creaking decks, cracked concrete, and a cookie disclaimer that returns every time you refresh the page.

Re: Claude Code now supports hooks

#172

Earlier quoted context omitted.

Exactly. As a non-software engineer, people talk about software as some fine art on here while my experience as a user is that most software basically sucks in one way or another.

Your experience is a perfect reflection of reality. Most software is not well done. In trades I found people were very opinionated about the Right Way to do things, but we tended to cut corners constantly there as well. People who work in a craft seem to like the idea of doing things right more than they actually do things right in practice. We end up with gaps in our flooring, ugly solder joints in our plumbing, cre…

> In trades I found people were very opinionated about the Right Way to do things,

My experience of moving from tech to doing a lot of home renovations and dealing with hundreds of trades people is that it was just like tech. 90% of people in 90% of environments are just trying to make it work so they can collect their pay-cheque and go home.

High quality output in any domain is a result of stumbling across the 10% of genuinely passionate people, and creating the 10% environment for them to want to be passionate in. If you don't luck out with that, everything will still work, it'll just be a bit rough round the edges.

Re: Claude Code now supports hooks

#173

As an aside, people say AI will eliminate coding jobs, but then who will configure these hooks? Or think about adding such a feature? These kinds of tooling and related work will still be there unless AI evolves to the point that it even thinks of this and announces this to all other AI entities and they also implement it properly etc.

If programmers become 10x more productive but demand only grows by 5x, what will happen?

No one can tell what the exact multipliers are, but history has shown us that what happens is everyone gets richer.

Re: Claude Code now supports hooks

#174
I'm excited to see these improvements but, none of them are enough to make up for inconvenience of having to start a new conversation (/clear) after every task.

I've been using Gemini Code. The larger context window is big enough to work for a full session without having to /clear. It matters. Having to think so hard and conserve tokens with Claude is problematic.

Re: Claude Code now supports hooks

#175
post #108

I frequently have to remind Claude Code of the instructions in the CLAUDE.md file, as well as various general aspects of the code base. Maybe this will enable a fix

> Stop using early returns in void functions! It’s in the clause.md you shouldn’t do that in this project! Reading CLAUDE.md (22 seconds, 2.6k tokens..) You’re absolutely right!

Honestly patterns like these that can have a tool fix the LLM quirks seems powerful.

Re: Claude Code now supports hooks

#176
post #57

Earlier quoted context omitted.

Without Opus (larger model), for $20 you get only Sonnet. $100 and $200 plans have Opus.

100$ gets you very little opus

It's honestly so little opus that i'm not sure if $200 would be enough to be useful lol. I use a ton of Sonnet and if Opus was much better i might subscribe to the $200 plan, but it feels like Opus runs out so quick that the 5x to 20x usage would be pointless. Ie 4x (near)0 is still 0 to me.

Re: Claude Code now supports hooks

#177

As an aside, people say AI will eliminate coding jobs, but then who will configure these hooks? Or think about adding such a feature? These kinds of tooling and related work will still be there unless AI evolves to the point that it even thinks of this and announces this to all other AI entities and they also implement it properly etc.

To misuse a woodworking metaphor, I think we’re experiencing a shift from hand tools to power tools. You still need someone who understands the basics to get the good results out of the tools, but they’re not chiseling fine furniture by hand anymore, they’re throwing heaps of wood through the tablesaw instead. More productive, but more likely to lose a finger if you’re not careful.

Great analogy.

Although I still wonder how long we're in this phase and how ubiquitous it will be, because didn't power tools coincide with improved automation in factories eliminating manufacturing jobs?

Re: Claude Code now supports hooks

#178
post #68
post #47

Amazing how there's whole companies dedicated to this and yet claude code keeps leading the way.

Does it? Claude Code is the product that works the least well for me, mainly because of its tendency to go off and do tons of stuff. I've found LLMs are at their best when they produce few enough lines of code that I can review and iterate, not when they go off and invent the world. For that reason, I mainly use Aider and Cursor (the latter mostly in the "give me five lines" comment mode).

Have you tried Gemini CLI yet? :D It's even worse than Claude 3.5 was.

I asked it to check a few unit tests and it charged ahead by inventing features and started writing them - apologising profusely as it did so =)

Re: Claude Code now supports hooks

#179
post #68

Earlier quoted context omitted.

Does it? Claude Code is the product that works the least well for me, mainly because of its tendency to go off and do tons of stuff. I've found LLMs are at their best when they produce few enough lines of code that I can review and iterate, not when they go off and invent the world. For that reason, I mainly use Aider and Cursor (the latter mostly in the "give me five lines" comment mode).

I tell Claude Code to make a detailed implementation plan, then come back to me for discussion, then we step through the plan bit by bit together. It's all about guidelines. Don't want it to charge ahead? Tell it not to.

I had a very specific problem I wanted to solve, Opus kept being entirely sure that it knew what the problem was, and that it could fix it. Next iteration, when the previous solution didn't work, Claude was sure it was some other thing. So on and so forth, until I was $35 poorer and had a bunch of code that didn't really seem to do anything, and certainly not fix my problem.

Planning and discussion wouldn't have fixed that.

Re: Claude Code now supports hooks

#180
post #80

Earlier quoted context omitted.

I generally agree that "we" will still be needed, but OTOH, who needs prettier if no human is ever going to read the code?

How can you do quality assurance on code no one can understand?

You just have AI do the QA.
Post reply on HN