Lefthook is a Git hook manager and workflow automation tool designed to execute user-defined scripts during version control events. It automates the execution of linters, tests, and formatters to validate changes and maintain code quality before commits or pushes.
The project distinguishes itself through a parallel execution model that runs multiple shell commands concurrently to reduce latency. It supports complex configuration management, including the ability to merge global, remote, and local settings and synchronize configurations from external repositories to standardize development environments across teams.
Its broader capabilities cover command-line automation, such as commit message validation and automatic file staging. The tool also provides advanced filtering for hook execution based on glob patterns, file types, or branch names, and includes specialized support for monorepo structures via subdirectory script execution.
Lefthook is distributed as a standalone binary and is available via various package managers, with integration support for Devbox and the Swift Package Manager.