Developer tools · git hooks manager
hk
A fast, drop-in replacement for pre-commit that runs fixers in parallel and stays out of the way. One critic says it lacks pre-commit's out-of-the-box support.
Summarized from 7 comments.
A fast, drop-in replacement for pre-commit that runs fixers in parallel and stays out of the way. One critic says it lacks pre-commit's out-of-the-box support.
- recommend
- 5
- criticize
- 1
- months recommended
- 2 of 13
Why people love it
Fast, safe parallel fixers · 2
hk uses read/write locks and other techniques like processing --diff output to safely run multiple fixers in parallel
Feb 2026 · commentpre-hooks manager that is actually fast and stays out of the way
May 2026 · comment
What hackers pick instead
- pre-commitRuns linters and checks on changed files before each commit, and the same definitions can run in CI. Critics say hooks break with history edits and cross-platform builds.24recommend
- prekRust reimplementation of pre-commit, compatible with existing hooks and faster, with monorepo support and no Python dependencies. Critics say it does not fix the underlying pre-commit hook problems.13recommend
- LefthookSimple git hook manager that handles formatters well and has simpler dependency handling than pre-commit.7recommend
- HuskySets up git hooks automatically when you install a project's dependencies, so hooks run for everyone on the team. Critics say it assumes a single tech stack and lacks out-of-the-box support that pre-commit offers.6recommend
Every quote
The 6 most detailed of 7 comments. Each links to the original.
hk uses read/write locks and other techniques like processing --diff output to safely run multiple fixers in parallel
Recommends · Feb 2026 · in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”
pre-hooks manager that is actually fast and stays out of the way
Recommends · May 2026 · in “Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs”
That sounds pretty cool! I will definitely take a closer look.
Recommends · Feb 2026 · in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”
it even deals with staged/unstaged HUNKS in the same file
Recommends · Feb 2026 · in “Prek: A better, faster, drop-in pre-commit replacement, engineered in Rust”
I see that hk has a flake, so that's a good sign.
Recommends · May 2026 · in “Claude Code as a Daily Driver: Claude.md, Skills, Subagents, Plugins, and MCPs”
they don't offer the out-of-the-box support that pre-commit does
Criticizes · Nov 2025 · in “Better pre-commit, re-engineered in Rust”
Counts from 1,795,640 Hacker News comments, Nov 2025 to Nov 2026. How we count · Report a mistake