# Hooks

Part of Harness tools by Baltor.

Scripts your harness runs before or after a step: block risky commands, check for secrets, enforce commit messages, and format or lint after an edit.

## What to watch for

- A hook runs with your permissions, so read its declared effects first.
- A pre-commit check is cheaper than a reverted push.
- Hooks that read secrets should only check for them, never print them.

## Components

- [block-dangerous.sh hook](https://baltor.ai/components/import-hook-block-dangerous-sh-b8417047dce8): The hook file block-dangerous.sh, from HarrisonHesslink/burnr8, with its licence and attribution. Name `block-dangerous.sh`, licence MIT, 3 files.
- [block-git-add-all.sh hook](https://baltor.ai/components/import-hook-block-git-add-all-sh-9c5f67973c57): The hook file block-git-add-all.sh, from me2resh/apexyard, with its licence and attribution. Name `block-git-add-all.sh`, licence MIT, 3 files.
- [check-secrets.sh hook](https://baltor.ai/components/import-hook-check-secrets-sh-679481dd2701): The hook file check-secrets.sh, from me2resh/apexyard, with its licence and attribution. Name `check-secrets.sh`, licence MIT, 3 files.
- [conventional-commits.sh hook](https://baltor.ai/components/import-hook-conventional-commits-sh-7040c184573e): The hook file conventional-commits.sh, from costajohnt/oss-autopilot, with its licence and attribution. Name `conventional-commits.sh`, licence MIT, 3 files.
- [format-python.sh hook](https://baltor.ai/components/import-hook-format-python-sh-62bf3a440437): The hook file format-python.sh, from oprogramadorreal/optimus-claude, with its licence and attribution. Name `format-python.sh`, licence MIT, 3 files.
- [lint-after-edit.sh hook](https://baltor.ai/components/import-hook-lint-after-edit-sh-4c0bbf162a44): The hook file lint-after-edit.sh, from HarrisonHesslink/burnr8, with its licence and attribution. Name `lint-after-edit.sh`, licence MIT, 3 files.
- [gate-git-commit.sh hook](https://baltor.ai/components/import-hook-gate-git-commit-sh-810f1c068a19): The hook file gate-git-commit.sh, from openstatusHQ/data-table-filters, with its licence and attribution. Name `gate-git-commit.sh`, licence MIT, 3 files.
- [check-versions.sh hook](https://baltor.ai/components/import-hook-check-versions-sh-8f8409e023b5): The hook file check-versions.sh, from costajohnt/oss-autopilot, with its licence and attribution. Name `check-versions.sh`, licence MIT, 3 files.

Your agent downloads these through Baltor with Pro, $49 a month: https://baltor.ai/get-started
