all 25 comments

sorted by: hot top controversial new old
[–] 55 points 7 months ago (11 children)

Human developers should not develop with the production DB, why the hell would you give an AI the rights to touch the prod DB?

  • source
  • hideshow 11 child comments
  • [–] 0 points 7 months ago (7 children)

    Dangerously-skip-permission is carte blanche for the model to do whatever it pleases with your system. If you happen to have access to a production database on your system, then the model also has access to it, should you use that option.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 8 points 7 months ago (1 child)

    that assumes

    1. the user does have access to a production db;
    2. the agent has access to a terminal from which they can reach the production machine (not in a container, different network, or similar);
    3. access does not require interaction (like entering password);
    4. the agent deliberately decides to access a production database to solve a development problem, and that was not the user requesting it;
    5. the agent manages to find the database credentials in production;
    6. the agent is left unattended.

    Possible? Sure. It's also possible that I drink half a bottle of vodka on a Friday night and mess up with production.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 7 points 7 months ago* (4 children)

    Yes, but the question is why the hell do you have access to a production database in the first place?!

    And if so, how is it on the same machine you can run Claude code on?!

  • source
  • parent
  • hideshow 4 child comments
  • [–] 34 points 7 months ago (1 child)

    Or maybe just don't play Russian roulette with your code?

  • source
  • hideshow 1 child comment
  • [–] 53 points 7 months ago (1 child)

    Just because things can be done quickly does not mean they should be.

  • source
  • hideshow 1 child comment
  • load more comments (1 reply)
    [–] 21 points 7 months ago (3 children)

    Something like --dry-run there?

  • source
  • hideshow 3 child comments
  • [–] 32 points 7 months ago (1 child)

    does dry running have any meaning on a function that is inherently stochastic?

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 7 months ago

    It can, if it's passed through to tools without the llm meddling, but the problem is that there is typically a tool for arbitrary shell commands, and unless there's a mechanism to dry run these, there's no way to handle it reliably.

  • source
  • parent
  • [–] 4 points 7 months ago (4 children)

    I am using on Mac and I have few hooks, one is replace any rm to trash command. You can make hooks for the most dangerous patterns and use dangerous-skip-permissions with a bit more safety.

  • source
  • hideshow 4 child comments
  • [–] 16 points 7 months ago (3 children)

    I truly hope that there is nothing irreplaceable on that machine, bc you might be about to FAAFO.

  • source
  • parent
  • hideshow 3 child comments
  • load more comments (-1 replies)