logoalt Hacker News

kay_o • yesterday at 11:03 PM • 2 replies • view on HN

For some reason claude code hates using the read/write/grep tools and defaults to complex sed, awk, grep Bash:* runs which results in always consistently ignoring auto mode due to the classifier not knowing what to do with a 10-line long bash pipe instead of a read + pre/post read and write hooks being ignored and not firing, what is up with that?


Replies

awfulneutral • yesterday at 11:48 PM

I don't understand this either, it makes commands really hard to parse. It seems like 90% of what claude does could be going through some mcp tool that could be easily sandboxed instead of bash gibberish.

➕ show 1 reply
dcrazy • yesterday at 11:29 PM

I use a hook to deny attempts to invoke `grep /` and `find /`, even as part of a complex pipeline.

➕ show 1 reply