Put in order · Vibe coding with Claude Code course · Module 15: Advanced Claude Code

Sorting: A manual trial of the Stop hook

Arrange a command that gives the hook JSON with the session directory and prints its exit code:

Items to put in order

  • jq -n --arg cwd "$PWD" '{cwd: $cwd}'
  • |
  • bash .claude/hooks/tests-untouched.sh
  • echo $?
  • ;

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