Hacker News new | ask | show | jobs
by DrJokepu 107 days ago
I mean it would be nice if the Claude and Codex CLIs had a setting to default to plan mode, every now and then I’m trying to put together a plan, only to realize that it’s not in plan mode and already making changes.
3 comments

You should not, under any circumstances, let an LLM touch the Terraform CLI. It's completely irresponsible to give an error-prone system like an LLM that kind of access.
This is what I can't get over - who in their right mind would _ever_ give an agent enough access to delete prod data?
Someone who should be immediately fired.
This is the purpose of sandbox environments.
What about

  ~/.claude/settings.json
  {"permissions": {"defaultMode": "plan"}}
Claude at least does: add "permissions": { "defaultMode: "plan" } to your settings.json.

I'll note this only applies to new sessions though – if you do /clear and start working on something else it doesn't re-apply plan mode (I kind of wish it did)