← Back to context

Comment by SV_BubbleTime

1 month ago

My short list of agent allowed commands...

      "Bash(ceedling:*)",
      "Bash(find:*)",
      "Bash(grep:*)",
      "Bash(ls:*)",
      "Bash(rg:*)",
      "WebFetch(domain:docs.anthropic.com)",
      "Bash(git checkout:*)",
      "Bash(gcc:*)",
      "Bash(git add:*)",
      "Bash(mkdir:*)"

I'm OK for now!

find / -exec rm -rf {} ;

  • well, shit

    • Update:

      ``` Based on the Claude Code documentation, it appears that command restrictions are handled internally by Claude Code's security system. However, I can help you understand how to work with this limitation:

        Current Claude Code Security:
        - Claude Code already has built-in protections against dangerous commands
        - Commands like find / -exec rm would likely be blocked by the existing security measures
        - The system sanitizes inputs to prevent command injection

      ```

      Seems that they already thought of that.

There a place in Cursor settings to add these? Just poked around and not seeing one.