logoalt Hacker News

giancarlostorotoday at 5:00 AM5 repliesview on HN

In my opinion Claude should be shipped by a custom implementation of "rm" that Anthropic can add guardrails to. Same with "find" surprised they don't just embed ripgrep (what VS Code does). It's really surprising they don't just tweak what Claude uses and lock it down to where it cannot be harmful. Ensure it only ever calls tooling Claude Code provides.


Replies

throwaway2027today at 8:49 AM

All of which is useless when it just starts using big blocks of python instead. You need filesystem sandboxing for the python interpreter too.

show 1 reply
erutoday at 7:19 AM

> It's really surprising they don't just tweak what Claude uses and lock it down to where it cannot be harmful. Ensure it only ever calls tooling Claude Code provides.

That would make it far less useful in general.

show 1 reply
walthamstowtoday at 8:19 AM

Claude has repeatedly told me that its Grep tool does use rg under the hood, but I constantly find it using the Bash tool with grep

oefrhatoday at 6:11 AM

You can define your own rm shell alias/function and it will use that. I also have cp/mv aliases that forces -i to avoid accidental clobbering and it confuses Claude to no end (it uses cp/mv rare enough—rarer than it should, really—that I don’t bother wasting memory tokens on it).

show 1 reply
troupotoday at 8:31 AM

> Claude should be shipped by a custom implementation of

And when that fails for some reason it will happily write and execute a Python script bypassing all those custom tools