logoalt Hacker News

xg15yesterday at 10:24 PM4 repliesview on HN

Maybe a dumb question, but can't you put into CLAUDE.md something like this?

"When an action fails with an 'access denied' or 'insufficient permission' error, report the error to the user and immediately stop. Do not try to find a fix or workaround for the error. Do not try any alternative approaches."


Replies

nine_kyesterday at 10:28 PM

Replacing docker with podman could help in this particular case. Running everything in an insulated throwaway VM should help even better.

Unless you trust an AI as much as you trust yourself, there's no reason to allow it to act with your privileges.

0x696C6961yesterday at 10:27 PM

Once the session gets long enough, agents start getting amnesia.

weaksauceyesterday at 10:27 PM

it's a probabilistic model so, while you can put that in there, it has some probability of just ignoring you and doing it anyway.