compare
lefthook vs pre-commit
The same facts for both, read from GitHub every night, and the relation a person reviewed.
| Fact | lefthook | pre-commit |
|---|---|---|
| Language | Go | Python |
| Licence | MIT | MIT |
| Stars | 9.1k | 16k |
| Latest | v2.2.2 | v4.7.0 |
| Last push | 2026-11-16 | 2026-11-09 |
| Release cadence | about 3 days between releases | about 77 days between releases |
| Active contributors | 27 commit authors on the default branch in the last 90 days | 2 commit authors on the default branch in the last 90 days |
| Flags | none | none |
How they relate
lefthook replaces pre-commit. Alternatives to pre-commit →
Full replacementRuns hook commands in parallel, but uses tools you install instead of building an environment per hook.
Both replace husky. Alternatives to husky →
Full replacementlefthookOne lefthook.yml for all hooks, a single binary with no Node.js requirement.
Partialpre-commitLanguage-agnostic hooks installed from shared repositories, in Python rather than npm.
lefthook
- v2.2.22026-10-134aeffd72a6e3ea846c2054cffd6294c943fd7fbb fix: cleanup only current stash hash (#1597)
- v2.2.12026-10-086dd11f61f54595935746f9e0814c16844fc6d31b feat: support php composer (#1583)
- v2.2.02026-10-0746c65b3871dd96c81624f413b24b3d273b41a4e5 deps: October 2026 (#1571)
- v2.1.172026-10-058d8073d427fac49cc982919f5280b295645d196d fix: diff push files against the merge base with the default branch (#1565)
- v2.1.162026-10-013ee04318fd06d56a70cc9c90dc8385b19918f520 ci: refactor publishing scripts (#1559)
lefthook
✓ signed The latest release, v2.2.2, carries a signature GitHub verified.
Loading the security report
pre-commit
unsigned The latest release, v4.7.0, carries no signature GitHub could verify.
Loading the security report