Zacznij terazZacznij za darmo

Hooks

Read the article, then answer the question below.

You wrote a PreToolUse hook to stop a dangerous command. It spots the command correctly, writes a clear reason to standard error, and exits with code 1. You test it, and Claude runs the command anyway. The hook fired, the reason was printed, and nothing was blocked.

What went wrong?

To ćwiczenie jest częścią kursu

Claude Code in Action

Zobacz kurs

Interaktywne ćwiczenie praktyczne

Przekształć teorię w praktykę dzięki jednemu z naszych interaktywnych ćwiczeń

Rozpocznij ćwiczenie