Question · Vibe coding with Claude Code course · Module 8: Slack clone

Quiz: Where the Notification hook lives

Why do we save the Notification hook with osascript in ~/.claude/settings.json and not in the project's .claude/settings.json?

Answer options

  • Because hooks do not work in a project
  • Because only user settings support a matcher
  • Because the project file is read-only
  • Because the command depends on the system, and notifications are a personal setting that should not land in the repository

You can check the correct answer by solving this task in the CodeWorlds game.