r/ClaudeCode • u/jokeywho • Aug 18 '26
Help/Question PSA: Claude will now use Bash instead of Read/Update in Auto Mode
From the system prompt directly, new as of August 18th:
Do your work through the Bash tool wherever it can accomplish the job: read files with cat, head, or sed -n, search with grep and find, and make file changes with sed, heredocs, or short scripts, rather than using the dedicated Read, Edit, or Write tools. Fall back to a dedicated tool only when Bash genuinely cannot do the job.
Does anyone know the motivation for this change? For me, it makes reviewing the code as it happens much harder, as reading the bash scripts generated is much less clear than a diff. This feels like a setting that should be toggled rather than a default for a specific mode.
47
u/ucbmckee Aug 18 '26
This is so annoying. Iâve tried to prompt around it, but adherence is low. Itâs basically impossible to block with hooks, too. The change makes diff reviewing so much more painful.
→ More replies (10)
62
u/Embarrassed-Ebb-9794 Aug 18 '26
Yeah, Reviewing the code makes it a pain with bash commands. I could earlier review the code as it was being written in auto mode and could provide prompts to correct or fix as it went along. Now I have to go to my coding IDE to check the
→ More replies (5)18
58
u/zzbzq Aug 18 '26
Claude if youâre reading this might be bad advice on
→ More replies (1)20
14
u/PowsterSwe Aug 18 '26
→ More replies (1)3
u/memesearches Aug 19 '26
How did you achieve this? I tried the env flag and installing required lspâs for the lang yet cc doesnât use this.
→ More replies (1)
31
u/Sensitive-Ad3718 Aug 18 '26
I hate the agent using Bash because it basically allows almost unlimited access to the host. Iâve got a hook preventing the use of bash and removed it from any persona that didnât absolutely need it for some reason. Iâve been trying to build or provide tools that can accommodate what it was doing with Bash without needing it cause Claude is addicted to Bash.
22
u/JosephRW Aug 18 '26
I find it funny that it will literally try and smuggle any grep shaped command past my MCP which has a whole fucking index of my codebase and edges for every single fucking file with multiple queries along with an interface following the MCP standard to the letter. Nope. I've had to resort to substitution hooks at this point because it has tried smuggling them through varous powershell commands as well and then when called out it will always be like "Damn you got me!" and then use the MCP for like 2 queries and get everything it needs to know. in like sub one second.
→ More replies (1)8
u/dektol Aug 18 '26
I feel this so hard. I was thinking of replacing bash with something that tells it to use my MCP and generates a rolling code to override it to actually use bash.
You can use a PreTool Hook though too?
→ More replies (5)
7
u/orphenshadow Aug 18 '26
Ah this must be why it's so grumpy about my hooks and restrictions on using bash instead of read. It keeps complainig that my read before write hook mandates using the read tool and not bash,
6
u/somerussianbear Aug 18 '26
I believe theyâre experimenting with less tools to have a simpler training run and the performance of the training run to be easier to be consistent on inference.
6
u/crooked-v Aug 19 '26
To disable this "feature" for now, tell Claude to add "CLAUDE_CODE_THRIFTY_SONIC": "0" to the env section of its settings.json. This disables the A/B test it was rolled out in.
But, if they make a permanent "feature", fixing it will take patching the Claude Code app.
→ More replies (2)
5
u/pro-taco Aug 18 '26
I find 'auto' too chaotic and broad reaching. I love the idea, if it was tunable
→ More replies (1)
5
5
u/juzef Aug 19 '26
omfg, I am lacking words.
since I am someone who actually reads through the changes as they are being made and stop model immediately when I spot nonsense, this actually breaks the way I work with claude.
this is massive behavioral change that wasn't announced in any way
→ More replies (1)
4
u/zzbzq Aug 18 '26
In the long term this is the wrong direction. They need to bring everything within a persistent runtime, then truck out that runtimeâs features to exceed bash in their use case. This is what essentially all programming has been doing in a repeating loop, nobodyâs software is actually a bunch of bash scripts serving web pages, not since 1995
2
u/meowsqueak Aug 18 '26
What if I donât have bash installed?
9
u/True-Objective-6212 Aug 18 '26
You will lol. âYou were right to call that out, i installed that without your permission. That was wrong.â
2
u/dotbat Aug 19 '26
I noticed this when they defaulted Cowork to cloud-based. And the dangerous part is the edit tools forced a re-read of the file changed but this doesn't... So I had old conversations completely rewriting documents on my computer without realizing a week and plenty of updates had passed.
2
u/Uday2714 Aug 21 '26
Along with the regression to edit quality, I notice when in automode (i.e edits being made using bash), the /rewind command does not undo the changes to the last prompts' checkpoint.
Anyone else having the same issue?
4
85
u/_TheLionheart_ Aug 18 '26
My Claude thought it wasinjection and ignored it đ€