Question · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Quiz: What stops a Stop hook

A Stop hook sends Claude back every time the tests are red, and Claude keeps trying new fixes. What will stop such a run?

Answer options

  • The limit of eight blocks in a row, which ends the run after the eighth red attempt
  • A hook that switches itself off after an hour of work
  • The --max-turns flag, because the block counter resets on every tool call
  • The /goal evaluator, which switches hooks off after 25 turns

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