lefthook
CLAUDE.md9k starsChanged 30 days agoMITView on GitHub
See AGENTS.md for build commands, directory map, and contribution rules. Tests — follow .agents/rules/unit_tests.md. Errors — wrap with fmt.Errorf("context: %w", err); use typed errors (structs implementing error) when callers need errors.As. Config structs — every field needs all four tags: json:"..." yaml:"..." toml:"..." mapstructure:"...". Add jsonschema tags for documented options. Run make jsonschema after any struct change. CLI commands — return *cli.Command from a factory function; action signature is func(ctx context.Context, cmd *cli.Command) error (urfave/cli/v3). Filesystem — use afero.Fs (never…
Files
CLAUDE.md
See AGENTS.md for build commands, directory map, and contribution rules.
Patterns
Tests — follow .agents/rules/unit_tests.md.
Errors — wrap with fmt.Errorf("context: %w", err); use typed errors (structs implementing error) when callers need errors.As.
Config structs — every field needs all four tags: json:"..." yaml:"..." toml:"..." mapstructure:"...". Add jsonschema tags for documented options. Run make jsonschema after any struct change.
CLI commands — return *cli.Command from a factory function; action signature is func(ctx context.Context, cmd *cli.Command) error (urfave/cli/v3).
Filesystem — use afero.Fs (never os directly) so tests can swap in a MemMapFs.
Key libs — koanf (config loading/merging), afero (FS), lipgloss/spinner (output), doublestar (glob).
Trending
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about evilmartians/lefthook
- @scottw.com“Follow up on running tasks like Brakeman and StandardRB more often. LeftHook is a better answer than …”Bluesky · Nov 18, 2024 · 6 likes
- @mikenikles.com“Wait until you learn about github.com/evilmartians... 😊”Bluesky · Apr 23, 2025 · 4 likes
- A Hacker News story“Lefthook: Fast, powerful Git hooks manager for any prooject”Hacker News · Jul 14, 2022 · 4 points
- @mikenikles.com“A few I use daily: • github.com/jetpack-io/d... • remult.dev • github.com/jesseduffiel... • …”Bluesky · Dec 26, 2024 · 3 likes
- @kivanio.bsky.social“Check this for more complex or detailed a scenario github.com/evilmartians...”Bluesky · Dec 13, 2024 · 3 likes
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on GitHub, Bluesky, Hacker News and Stack Overflow (62 times).
On GitHub · 50
- May 24, 2021`svType != tvType` during config merge when keys can have different types — spf13/viper3 reactions · 2 comments
- Feb 9, 2026chore(deps): bump the minor-and-patch group with 13 updates — gmickel/gno2 reactions · 22 comments
- Feb 2, 2026chore(deps): bump the minor-and-patch group with 19 updates — gmickel/gno2 reactions · 2 comments
- Jan 31, 2026chore(deps): bump the minor-and-patch group across 1 directory with 23 updates — gmickel/gno2 reactions · 2 comments
- Jan 26, 2026chore(deps): bump the minor-and-patch group across 1 directory with 18 updates — gmickel/gno2 reactions · 4 comments
45 more on GitHub
- Jan 14, 2026chore(deps): bump the minor-and-patch group across 1 directory with 15 updates — gmickel/gno2 reactions · 4 comments
- Jan 12, 2026chore(deps): bump the minor-and-patch group with 14 updates — gmickel/gno2 reactions · 4 comments
- Oct 26, 2026chore(deps-dev): bump the development-dependencies group across 1 directory with 4 updates — Yusaku01/somen1 reaction · 1 comment
- Oct 24, 2026chore(deps-dev): bump lefthook from 2.2.1 to 2.2.2 — voice0726/react-app-playground1 reaction · 1 comment
- Oct 22, 2026chore: Bump the "dependencies" group with 1 update across multiple ecosystems — tingoon/pisagor1 reaction
- Oct 22, 2026chore: Bump the "all-dependencies" group with 1 update across multiple ecosystems — tingoon/pisagor1 reaction · 1 comment
- Oct 22, 2026Update all non-major dependencies — Chiji1108/pochical1 reaction · 3 comments
- Oct 21, 2026build(deps-dev): bump lefthook from 2.2.1 to 2.2.2 — cortexkit/openai-auth1 reaction · 2 comments
- Oct 19, 2026chore(deps-dev): bump the development-dependencies group across 1 directory with 3 updates — Yusaku01/somen1 reaction · 3 comments
- Oct 19, 2026chore(deps): bump the npm-minor-and-patch group across 1 directory with 40 updates — softmeta/cocurdex1 reaction · 1 comment
- Oct 14, 2026chore(deps): bump lefthook from 2.1.16 to 2.2.1 — alec-c4/ffmpeg_core1 reaction · 2 comments
- Oct 13, 2026chore(deps-dev): bump the dev-dependencies group across 1 directory with 2 updates — sambulosenda/react-native-adaptive-layout1 reaction · 2 comments
- Oct 13, 2026chore(deps): bump the frontend-development group with 8 updates — Axcira/ktor-tanstack-router-template1 reaction · 1 comment
- Oct 7, 2026chore(deps): bump lefthook from 2.1.14 to 2.1.16 — alec-c4/ffmpeg_core1 reaction · 1 comment
- Oct 5, 2026chore(deps): bump the frontend-development group across 1 directory with 8 updates — Axcira/ktor-tanstack-router-template1 reaction · 1 comment
- Oct 5, 2026chore(deps-dev): bump the quality group across 1 directory with 13 updates — pmwasim/bizOS1 reaction
- Oct 1, 2026chore(deps-dev): bump lefthook from 2.1.10 to 2.1.14 — amitsingh-007/next-release-tag1 reaction · 1 comment
- Sep 28, 2026chore(deps): bump the frontend-development group across 1 directory with 9 updates — Axcira/ktor-tanstack-router-template1 reaction · 3 comments
- Sep 28, 2026chore(deps-dev): bump the quality group across 1 directory with 14 updates — pmwasim/bizOS1 reaction · 1 comment
- Sep 23, 2026chore(deps): bump lefthook from 2.1.12 to 2.1.14 — alec-c4/ffmpeg_core1 reaction · 1 comment
- Sep 17, 2026chore(deps-dev): bump lefthook from 2.1.9 to 2.1.14 — ex-machina-co/opencode-anthropic-auth1 reaction · 3 comments
- Sep 3, 2026chore(deps-dev): bump lefthook from 2.1.9 to 2.1.12 — ex-machina-co/opencode-anthropic-auth1 reaction · 3 comments
- Sep 2, 2026chore(deps-dev): bump @evilmartians/lefthook from 1.13.6 to 2.1.10 — signalfx/splunk-otel-react-native1 reaction · 2 comments
- Sep 2, 2026chore(deps): bump lefthook from 2.1.11 to 2.1.12 — alec-c4/ffmpeg_core1 reaction
- Sep 1, 2026chore(deps-dev): bump lefthook from 2.1.10 to 2.1.12 — amitsingh-007/next-release-tag1 reaction · 2 comments
- Aug 26, 2026chore(deps): bump lefthook from 2.1.10 to 2.1.11 — alec-c4/ffmpeg_core1 reaction
- Aug 8, 2026chore(deps): bump the dev-minor-patch group across 1 directory with 13 updates — juliopolycarpo/mangostudio1 reaction · 7 comments
- Jul 12, 2026chore(deps-dev): bump lefthook from 2.1.9 to 2.1.10 — kotaokubo/boarding_fee_-calculater1 reaction · 6 comments
- Jul 8, 2026chore(deps-dev): bump lefthook from 2.1.9 to 2.1.10 — gmickel/turborepo-shadcn-nextjs1 reaction · 2 comments
- Jun 14, 2026Dependency Dashboard — omarluq/diffdiff1 reaction · 1 comment
- May 20, 2026docs(precommit): add lefthook integration guide — prettier/prettier1 reaction · 1 comment
- Apr 29, 2026lefthook: 2.1.5 -> 2.1.10 — NixOS/nixpkgs1 reaction · 8 comments
- Apr 20, 2026chore(deps-dev): bump lefthook from 2.0.16 to 2.1.6 — gander-tools/playground-js-lib1 reaction · 5 comments
- Apr 14, 2026Automatically install pre-commit hooks — kumekay/cloner1 reaction
- Apr 9, 2026Publish it as an npm and python package to use it as a task runner in those ecosystems — jacobdeichert/mask1 reaction
- Mar 8, 2026build(deps-dev): bump the dev-dependencies group across 1 directory with 7 updates — onspot-travel/aviation-codes1 reaction · 1 comment
- Mar 1, 2026chore(deps-dev): bump lefthook from 2.0.13 to 2.1.2 — yk-lab/text2slack-mcp1 reaction · 4 comments
- Jan 19, 2026build(deps): bump the all-npm group across 1 directory with 56 updates — yacosta738/saas-template1 reaction · 1 comment
- Jan 18, 2026chore(deps-dev): bump lefthook from 2.0.13 to 2.0.15 — yk-lab/text2slack-mcp1 reaction · 5 comments
- Dec 21, 2025[Dev] lint-staged+husky から lefthook への移行を検討しましょう — AtCoder-NoviSteps/AtCoderNoviSteps1 reaction · 4 comments
- Oct 1, 2021Lefthook Git hook returning executable file not found in %PATH% — desktop/desktop1 reaction · 4 comments
- Apr 30, 2021Don't fail if snapcraft requires manual review of snaps — goreleaser/goreleaser1 reaction · 1 comment
- Oct 28, 2026Dependency Dashboard — tanzhongyan-org/template-go0 reactions
- Oct 24, 2026feat(tooling): Add Lefthook for pre-commit linting, formatting, and quality enforcement — luismiddleton/adt-ts0 reactions
- Oct 19, 2026Upstream watch: CI lint and scanner pins behind their latest releases — cordanaLLM/Aegis-OS0 reactions
On Bluesky · 10
- Nov 18, 2024Follow up on running tasks like Brakeman and StandardRB more often. LeftHook is a better answer than jamming them into my tests.… — @scottw.com6 likes and reposts · 1 reply
- Apr 23, 2025Wait until you learn about github.com/evilmartians... 😊 — @mikenikles.com4 likes and reposts · 1 reply
- Dec 26, 2024A few I use daily: • github.com/jetpack-io/d... • remult.dev • github.com/jesseduffiel... • github.com/evilmartians... • oxc.rs — @mikenikles.com3 likes and reposts · 1 reply
- Dec 13, 2024Check this for more complex or detailed a scenario github.com/evilmartians... — @kivanio.bsky.social3 likes and reposts
- Sep 6, 2025Have been setting up lefthook for plainban so I can do some TDD when refactoring the data model. It's a pretty nice, simple to use… — @fdavies93.bsky.social2 likes and reposts · 2 replies
5 more on Bluesky
- May 2, 2024見てる: "evilmartians/lefthook: Fast and powerful Git hooks manager for any type of projects." https://github.com/evilmartians/lefthook — @azu.bsky.social2 likes and reposts
- Sep 14, 2025pre-commitの代わりにlefthookが良さげ ・go製 ・並列実行可能 ・表示が比較的見やすい github.com/evilmartians... — @you10032.bsky.social1 likes and repost
- Jan 31, 2025github.com/evilmartians... I'm such a fan of this tool for handling git hooks and running actions like tests or lint on staged files before… — @linesofcode.bsky.social1 likes and repost
- Jan 12, 2025If you are using lint-staged and husky, consider giving lefthook a try. github.com/evilmartians... — @vnphanquang.com1 likes and repost · 2 replies
- Jul 3, 2025これ使ってみるかあ github.com/evilmartians... — @fqqk.bsky.social0 likes and reposts · 1 reply
On Hacker News · 1
- Jul 14, 2022Lefthook: Fast, powerful Git hooks manager for any prooject4 points
On Stack Overflow · 1
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

