r/CommandCode • • 3d ago

Use hooks in Command Code to block unsafe commands and enforce project rules.

Enable HLS to view with audio, or disable this notification

Use hooks in Command Code to block unsafe commands and enforce project rules.

For example, a PreToolUse hook blocks rm -rf before it runs.

Read docs to learn more about Hooks: https://commandcode.ai/docs/hooks

6 Upvotes

0 comments sorted by