Live data from Hacker News

Claude Code now supports hooks

docs.anthropic.com

141–150 of 184 posts

Re: Claude Code now supports hooks

#141
post #37

Earlier quoted context omitted.

That’s great. Regardless of the naysayers about AI hype in tech, it was a major development for general society even if this is all it ends up being.

It remains to be seen whether it's a net value once the VC firehose dries up and the true costs are revealed. It's quite possible that the profitable price is not worth it for most companies.

I'm pretty sure that the $100 / $200 plans are a net profit for Anthropic. Most users (including myself) don't come close to the usage limit.

I've been trying to max out the $100 plan and I have a problem where I run out of stuff to ask it to do. Even when I try to have multiple side projects at once, Claude just gets stuff done, and then sits idle.

Re: Claude Code now supports hooks

#142

I've been playing with Claude Code the past few days. It is very energetic and maybe will help me get over the hump on some long-standing difficult problems, but it loses focus quickly. Despite explicit directions in CLAUDE.md to build with "make -j8" and run unit tests with "make -j8 check", I see it sometimes running make without -j or calling the test executable directly. I would like to limit it to doing certain…

The AI definitely gets confused when there is a lot of stuff happening. It helps if you try to make the commands as easy as possible. Like, change 'make' so that '-j8' is default, or add scripts like make-check.sh that does 'make -j check', or add an MCP server that has commands for the most common actions (tell the AI to write an MCP server for you).

Hooks would probably help, I think you could add a hook to auto-reject the bot when it calls the wrong thing.

Re: Claude Code now supports hooks

#144
post #78

Earlier quoted context omitted.

Yea man, people say combine harvesters will eliminate agriculture jobs, but then who will operate these combine harvesters? Obviously every single manual farm laborer will just switch to being an operator of those. God, will we never move this discussion past this worthless argument? What value would there be in any of these automatization tools, be in in agriculture or AI, if it just made every single worker switch…

Barring population growth, there is essentially fixed demand for agriculture. For software we don’t know what the market will look like once everything about making it gets automated. Either we will churn out the same amount of software with fewer people, or the same amount of people will churn out larger amounts of software. Or maybe there will be even more people working on creating enormous amounts of software. I’…

If software becomes cheaper to make it’s not like every IT company in the world is running a cartel where they agree to just cut costs and leave the output the same. Someone will come and smash the competition with more or better features and the ones who didn’t invest into development will face pressure to acquire more talent again.

There really isn’t a diminishing return on executing great ideas. Almost all software projects have an essentially endless backlog of items that could be done. So I think it will be between 2. and 3. with people who really understand how software is built being even more in demand than ever since they act as multipliers in making sure the increased output is evolvable and maintainable.

Re: Claude Code now supports hooks

#145
post #10

This closes a big feature gap. One thing that may not be obvious is that because of the way Claude Code generates commits, regular Git hooks won’t work. (At least, in most configurations.) We’ve been using CLAUDE.md instructions to tell Claude to auto-format code with the Qlty CLI ( https://github.com/qltysh/qlty ) but Claude a bit hit and miss in following them. The determinism here is a win. It looks like the event…

FYI. Claude loves Java. I never have to reformat. It picks up my indentation preferences immediately and obeys my style guide flawlessly. When I ask it to perfect my JavaDoc it is awesome. Must be a ton of fabulous enterprise Java in the training set.

This is pretty much my experience with PHP/Laravel (on modern versions, 11/12, on legacy projects it has a hard time "remembering" it needs to use different syntax/methods to do things)

Re: Claude Code now supports hooks

#146
post #85

Earlier quoted context omitted.

Yea man, people say combine harvesters will eliminate agriculture jobs, but then who will operate these combine harvesters? Obviously every single manual farm laborer will just switch to being an operator of those. God, will we never move this discussion past this worthless argument? What value would there be in any of these automatization tools, be in in agriculture or AI, if it just made every single worker switch…

Only a few lucky ones will get the operator jobs, everyone else will queue at the job center.

Save people, not jobs. Alas, the powers that be prevent that.

Re: Claude Code now supports hooks

#147
post #114

Earlier quoted context omitted.

And we may get an ugly transitory period where a lot of programs go from being clearly hand made with some degree of care and some fine details that show the developer's craftsmanship, to awful prefab and brutalist software that feels inhuman, mass-produced, and nothing is really fit for the job but still shipped because it kind of works well enough. People go to museums to admire old hand-carved furniture and travel…

I think it's going to go the opposite way: we'll get a lot more custom made software, that fits exactly what a small customer needs. The code might be utter crap, the design might not be award winning, but it will be custom made to a degree that you can't customize your average Savas.

But "utter crap" isn't just an aesthetic issue - that can mean all kinds of bugs and malfunctions!

Re: Claude Code now supports hooks

#148
post #41

Earlier quoted context omitted.

Would you argue that Cursor (valued at $10B) is breaking Anthropic's terms by making an IDE that competes with their Canvas feature?

Cursor isn't building models trained with the outputs of Anthropic models (I think). That's what the ToS is forbidding.

That’s what everyone acts like the ToS forbids, but the language of the ToS as written is much more (infinitely) broad

Re: Claude Code now supports hooks

#149

Earlier quoted context omitted.

I kinda feel differently - it's more like how nowadays you have access to high-quality power tools at cheap prices, and tons of tutorials on Youtube that teach you how to do woodworking, and even if you can't afford the masterwork furniture made by craftsmen, you don't have to buy the shitty mass produced stuff - sure yours won't be as good, but it will be made to your spec. Moving on into a concrete software example…

Hence the transitory period. We went through decades of absolutely hideous slop, and now people are yearning for the past and learning how to make things that are aesthetically appealing, like the things that used to be common. I think we're looking at at least a decade of absolute garbage coming up because it's cheap to make, and people like things that are cheap in the short term. Then people will look back at when…

Don't talk about AI with those digital artists though, they will slaughter you for it. The discourse on GenAI in the digital art world (and gaming world, for that matter) has reached an absolutely deranged fever pitch that far outpaces the original valid points about copyright, compensation and intent that were there before. Now it's just screeching.

Re: Claude Code now supports hooks

#150

Earlier quoted context omitted.

Why is it that regular git hooks do not work with claude code?

When using Claude Code cloud, in order to create signed commits, Claude uses the GitHub API to create commits instead of the git CLI

Huh, I had not heard of claude code cloud before.

(Also almost swallowed my tongue saying that out loud)

Post reply on HN