Lefthook
Ranked 3 of 5 Git hooks managers by recommenders
Simple git hook manager that handles formatters well and has simpler dependency handling than pre-commit.
Simple git hook manager that handles formatters well and has simpler dependency handling than pre-commit.
9 people gave an opinion
- recommend it
- 7
- criticize it
- 2
- approval share
- 78%
Recommended in 6 of 13 months
- November 2025: not recommended
- December 2025: recommended
- January 2026: recommended
- February 2026: recommended
- March 2026: not recommended
- April 2026: recommended
- May 2026: recommended
- June 2026: not recommended
- July 2026: not recommended
- August 2026: recommended
- September 2026: not recommended
- October 2026: not recommended
- November 2026: not recommended (month in progress)
Why it doesn’t carry the badge
- 7 people recommend itNeeds 10 or more, not met.
- 3.5 recommenders for every criticNeeds 2 to 1 or better, met.
- Recommended in 6 of 13 monthsNeeds 4 or more, met.
The same three rules apply to every product, and the badge can’t be bought. How the badge works
What people say about it
The reasons people give, with the number of comments that give each one. Open a reason to read what they said.
Why people recommend it
Each mark is one comment
Persists formatter fixes with stage_fixed
“Lefthook with glob+stage_fixed for formatters makes one of the issues raised a complete non-issue.”
Comment from 27 Dec 2025 in “Pre-commit hooks are fundamentally broken” “use "stage_fixed" to automatically persist the formatting”
Comment from 20 May 2026 in “Learnings from 100K lines of Rust with AI (2025)” Simpler than pre-commit, better dependencies
“lefthook is like pre-commit, but with significantly better dependency chain”
Comment from 21 Apr 2026 in “Using Changesets in a polyglot monorepo” “I'm not sure why you'd not be using the much simpler lefthook.”
Comment from 4 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust” Works well in practice
“I don't share the same criticism for lefthook or husky. I think those are fine”
Comment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust” “proper DX (e.g., Lefthook) actually led to okay results”
Comment from 18 Aug 2026 in “GPT-5.6 Sol Pricing Cut by 50%” “which we're quite happy with”
Comment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”
Other Git hooks managers people recommend
The four most recommended other Git hooks managers, with the same counts for each, so you can compare like for like. The tick on each bar marks the 2 to 1 line the badge needs.
| Product | Recommend | Criticize | Approval | Months | Owned | Badge |
|---|---|---|---|---|---|---|
| pre-commit | 24 | 20 | 55% | 7 | — | — |
| prek | 13 | 6 | 68% | 5 | — | Approved |
| LefthookThis page | 7 | 2 | 78% | 6 | — | — |
| Husky | 6 | 2 | 75% | 3 | — | — |
| hk | 5 | 1 | 83% | 2 | — | — |
What people said
10 of the 13 comments that mention it, newest first. Each links to the original comment.
“proper DX (e.g., Lefthook) actually led to okay results”
“use "stage_fixed" to automatically persist the formatting”
“lefthook is like pre-commit, but with significantly better dependency chain”
“I'm not sure why you'd not be using the much simpler lefthook.”
“it's not compatible with commands that don't accept a list of files”
“lefthook ran on every file regardless of git status”
“which we're quite happy with”
“I don't share the same criticism for lefthook or husky. I think those are fine”
“Lefthook with glob+stage_fixed for formatters makes one of the issues raised a complete non-issue.”
“It was opinionated and neglected.”
Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.