Skip to content

Hook

No editor has reviewed this definition yet, and search engines are not shown it until it is reviewed.

A command Claude Code runs automatically on a given event, such as before a tool call or after a file edit. It is used for formatting and checks, and needs care because it runs code on your machine.

In Arabic

الخطّاف

أمر يشغّله Claude Code تلقائياً عند حدث معين، مثل قبل استدعاء أداة أو بعد تعديل ملف. يُستعمل للتنسيق والفحص، ويحتاج حذراً لأنه يشغّل شيفرة على جهازك.

Also known as: hooks

See also

In the learning paths

All terms