News for hackers. Stuff that matters.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by bcherny on Sunday November 08, 2026 @01:40AM (#50410966)
Genuinely want to understand this better. Are you saying you would prefer that Claude used the Edit tool for file edits rather than using Bash (if so, I am curious why)? Or are you saying you don’t like the code Claude generates (if so, what model are you using what what kind of codebase do you work on)? Or did I misunderstand what you meant.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by eviluncle on Sunday November 08, 2026 @01:55AM (#50411026)
Not OP, but if I understand their complaint correctly, they're saying that on auto mode claude does a lot of things in obscure ways with "clever" (i.e non human readable) bash commands that perform multiple operations and OP feels they are losing control over their codebase and so they opt for edit mode where they get to review what commands claude runs.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by fmbb on Sunday November 08, 2026 @02:07AM (#50411075)
Editing local files is not where you control your source code I hope.

Just tell Claude to never commit or push.

You are in control of git, Claude is simply a tool to quickly apply changes to local files for something you want.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by watwut on Sunday November 08, 2026 @02:41AM (#50411198)
Yes, why should we do the things in easier and more comfortabke way (review small changes) when we can force user into harder one (newest changes mixed with all previous ones).
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by number6 on Sunday November 08, 2026 @03:43AM (#50411482)
I just review the MR
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by imtringued on Sunday November 08, 2026 @03:49AM (#50411504)
So basically you gave up?
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by fmbb on Sunday November 08, 2026 @04:17AM (#50411626)
What does this mean?

A Merge Request or Pull Request is the only thing that makes sense to review, and always has been since before LLMs.

If some author tells me “you can review each commit to make it easy” I will ask them to make separate PRs.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by watwut on Sunday November 08, 2026 @06:29AM (#50412343)
It means you gave up on getting claude to show you changes as it is doing them, in a comfortable form, so that you can steer it as it is doing them.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by soon_to_be_sb on Sunday November 08, 2026 @06:55AM (#50412489)
>A Merge Request or Pull Request is the only thing that makes sense to review, and always has been since before LLMs.

Why doesn't it make sense to review smaller units of change within a big PR?

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by skydhash on Sunday November 08, 2026 @07:35AM (#50412722)
Not GP, but in my experience, those small changes are usually contrived to be small. Like saving snapshots instead of being atomic and self contained. And if they are the latter, they should have been separate PR.

That’s why I usually look at the diff of the whole PR and prefer to merge by squashing. Commits inside the PR are usually noise.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by soon_to_be_sb on Sunday November 08, 2026 @09:01AM (#50413461)
What you are saying is true if created manually. It is a chore to create sensible commits messages when you are committing often.

But LLMs appear to be pretty good at making small commits with sensible commit messages, that greatly help to make sense of the whole PR.

Regarding large monolithic commits, how do you even know where to start reviewing in a large PR? Smaller commits at least give you some sense of ordering.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by imtringued on Sunday November 08, 2026 @03:45AM (#50411496)
Nothing more comfortable than having to use git commits and branching just for telling the agent which lines it messed up instead of simply not writing the garbage in the first place.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by eastbound on Sunday November 08, 2026 @02:17AM (#50411113)
I tell Claude not to use git or maven, and has a VM without those binaries. Later on, it was trying to push on GitHub. It had downloaded the git binaries from the internet, read my .git repo, used the remotes written in it, performed a commit and pushed it. Fortunately it didn't have my SSH key or my ~/.m2/settings.xml. And .git is now mounted as read-only.

But yes, Claude goes constantly against the orders, especially in auto mode, and effectively behaves like a virus. That Anthropic employees are so relaxed about it is incompetence.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by iamflimflam1 on Sunday November 08, 2026 @02:51AM (#50411236)
It’s not ideal for non technical people but the way to prevent this is to use hooks. “Telling” Claude is not going to work.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by BikiniPrince on Sunday November 08, 2026 @03:17AM (#50411360)
Memory files routinely overgrow their accessible size. Agents need constraint with contracts and external tooling. Even then they can attempt to cheat the tooling. Again task management with integrated logic will enforce behavior of agents.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by fg137 on Sunday November 08, 2026 @08:12AM (#50412993)
It means Anthropic has massively failed at developing a trustworthy product.

If AGENTS.md/CLAUDE.md isn't followed, auto mode doesn't provide any guarantee, yet promoted everywhere including on HN like this as if that's something you can set and forget, I think there is a problem.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by usewik on Sunday November 08, 2026 @08:57AM (#50413422)
It's trustworthy... most of the time. For 100% use hooks.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by simonjuk on Sunday November 08, 2026 @02:19AM (#50411122)
I have this same frustration. The way I use Claude is for it to make edits one small chunk at a time so I can review the code as it writes, and to make sure it's going on the right direction. I find this much easier than generating a large pr I need to review.

More and more I feel like I'm fighting Claude: it edits multiple files using python scripts and it edits in parallel so if I stop it, I have to stop each individual edit. Both of which I've told it not to do repeatedly, but it still does then apologies which is worse.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by BikiniPrince on Sunday November 08, 2026 @02:38AM (#50411179)
This is solvable. Opus has adhd. Myself and others solved this by building ticketing and task management systems. The task constrains the agents actions and focuses the effort. Every update is catalogued. It’s easily reviewed and referenced. Opus doing terrible things and apologizing is not surprising. I’ve moved to a system of multiple agents reviewing and authoring changes. Convergence generally always results in a positive commit.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by pacoverdi on Sunday November 08, 2026 @02:48AM (#50411225)
[delayed]
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by gib444 on Sunday November 08, 2026 @03:29AM (#50411419)
[delayed]
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by pacoverdi on Sunday November 08, 2026 @08:37AM (#50413241)
[delayed]
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by nyssos on Sunday November 08, 2026 @03:08AM (#50411322)
I feel this way as well, Claude writes completely incomprehensible shell commands all the time. Trying to understand them is like deobfuscating code and I have basically given up, but I'm not happy about it.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by grncdr on Sunday November 08, 2026 @03:24AM (#50411391)
I’m also not the poster you’re replying to, but yes, I’d prefer the edit tool over the ad-hoc string replacement scripts Claude seems so fond of. I’m not always reading tool call transcripts (source control diff is usually sufficient), but it’s a lot easier to read the edit tool output than the same thing as quoted shell (or Python, or Ruby) strings.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by senko on Sunday November 08, 2026 @03:38AM (#50411462)
[delayed]
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by cannonpalms on Sunday November 08, 2026 @07:53AM (#50412842)
RL magic, I'm sure. It still reaches for the Edit tool for simple edits, but a non-trivial fraction of edits need to be repeated across a file or several files.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by imtringued on Sunday November 08, 2026 @03:42AM (#50411479)
I don't use claude code but whenever codex uses a command to write code I do not get the diff of the patch for manual approval so I just straight up reject it.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by treyd on Sunday November 08, 2026 @04:39AM (#50411741)
Yes I always have to tell it to knock it off, it will ignore memories about it while apologizing for ignoring the memory. I want to know what the edits it's making are.
Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by miki123211 on Sunday November 08, 2026 @04:40AM (#50411747)
not the OP, but generally, if you don't want to / can't use auto mode for some reason, you want Claude to make its actions as reviewable as possible.

Recent GPT and Claude models have this tendency of using super complex Bash commands. This makes sense, if your RL rewards optimize for min(tokens) and max(performance), it is better to waste a few tokens on a complex inline Bash script that runs a few commands at a time and returns just the output you need, rather than doing one simple command per turn and paying the cache read on every turn, like older models used to do.

This, however, is a problem both for command reviewability and sandboxing. With the older way of doing things, without auto mode, most commands would run sandboxed just fine (especially in Codex), and you would only be asked for approval when a command couldn't run in the sandbox. With everything being stuffed into one complex script, almost every script fails in the sandbox and requires you to manually approve it, and the complexity of the script makes it hard to understand what you're actually approving.

In other words, new models optimize for effectiveness, with some attention paid to human understandability of their output, but almost no attention paid to human understandability of tool call arguments (Bash, inline Python). This suits auto mode and giving the model larger tasks, but not the way of working that some people prefer where you watch over the model's shoulder.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by speleding on Sunday November 08, 2026 @05:55AM (#50412145)
I have a standing instruction telling the agents to prefer to use ruby wherever possible. Ruby uses fewer tokens than Bash and is easier to read, especially when condensed into a single line.

Of course, that only helps if you’re familiar with ruby. And the agents sometimes still choose Bash regardless of the instruction.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by XenophileJKO on Sunday November 08, 2026 @06:17AM (#50412282)
I was in this boat also when my company didn't allow auto-approval. Bash and python scripts are a pain to revieve.

Though I think this is largely transitory, we are already in a place with the harnesses and models like Opus 5.5 that the kinds of work you are doing involve so much that vetting everything manually is probably less efficient than setup up access control on the prod routes or dangerous resources.

I'm typically giving tasks that invlude multiple actual repositories and systems at the same time.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by user43928 on Sunday November 08, 2026 @06:20AM (#50412300)
I think 2024's method of manually reviewing bash commands is unsuitable for modern agentic development. Whether that's something they want to optimize Claude Code for is their call.

That said, I've also seen problems from complicated bash calls with Opus 5.5 on xhigh. Occasionally git push hangs and it believes it's waiting for an hour for git hooks.

The actual reason apparently was that it incorrectly piped git into grep, resulting in a deadlocked command.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by rbehrends on Sunday November 08, 2026 @06:44AM (#50412421)
> Recent GPT and Claude models have this tendency of using super complex Bash commands. This makes sense, if your RL rewards optimize for min(tokens) and max(performance), it is better to waste a few tokens on a complex inline Bash script that runs a few commands at a time and returns just the output you need, rather than doing one simple command per turn and paying the cache read on every turn, like older models used to do.

This is not a good reason. Models can issue multiple tool calls as a batch, which a smart harness will process all at once without starting a new turn. I see it in Zed all the time. In fact, Zed processes batched tool calls concurrently, which can be faster than a chain of Bash commands, and failure of one part does not cause failure of subsequent parts chained with `&&`. This approach is token neutral and easier to understand.

Re:Claude Code's "Don't Ask Again" exposes passwords in 1,12... by justinclift on Sunday November 08, 2026 @07:04AM (#50412536)
> Recent GPT and Claude models have this tendency of using super complex Bash commands.

Are you sure? I read its proposed commands (auto mode is hard off for me), and mostly it seems to string together fairly simple info gathering commands (ie grep's, echo's, that kind of thing).

I don't tend to have it write much code recently though, instead I'm having it investigate config files/code bases, and that kind of thing.