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

Sorting: Hook lifecycle events

Put the hook events in the order they occur while using a tool in a session:

Items to put in order

  • SessionStart (at the start of the session)
  • PreToolUse (before a tool is used)
  • Stop (when Claude finishes its response)
  • PostToolUse (after a tool is used)

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