Live data from Hacker News

Claude Code now supports hooks

docs.anthropic.com

11–20 of 184 posts

Re: Claude Code now supports hooks

#11
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 terminal game it competes with Claude?

Can their “trust and safety team” humans read everyone’s stuff just to check if we’re competing with LLMs (funny joke) and steal business ideas and use them at Anthropic?

Feels like the dirty secret of AI services is, every possible use case violates the terms, and we just have to accept we’re using something their legal team told us not to use? How is that logically consistent? Any safety concerns? This doesn’t seem like a law Asimov would appreciate.

It would be cool if the set of allowed use cases wasn’t empty. That might make Anthropic seem more intelligent

Re: Claude Code now supports hooks

#12

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?

Re: Claude Code now supports hooks

#14

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?

[deleted]

Re: Claude Code now supports hooks

#16
post #9
post #8

Exit Code 2 Behavior PreToolUse - Blocks the tool call, shows error to Claude This is great, it means you can set up complex concrete rules about commands CC is allowed to run (and with what arguments), rather than trying to coax these via CLAUDE.md. E.g. you can allow docker compose exec django python manage.py test but prevent docker compose exec django python manage.py makemigrations

You can already do this in .Claude/settings.json

Ah you’re right, but for more complex logic it’s useful to be able to run it through a custom script

Re: Claude Code now supports hooks

#18
post #13

This needs a way to match directories for changes in monorepos. E.g. run this linter only if there were changes in this directory.

An abstraction via a script should work, right? They document that it pipes the JSON data to your command's stdin,

  ```lint-monorepo.sh

  # read that data
  json_input=$(cat)

  # do some parsing here with jq, get the file path (file_path)

  if [$file_path" == "$dir1"*]
    run lint_for_dir1
  ```

Re: Claude Code now supports hooks

#19

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…

Oh come on, your CRUD app is not competing with an LLMaaS

Re: Claude Code now supports hooks

#20

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…

You’re only competing with them if you’re doing something they consider competitive. OpenAI is competitive, you are not
Post reply on HN