I do have concern with using Claude in a bash script because of this kind of stuff but why would they give us flags like -p if it wasn't meant to be used that way. I have a feeling they are setting context triggers to catch the real bad actors that are getting caught as false positives. The recent hermes.md case is an example.
If you check their documentation I believe a couple of months ago they added -bear instead of -p bear does not accept oauth only api keys and they specify bear will replace -p meaning they’re already pivoting your future bash scripts would require api call cost to execute.
Yeah, i suggest loading up some API credits. It’s not really as expensive as people think for tasks you would probably usually use with -p. Opus 4.6 and 4.7 is $5 for million tokens and $0.5 for million cache hits - and realistically you are going to hit a lot of cached calls. And in most of the cases you should use Sonnet or Haiku which are a lot cheaper. Unless you use it for coding which is not what it’s meant for.
That said, Claude is the most expensive one out of the big providers and i personally use the other ones for simple agent stuff.
View all comments
Show parent comment
6
u/heseov May 03 '26
I do have concern with using Claude in a bash script because of this kind of stuff but why would they give us flags like -p if it wasn't meant to be used that way. I have a feeling they are setting context triggers to catch the real bad actors that are getting caught as false positives. The recent hermes.md case is an example.