Live data from Hacker News

Claude Code now supports hooks

docs.anthropic.com

21–30 of 184 posts

Re: Claude Code now supports hooks

#21

Given the Anthropic legal terms forbid competing with them, what are we actually allowed to do with this? Seems confusing what is allowed. No machine learning work? That would compete. No writing stuff I would train AI on. Except I own the stuff it writes, but I can’t use it. Can we build websites with it? What websites don’t compete with Anthropic? Terminal games? No, Claude code is a terminal game, if you make a te…

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

Is Cursor using Claude code to build? Or they just allow it to plug into Claude?

Re: Claude Code now supports hooks

#24

Given the Anthropic legal terms forbid competing with them, what are we actually allowed to do with this? Seems confusing what is allowed. No machine learning work? That would compete. No writing stuff I would train AI on. Except I own the stuff it writes, but I can’t use it. Can we build websites with it? What websites don’t compete with Anthropic? Terminal games? No, Claude code is a terminal game, if you make a te…

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

Yes.

Re: Claude Code now supports hooks

#25

[flagged]

Yup, slowing down the AI is a really hard thing to do. I've mostly accomplished it, but I use extensive auto prompting and a large memory bank. All of it is designed explicitly to slow down the AI. I've taught it how to do what I call "Baby Steps", which is defined as: "The smallest possible change that still effectively moves the technology forward." Some of my prompting is explicit about human review and approval of every change including manual testing of the application in question BEFORE the model moves on to the next step.

Re: Claude Code now supports hooks

#26
So many people yearn for LLM's to be like the Star Trek ship computer, which when asked a question unconditionally provides a response relevant and correct, needing no verification.

A better analogy is LLM's are closer to the "universal translator" with an occasional interaction similar to[0]:

  Black Knight: None shall pass.
  King Arthur: What?
  Black Knight: None shall pass!
  King Arthur: I have no quarrel with you good Sir Knight, But I must cross this bridge.
  Black Knight: Then you shall die.
  King Arthur: I command you, as King of the Britons, to stand aside!
  Black Knight: I move for no man.
  King Arthur: So be it!
  [they fight until Arthur cuts off the Black Knight's left arm]
  King Arthur: Now, stand aside, worthy adversary.
  Black Knight: 'Tis but a scratch.
  King Arthur: A scratch? Your arm's off!
  Black Knight: No, it isn't.
  King Arthur: Well, what's that then?
  Black Knight: I've had worse.
0 - https://en.wikiquote.org/wiki/Monty_Python_and_the_Holy_Grai...

Re: Claude Code now supports hooks

#28
post #2

Really excited to see this implemented. Hooks will be important for "context engineering" and runtime verification of an agent's performance. This extends to things such as enterprise compliance and oversight of agentic behavior. Nice of Anthropic to have supported the idea of this feature from a github issue submission: https://github.com/anthropics/claude-code/issues/712

It is indeed. I don't use Claude Code. I use Cline which is a VS Code extension (cline.bot).

This is a pretty killer feature that I would expect to find in all the coding agents soon.

Re: Claude Code now supports hooks

#29

[flagged]

The key phrase is "Do not overengineer."

I say stuff like:

This code must be minimal.

Meet only the stated requirements.

Do not overengineer.

Create a numbered index of requirements.

Verify after you write the code that all requirements are met and no more.

Re: Claude Code now supports hooks

#30
Claude Code has basically grown to dominate my initial coding workflow.

I was using the API and passed $50 easily, so I upgraded to the $100 a month plan and have already reached $100 in usage.

I've been working on a large project, with 3 different repos (frontend, backend, legacy backend) and I just have all 3 of them in one directory now with claude code.

Wrote some quick instructions about how it was setup, its worked very well. If I am feeling brave I can have multiple claude codes running in different terminals, each working on one piece, but Opus tends to do better working across all 3 repos with all of the required context.

Still have to audit every change, commit often, but it works great 90% of the time.

Opus-4 feels like what OAI was trying to hype up for the better part of 6 months before releasing 4.5

Post reply on HN