Live data from Hacker News

Claude Code now supports hooks

docs.anthropic.com

121–130 of 184 posts

Re: Claude Code now supports hooks

#121

I tried to make an app in claude code like they so much fanfare it could do, and it failed. It was obvious it will fail, I wanted something that I think it was not done before, using the Youtube api. But it failed nonetheless. I am tired of pretending that this can actually pull any meaningful work besides a debug companion or a slightly enhanced google/stackoverflow.

I build things that haven't been done before with Cursor all the time. You have to break it down into simple building blocks rather than specifying everything up front.

If you do it right this actually forces good design.

Re: Claude Code now supports hooks

#122
post #102

I tried to make an app in claude code like they so much fanfare it could do, and it failed. It was obvious it will fail, I wanted something that I think it was not done before, using the Youtube api. But it failed nonetheless. I am tired of pretending that this can actually pull any meaningful work besides a debug companion or a slightly enhanced google/stackoverflow.

Its definitely not there yet. You have to babysit it alot. Its not autonomous. The utility i find is that it helps _me_ do the real engineering work, the planning and solution architechting, and then can bang out code once it has rock solid instructions (in natural language but honestly one level above psuedocode) and then i have to review it with absolutely zero faith in its ability to do things. Then it can work we…

Exactly. My hunch is that those who try to find reasons why AI coding bad are either

* afraid that the demands on them in their job will increase * actually like and are attached to the act of writing out code.

Frankly I can sometimes empathize with both but their conclusions are still wrong.

Re: Claude Code now supports hooks

#123

I tried to make an app in claude code like they so much fanfare it could do, and it failed. It was obvious it will fail, I wanted something that I think it was not done before, using the Youtube api. But it failed nonetheless. I am tired of pretending that this can actually pull any meaningful work besides a debug companion or a slightly enhanced google/stackoverflow.

Use TDD so CC can converge. I see people tuning a prompt, that is fun, not software engineering.

Re: Claude Code now supports hooks

#124
post #113

Earlier quoted context omitted.

> they are 'fancy' enough to be able to write code yet at the same time they can't be trusted to do stuff which can be solved with a simple hook. Humans are fancy enough to be able to write code yet at the same time they can’t be trusted to do stuff which can be solved with a simple hook, like a simple formatter or linter. That’s why we still run those on CI. This is a meaningless statement.

One is a machine the other one is not. People have to stop comparing LLMs to humans. Would you hold a car to human standards?

The machine just needs to be coded to run stuff (as shown in this very post). My coworkers can’t be coded to follow procedures and still submit PRs failing basic checks, sadly.

Re: Claude Code now supports hooks

#125
post #113

Earlier quoted context omitted.

> they are 'fancy' enough to be able to write code yet at the same time they can't be trusted to do stuff which can be solved with a simple hook. Humans are fancy enough to be able to write code yet at the same time they can’t be trusted to do stuff which can be solved with a simple hook, like a simple formatter or linter. That’s why we still run those on CI. This is a meaningless statement.

One is a machine the other one is not. People have to stop comparing LLMs to humans. Would you hold a car to human standards?

A self driving car, yes.

Re: Claude Code now supports hooks

#126
post #96
post #74

>before this you had to trust that claude would follow your readme instructions about running linters or tests. hit and miss at best. now its deterministic. pre hook blocks bad actions post hook validates results. >hooks let you build workflows where multiple agents can hand off work safely. one agent writes code another reviews it another deploys it. each step gated by verification hooks.

This nicely describes where we're at with LLM's as I see it: they are 'fancy' enough to be able to write code yet at the same time they can't be trusted to do stuff which can be solved with a simple hook. I feel that currently improvement mostly comes from slapping what to me feels like workarounds on top of something that very well may be a local maximum.

Humans use tools, so does AI. Does us make any less valuable as humans because we use bicycles and hammers? Why would it be bad for an AI to use tools?

Re: Claude Code now supports hooks

#127
post #104

Earlier quoted context omitted.

Claude Code is an agent, not an LLM. Literally this is software that was released 4mo ago. lol. 1y ago - No provider was training LLMs in an environment modeled for agentic behavior - ie in conjunction with software design of an integrated utility. 'slapped on workaround' is a very lazy way to describe this innovation.

> Literally this is software that was released 4mo ago. Feels like ages

That's what a singularity feels like.

Re: Claude Code now supports hooks

#128

I tried to make an app in claude code like they so much fanfare it could do, and it failed. It was obvious it will fail, I wanted something that I think it was not done before, using the Youtube api. But it failed nonetheless. I am tired of pretending that this can actually pull any meaningful work besides a debug companion or a slightly enhanced google/stackoverflow.

I have a side project Android app. To test Claude Code, I loaded it up in the repo and asked it to add a subscription billing capability to the app. Not rocket science, but it probably would have taken me a day or two to figure out the mechanics of Google Play subscription billing and implement it in code.

Claude Code did it in 30 seconds and it works flawlessly.

I am so confused how people are not seeing this as a valuable tool. Like, are you asking it to solve P versus NP or something?

If you need to do something that's been done a million times, but you don't have experience with it, LLMs are an excellent way to get running quickly.

Re: Claude Code now supports hooks

#129
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…

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

Re: Claude Code now supports hooks

#130
post #74

>before this you had to trust that claude would follow your readme instructions about running linters or tests. hit and miss at best. now its deterministic. pre hook blocks bad actions post hook validates results. >hooks let you build workflows where multiple agents can hand off work safely. one agent writes code another reviews it another deploys it. each step gated by verification hooks.

I wonder how hard it is to create an alternate user account and have Claude run as that user instead?

A NYC bank has given its coding agents email addresses.
Post reply on HN