Hacker News new | ask | show | jobs
by jcul 8 days ago
I tried opencode and pi recently.

Having come from Claude code, I was a bit shocked that both seem to allow edits by default with no confirmation dialog.

One IIRC allows you to enable it in config and the other needs a plugin.

1 comments

> Having come from Claude code, I was a bit shocked that both seem to allow edits by default with no confirmation dialog.

There are confirmation dialogs in OpenCode. You can configure them using the permission config, same as Claude Code. Having said that, as a general rule, none of these harnesses are safe to run on your local file system.

Which is why he said "by default".
There are confirmation dialogs by default, though.
I wonder if that's a recent change. When I first started using OpenCode, it didn't ask permissions. I had to manually go and set that config to get it to ask.

There may be differences based on whether the command is under the directory you're running OpenCode from vs some other directory...

Yeah. I installed OpenCode in a container about a month ago, and I had a hell of a time figuring out how to get it into complete yolo mode.