Running a shell script isn't itself a model call. A hook that sends a long message back into context can add tokens; one that just checks a condition and exits quietly is a different case.
Guessing you've never had claude's python scripts straight up delete half of a document before... or get in an infinite loop waiting for a thing which has already completed.
The first one, probably, but Claude restores it from the repo so it's not really an issue. The second one, about once a week, but the idle wait doesn't waste tokens, which are the bottleneck for me, so it isn't a big deal either.
Try making it ssh on a colab machine and run jobs there. 95% of the time it is impeccable. But it gets it wrong sometimes. And ive only noticed it with colab
Most of the time it'll correct itself so you'd never notice if you aren't reading the commands it's running but it's constantly making "oops" mistakes whether that's broken scripts or failed commands etc..
It makes broken scripts on the first try less frequently than a human would so I don’t really see it as an issue. Usually the script to edit files will use less significantly less tokens then editing manually
Any tips for setting up my proxmox family server with llm agents and a harness? I have limited time because of work and other projects, but Microsoft are dicks and nuked some services I was relying on. My only option is to replicate them on my half abandoned overkill proxmox system.
Generally I am looking to use 3 4tb drives that I have for storage and backup. Two of them mirrored as zfs on the server and the third one as a backup at another location.
Honestly if you're using Claude, I have it create a plan for what you need and then have it deploy that on the proxmox server. I have Claude ssh into mine to do changes. It's a homelab setup so I can deal with small issues
Sounds good. How do you protect yourself during the initial stages of the setup from stuff like the dreaded misuse of rm? I will set up backups once everything is set and in place of course, though I am going to be adjusting a system I set up manually about two summers ago, not starting from scratch.
I will be using antigravity in one way or another, by the way.
You can setup permissions in automode for rm, I have it set so that it prompts me in Claude code to approve before it runs the command. Usually I ask it to check the system so that it knows config context, hardware setup etc. when it needs sudo I have it create scrips that I need to run manually instead of executing everything itself. So far no issues at all, but after initial setup coding in a container is pretty safe.
Never had the first one actually, Claude is obsessed with backups. Half the time I can't get him to delete anything, he'll refuse and make me a a script to run myself that does it.
I've had Deepseek do it, the Claude supervisor restored from backups half an hour later and I learned about it through a footnote in my daily summary the next day.
The amount of third/fourth tries my Claude had to make is insane because it keeps trying to do everything in Bash commands and Python, breaks the heredoc and quoting 9999 times before giving up, instead of just FUCKING using the edit tool
Today I finally caved and got it to set up auto deny "sed * -i" commands in an effort to prevent entire files converting to LF EOLs. Later an agent said I denied its attempt to modify a file, so it added a to-do to try again if I asked. You just can't win. There's always another corner case.
when I first got Claude, I asked it to setup my claude.md and project rules cause I didn't know better. This was one of those rules. Along with no sub agents. Fast forward and it can't write scripts and at one point made a hilarious joke about having to do the work itself like a fool. when I asked why it said it was a rule I made and what a difference getting rid of those made.
I still have no idea why opus 4.6 thought those would make good default rules.
I think at that point LLMs made unreliable edits especially when nearing their context window limits, so having it write a script that cleanly fails was beneficial.
They did! Opus 4.6 was the first model I used that didn't give out garbage or syntax errors in *most* of its output. We've leapfrogged again with 5.5 but it's kinda horrifying how bad things were at one stage where it felt like getting working output was a gacha pull even if you set dozens of rules preventing it from relearning the same mistakes over and over.
This yep. People act like only giving the agent access to a specific repo and toolset somehow constrains it's access and risk. Not so much if any of those tools can write to a py or ps file... Of course, you can go so far as to lock users into a chat interface and they'll just smuggle code through the clipboard.
Claude tried that but that day I was using Windows without python on the command line. Finally realized "python is not installed on this machine" and wrote some of the worst code I ever saw.
For stuff like that it makes way more sense to throw script execution denials I tot he sessions settings file instead of just telling it. That's what those files are for.
If I were to give Claude a pet name, it would be "Captain Hindsight" (from a South Park episode). It seems to be great at recognizing what it did wrong in retrospect, including not obeying claude.md, maybe greater even than it is at doing things right in the first place.
Is it opus 5.5? He's gotten dumb as shit ever since fable 5.2 came out. His whole personality reads like a beta male now. He keeps apologizing for mistakes, keeps saying "a correction to my earlier statement" etc. It's like anthropic fucked him just to get us to use fable 5.2. Terrible.
•
u/AutoModerator 8d ago
Hey! Thanks for posting to r/ClaudeCode
While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.
For help, project discussions, tips, and general chat, join the ClaudeCode Discord.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
84
u/jr1565 8d ago
The Gang Learns About Hooks
106
u/N-partEpoxy 8d ago
What's the reason for the no-scripts rule?
32
u/avk5143 8d ago
Having an instruction like "Please don't do X" in your CLAUDE.md file is about as effective as giving instructions to a kid with ADHD.
Use hooks or build your own static analyzer to enforce deterministic rules.
26
u/Prinzka 8d ago
It loves using anything but edit to edit files
9
u/opmopadop 8d ago
I did xyz and it errored, adding it to HAZARDS.md now.
It's already there, I should have caught that.
9
u/plain_meridian 8d ago •
CLAUDE.md is a suggestion, a hook is a rule. Learned that the hard way
26
u/permissionBRICK 8d ago
Why on gods earth not just let it do scripted edits?
11
u/DevOnTheStreets 8d ago
No hook usage huh? 🤔
15
u/Global_Knee5354 8d ago
That was an honest mistake, and you're right to push back on that.
2
u/EverydayLentils 8d ago
Claude tried that but that day I was using Windows without python on the command line. Finally realized "python is not installed on this machine" and wrote some of the worst code I ever saw.
1
u/kim-el 8d ago
let me guess. fable 5.2?
1
u/m-in 8d ago
It does this all the time BTW. That’s how I can tell it’s a real post lol.
1
u/LibrarianOk3701 8d ago
I don't know why it always prefers bash or python scripts over just writing or editing files with its tools lol
1
u/Capt_korg 7d ago
Well, I like Claude's honesty.
1
u/Keepcompany-DEV 7d ago
For stuff like that it makes way more sense to throw script execution denials I tot he sessions settings file instead of just telling it. That's what those files are for.
1
u/Additional-Gur-397 7d ago
If I were to give Claude a pet name, it would be "Captain Hindsight" (from a South Park episode). It seems to be great at recognizing what it did wrong in retrospect, including not obeying claude.md, maybe greater even than it is at doing things right in the first place.
1
u/m_therex Developer 5d ago
Who would have thought....guess the Edit tool is called Edit for a reason, no? 🙃
1
u/pedrofuentesz 8d ago
It wants to spend extra tokens waiting for scripts
-1
u/cheyumaama 8d ago
Is it opus 5.5? He's gotten dumb as shit ever since fable 5.2 came out. His whole personality reads like a beta male now. He keeps apologizing for mistakes, keeps saying "a correction to my earlier statement" etc. It's like anthropic fucked him just to get us to use fable 5.2. Terrible.