Hacker ApprovedDepartments

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%
Each figure is one person. RecommendsCriticizes

Recommended in 6 of 13 months

  1. November 2025: not recommended
  2. December 2025: recommended
  3. January 2026: recommended
  4. February 2026: recommended
  5. March 2026: not recommended
  6. April 2026: recommended
  7. May 2026: recommended
  8. June 2026: not recommended
  9. July 2026: not recommended
  10. August 2026: recommended
  11. September 2026: not recommended
  12. October 2026: not recommended
  13. 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.

Lefthook compared with 4 alternatives
ProductRecommendCriticizeApprovalMonthsOwnedBadge
pre-commit242055%7——
prek13668%5—Approved
LefthookThis page7278%6——
Husky6275%3——
hk5183%2——
See all 5 Git hooks managers, ranked

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”

RecommendsComment from 18 Aug 2026 in “GPT-5.6 Sol Pricing Cut by 50%”

“use "stage_fixed" to automatically persist the formatting”

RecommendsComment from 20 May 2026 in “Learnings from 100K lines of Rust with AI (2025)”

“lefthook is like pre-commit, but with significantly better dependency chain”

RecommendsComment 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.”

RecommendsComment from 4 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”

“it's not compatible with commands that don't accept a list of files”

CriticizesComment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”

“lefthook ran on every file regardless of git status”

CriticizesComment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”

“which we're quite happy with”

RecommendsComment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”

“I don't share the same criticism for lefthook or husky. I think those are fine”

RecommendsComment from 3 Feb 2026 in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”

“Lefthook with glob+stage_fixed for formatters makes one of the issues raised a complete non-issue.”

RecommendsComment from 27 Dec 2025 in “Pre-commit hooks are fundamentally broken”

“It was opinionated and neglected.”

CriticizesComment from 19 Nov 2025 in “Better pre-commit, re-engineered in Rust”

Counts come from 1,795,640 Hacker News comments, November 2025 to November 2026. How we count. Report a mistake.