
commitlint
Lint your commit messages for clean, readable, and automated repository histories.

The fastest polyglot Git hooks manager for high-performance engineering teams.

Lefthook is a high-performance Git hooks manager written in Go, designed to overcome the performance bottlenecks of legacy tools like Husky. By 2026, it has solidified its position as the preferred choice for massive monorepos and polyglot architectures due to its zero-dependency binary and parallel execution capabilities. Its architecture allows developers to run linters, tests, and security audits across multiple languages (Node.js, Ruby, Python, Go, etc.) simultaneously, significantly reducing commit times. Lefthook's technical superiority lies in its flexible configuration system, which supports local overrides (lefthook-local.yml) and remote configuration synchronization, ensuring that large engineering organizations can maintain consistent standards without forcing rigid local setups. It supports advanced features such as interactive mode for selective staging and glob-based filtering, making it an essential component of modern DevSecOps pipelines. As organizations shift toward 'Developer Experience' (DevEx) as a core metric, Lefthook provides the sub-millisecond overhead required to keep local development loops tight and frictionless while maintaining strict code quality and security gatekeeping.
Lefthook is a high-performance Git hooks manager written in Go, designed to overcome the performance bottlenecks of legacy tools like Husky.
Explore all tools that specialize in validate commit messages. This domain focus ensures Lefthook delivers optimized results for this specific requirement.
Explore all tools that specialize in automated linting. This domain focus ensures Lefthook delivers optimized results for this specific requirement.
Executes multiple scripts concurrently within a single hook group using Go routines.
Supports a 'lefthook-local.yml' file that merges with the primary configuration without being committed.
Can pull and sync hook configurations from a remote URL or a shared repository.
Allows users to interact with the console during hook execution (e.g., confirming deletions).
Advanced file matching patterns to run commands only on specific changed files.
Runs commands via direct system calls rather than wrapping everything in a shell unless specified.
Environment variable support (LEFTHOOK=0) and tag-based execution controls.
Install the Lefthook binary via package manager (npm, brew, or go install).
Initialize Lefthook in your repository root using 'lefthook install'.
Create or edit the 'lefthook.yml' configuration file in the project root.
Define a hook group, such as 'pre-commit' or 'pre-push'.
Specify commands within the hook group, including the 'run' and 'glob' parameters.
Configure 'parallel: true' for commands that do not have execution dependencies.
Add a 'lefthook-local.yml' to your .gitignore for developer-specific overrides.
Test the configuration by running 'lefthook run pre-commit' manually.
Commit the 'lefthook.yml' file to share the configuration with the team.
Integrate with CI/CD to ensure hooks are bypassed only when explicitly intended.
All Set
Ready to go
Verified feedback from other users.
"Users praise Lefthook for its extreme speed and lack of Node.js dependency, which is often a pain point in Ruby or Go projects."
Post questions, share tips, and help other users.

Lint your commit messages for clean, readable, and automated repository histories.

The ultimate open-source orchestration tool for code quality, security, and consistent delivery.

Run Kubernetes locally with a single command to streamline containerized application development.

The ultimate pull request automation engine for high-velocity engineering teams.

Harness delivers intelligent AI automation, so your team ships code faster, safer, and smarter.

Accelerate delivery and maintain code quality with an integrated, AI-powered DevSecOps code review workflow.

The industry-standard collaborative environment for AI-assisted code quality and streamlined peer reviews.

Automate Salesforce code analysis and embed it in your DevOps lifecycle to improve code quality and security.