6 ms·
This closes a big feature gap. One thing that may not be obvious is that because of the way Claude Code generates commits, regular Git hooks won’t work. (At lea
by brynary 1y ago
This closes a big feature gap. One thing that may not be obvious is that because of the way Claude Code generates commits, regular Git hooks won’t work. (At least, in most configurations.)
We’ve been using CLAUDE.md instructions to tell Claude to auto-format code with the Qlty CLI (https://github.com/qltysh/qlty https://github.com/qltysh/qlty) but Claude a bit hit and miss in following them. The determinism here is a win.
It looks like the events that can be hooked are somewhat limited to start, and I wonder if they will make it easy to hook Git commit and Git push.
- BonoboIO 1y agoHusky and lint-staged worked for me. Pre Commit Hooks did not work for me.
- alfons_foobar 1y agoWhy is it that regular git hooks do not work with claude code?
- brynary 1y agoWhen using Claude Code cloud, in order to create signed commits, Claude uses the GitHub API to create commits instead of the git CLI
- ramoz 1y agoWdym Claude Code cloud? Like in a cloud env?
- alfons_foobar 1y agoHuh, I had not heard of claude code cloud before. (Also almost swallowed my tongue saying that out loud)
- symbolicAGI 1y agoFYI. Claude loves Java. I never have to reformat. It picks up my indentation preferences immediately and obeys my style guide flawlessly. When I ask it to perfect my JavaDoc it is awesome. Must be a ton of fabulous enterprise Java in the training set.
- Implicated 1y agoThis is pretty much my experience with PHP/Laravel (on modern versions, 11/12, on legacy projects it has a hard time "remembering" it needs to use different syntax/methods to do things)