←back to thread

Claude Code now supports hooks

(docs.anthropic.com)
381 points ramoz | 1 comments | | HN request time: 0.264s | source
Show context
jonstewart ◴[] No.44429973[source]
I've been playing with Claude Code the past few days. It is very energetic and maybe will help me get over the hump on some long-standing difficult problems, but it loses focus quickly. Despite explicit directions in CLAUDE.md to build with "make -j8" and run unit tests with "make -j8 check", I see it sometimes running make without -j or calling the test executable directly. I would like to limit it to doing certain essential aspects of workflow with the commands I specify, just as a developer would normally do. Are "Hooks" the right answer?
replies(2): >>44429993 #>>44435956 #
bfLives ◴[] No.44429993[source]
For the `-j` issue specifically, exporting `MAKEFLAGS=-j8` should work.
replies(2): >>44431140 #>>44431418 #
1. kaoD ◴[] No.44431418[source]
Thanks, I'll let Claude know.